This isn't quite what you're asking for, but uses some similar concepts:

        http://monitoring.okiuk.co.uk/monitor.shtm

Basically all the systems being monitored are shown in the 5 columns on the left, and any errors are reported larger and in more detail on the right. A similar concept is shown here:

        http://monitoring.okiuk.co.uk/monitorwan.shtm

where any problems on the WAN would show up on the right (as well as the country changing colour).

These are optimised for a widescreen plasma display - if the text looks funny, try reducing your browser text size.

Cheers,

Ian


Ian K Gray
OEL IS - European Network Operations
Tel: +44 1236 502661
Mob: +44 7881 518854



[EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]

04/10/2004 03:27

Please respond to
[EMAIL PROTECTED]

To
[EMAIL PROTECTED]
cc
Subject
Re: [SA-list] Some help with a template






With the afternoon, I've gotten myself a bit farther.  Using the help file, I've take the sample in there and altered the code as shown below.


It does just about everything I want, except my current table uses <sa_report sort=Status,UP,DOWN>, which will show all the items on one list, with the items that are down at the top.


I'd actually like to have two lists, the top list using <sa_report sort=Status,DOWN> and the bottom list using <sa_report sort=Status,UP>, so I can display different properties.


Can this be done on one page, that is having two lists with different sa_report sorts?


PS Don't laugh at my code, HTML is not something I work with a lot.



[My template code]

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

<!--This is the header section.-->

<HEAD>

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

</HEAD>


<BODY>

<!--Here the current date and time variables are used-->


<p>

<BR>

<FONT face="verdana" size="1">Last check done on <sa_currentlongdate>&nbsp;at&nbsp;<sa_currentlongtime>

<BR><BR><BR>


<TABLE WIDTH="705" cellpadding="0">

<TD width="130"><FONT face="verdana" size="1"><u>Host</u></TD>

<TD width="280"><FONT face="verdana" size="1"><u>Check Type</u></TD>

<TD width="80"><FONT face="verdana" size="1"><u>Up Time</u></TD>

<TD width="70"><FONT face="verdana" size="1"><RIGHT><u>Response</u></RIGHT></TD>

<TD width="145"><FONT face="verdana" size="1"><u>Last Status Change</u></TD>


</FONT>


</TR>


<!--The core section begins here. It is repeated for every host on the page.-->

<sa_report sort=Status,UP,DOWN>


<!--Use SAIF to change the color depending on whether the host is up or down.-->

<tr bgcolor="<saif sa_status is down>White</saif><saif sa_status is up>White</saif>">


<TD WIDTH="130">

<!--Display Pretty Name with SA_PRETTYNAME.-->

<FONT FACE=verdana SIZE=1 COLOR="<saif sa_status is down>Red</saif><saif sa_status is up>Black</saif>"><sa_prettyname></FONT>

</TD>


<TD WIDTH="280">

<!--Display the type of check with SA_CHECKDESCRIPTION.-->

<FONT FACE=verdana SIZE=1 COLOR="<saif sa_status is down>Red</saif><saif sa_status is up>Black</saif>"><sa_checkdescription></FONT>

</TD>


<TD WIDTH="80">

<!--Display Up Time-->

<FONT FACE=verdana SIZE=1 COLOR="<saif sa_status is down>Red</saif><saif sa_status is up>Black</saif>"><RIGHT><sa_stats_uptime></RIGHT></FONT>

</TD>


<TD WIDTH="70">

<!--Display the response time/data with SA_CHECKRESPONSE.-->

<FONT FACE=verdana SIZE=1 COLOR="<saif sa_status is down>Red</saif><saif sa_status is up>Black</saif>"><RIGHT><sa_stats_avgrtrip></RIGHT></FONT>

</TD>


<TD WIDTH="145">

<!--Display the time of the last status change with SA_STATUSCHANGETIME and SA_STATUSCHANGEDATE.-->

<FONT FACE=verdana SIZE=1 COLOR="<saif sa_status is down>Red</saif><saif sa_status is up>Black</saif>"><sa_statuschangetime>, <sa_statuschangedate></FONT>

</TD>


</TR>



<!--End of the core section.-->

</sa_report>



<!--Beginning of footer.-->


</TABLE>

<BR>

</BODY>



[Example of the above code, what it looks like now]

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


Last check done on Sunday, October 03, 2004 at 9:16:08 PM
Host Check Type Up Time Response Last Status Change
Host Always Down ping 0% - 12:45:08 PM, 10/3/2004
Host #1 Port Connector (TCP) on port 1352 100% 60.6 ms 2:46:36 PM, 10/3/2004
Host #2 Port Connector (TCP) on port 25 100% 54.68 ms 2:46:36 PM, 10/3/2004
Host #3 Port Connector (TCP) on port 21 100% 55.97 ms 2:46:37 PM, 10/3/2004
Host #4 Port Connector (TCP) on port 80 100% 55.81 ms 2:46:37 PM, 10/3/2004
Host #5 ping 100% 43 ms 2:50:11 PM, 10/3/2004
Host #6 ping 98.667% 35.32 ms 8:38:28 PM, 10/3/2004





[Example of the above code, what I ant it to look like]

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


Last check done on Sunday, October 03, 2004 at 9:16:08 PM

Current Outages
Host Check Type Up Time Response Last Status Change
Host Always Down ping 0% - 12:45:08 PM, 10/3/2004





Operational
Host Check Type Up Time Response Last Status Change
Host #1 Port Connector (TCP) on port 1352 100% 60.6 ms 2:46:36 PM, 10/3/2004
Host #2 Port Connector (TCP) on port 25 100% 54.68 ms 2:46:36 PM, 10/3/2004
Host #3 Port Connector (TCP) on port 21 100% 55.97 ms 2:46:37 PM, 10/3/2004
Host #4 Port Connector (TCP) on port 80 100% 55.81 ms 2:46:37 PM, 10/3/2004
Host #5 ping 100% 43 ms 2:50:11 PM, 10/3/2004
Host #6 ping 98.667% 35.32 ms 8:38:28 PM, 10/3/2004



Reply via email to