Hi Paul, 

 

 

This is my template index html file.  If you use this template, you can see the 
Down server at top of the table as red colored row. 

 

 

 

 

<html> 

                <HEAD> 

                <TITLE>Server Monitor</TITLE> 

                <meta http-equiv="refresh" content="30"> 

             <meta http-equiv="content-type" content="text/html;charset=utf-8" 
/> 

      

 <!--This section is zebra style table format. One rown is gray next one is 
white and so on --> 

               <style type="text/css"> 

                tr:nth-of-type(odd) { background-color:#F2F2F2;} 

                </style> 

                

               <script type="text/javascript"> 

 

 

<!--This section is count down. Refresh html page every 30 second--> 

                function countdown(par){ 

                ctn = parseFloat(par); 

                mytime=setTimeout('display_countdown()',1000) 

                } 

 

                function display_countdown() { 

                var x = ctn ; 

                document.getElementById('ct').innerHTML = x; 

                ctn= ctn- 1; 

                tt=countdown(ctn); 

                } 

 

                </script> 

                

                

 

                </head> 

                <BODY onload=countdown(30);> 

 

                                                               

                                <sa_report sort=status,onstatustime> 

                                                <sa_groupheader> 

                                                <center> 

                                                <b><FONT FACE="verdana" 
size="4" color="#000000"> 

                                                <TABLE WIDTH="100%" BORDER=0> 

                                                <TR> 

                                                   

                                                                <TH 
WIDTH="25%">Your Header </TH> 

                                                                <TH 
WIDTH="25%"> 

                                                                <script 
language="JavaScript"> 

                                                                                
                var dt = new Date(); 

                                                                                
                var dtd = dt.getDate(); 

                                                                                
                dtd = (dtd < 10)? "0" &#43; dtd : dtd; 

                                                                                
                var dtm = dt.getMonth()&#43;1; 

                                                                                
                dtm = (dtm < 10)? "0" &#43; dtm : dtm; 

                                                                                
                var dty = dt.getFullYear(); 

                                                                                
                var dth = dt.getHours(); 

                                                                                
                dth = (dth < 10)? "0" &#43; dth : dth; 

                                                                                
                var dtmm = dt.getMinutes(); 

                                                                                
                dtmm = (dtmm < 10)? "0" &#43; dtmm : dtmm; 

                                                                                
                var dts = dt.getSeconds(); 

                                                                                
                dts = (dts < 10)? "0" &#43; dts : dts; 

                                                                                
                document.write(dtd&#43;"/"&#43;dtm&#43;"/"&#43;dty&#43;" 
"&#43;dth&#43;":"&#43;dtmm&#43;":"&#43;dts); 

                                                                                
                </script> 

                                                               

                                                                (<span 
id='ct'></span>) 

                                                                </TH> 

                                                                <TH 
WIDTH="25%"><font color="blue" >Live servers: <sa_group_up_entries></font></TH> 

                                                                <TH 
WIDTH="25%"><font color="red" >Dead servers: 
<sa_group_down_entries></font></TH> 

                                                               

                                                                </TR> 

                                                                </table> 

                                                                <br><br></font> 

                                                                </b> 

                                                               

                                                                <TABLE 
WIDTH="100%" BORDER=0> 

                                                                <TR> 

                                                                                
<TH> Pretty Name </TH> 

                                                                                
<TH> Check Description</TH> 

                                                                                
<TH> Hostname</TH> 

                                                                                
<TH> Check Response </TH> 

                                                                                
<TH> Status </TH> 

                                                                                
<TH> Status Change Date</TH> 

                                                                                
<TH> Status Change Time </TH> 

                                                                                
<TH> Non Downtime </TH> 

                                                                                
<TH> Downtime</TH> 

                                                                </TR> 

                                                </sa_groupheader> 

                                                <sa_groupfooter> 

                                                </TABLE> 

                                                </sa_groupfooter> 

                                <!&#8212;Below line is up/down coloring -- > 

                                                <TR bgcolor="<saif sa_status is 
down>FF0000</saif><saif sa_status is up>FFFFFF</saif>"> 

                                                                <TD ALIGN=LEFT  
  WIDTH="16%">       <FONT face = "verdana" SIZE=2> <sa_prettyname></TD> 

                                                                <TD ALIGN=LEFT  
  WIDTH="16%">       <FONT face = "verdana" SIZE=2> <sa_checkdescription></TD> 

                                                                <TD ALIGN=LEFT  
  WIDTH="16%">       <FONT face = "verdana" SIZE=2> <sa_hostname></TD> 

                                                                <TD WIDTH="16%" 
SIZE=1 ><FONT face = "verdana" SIZE=2> <center><sa_checkresponse></center></TD> 

                                                                <TD WIDTH="16%" 
SIZE=1 ><FONT face = "verdana" SIZE=2> <center><sa_status></center></TD> 

                                                                <TD WIDTH="5%" 
SIZE=1 ><FONT face = "verdana" SIZE=2> 
<center><sa_statuschangedate></center></TD> 

                                                                <TD WIDTH="5%" 
SIZE=1 ><FONT face = "verdana" SIZE=2> 
<center><sa_statuschangetime></center></TD> 

                                                                <TD WIDTH="5%" 
SIZE=1 ><FONT face = "verdana" SIZE=2> 
<center><sa_stats_nondowntime></center></TD> 

                                                                <TD WIDTH="5%" 
SIZE=1 ><FONT face = "verdana" SIZE=2> 
<center><sa_stats_downtime></center></TD> 

                                                </TR> 

 

                                               

                                                </sa_groupheader> 

                                </sa_report> 

                                <br> 

                </body> 

                <footer> 

                                <p>These Controls  running by 
<strong><sa_said></strong> 

                                

                </footer> 

</center> 

</html> 

 

 

 

 

 

 

 
--------------------------------------------------------------------------------





Erkan Öztürk
Sunucu Sistemleri Ve Sanallaþtýrma Baþuzmaný
Sistem Mühendisliði Bölümü

erkan.ozt...@borsaistanbul.com
T. &#43;90 212 298 24 32
F. &#43;90 212 298 25 00 

 

From: Servers Alive Discussion List [mailto:salive@woodstone.nu] On Behalf Of 
Goretti, Paul
Sent: Tuesday, January 06, 2015 1:11 PM
To: Servers Alive Discussion List
Subject: [SA-list] Simple Web Output 

 

Hi all, 

 

I'm trying to create a simple output from SA that shows the following: 

 

 



SERVER 1   


                                                                                
Server1 is up 

 

 



SERVER 1   

 


                                                                                
Server1 is down 

 

 

 

Basically I'd like to present a simple to read up or down status on a large 
screen.  There will probably be 300 or so checks and I want to make it simple 
and obvious to see quickly which server is down.  I'm no CSS guru but maybe 
someone else has done this??? 

 

Appreciate any thoughts 

 

 

Paul Goretti 

 

ICT Officer - Infrastructure 

 

3457 

 

East Renfrewshire Council 

Main St 

BarrHead 

G78 1SY 

 

Your Council, Your future 

 

 

To unsubscribe send a message with UNSUBSCRIBE in the subject line to 
salive@woodstone.nu (mailto:salive@woodstone.nu)
If you use auto-responders (like out-of-the-office messages), make sure that 
they are not sent to the list nor to individual members. Doing so will cause 
you to be automatically removed from the list. 

To unsubscribe send a message with UNSUBSCRIBE in the subject line to 
salive@woodstone.nu
If you use auto-responders (like out-of-the-office messages), make sure that 
they are not sent to the list nor to individual members. Doing so will cause 
you to be automatically removed from the list. 

Reply via email to