Friday, February 28, 2003, 11:05:43 AM, you wrote:

ED> I like this idea and maybe if possible a nice way to do it would be an
ED> additional level to the new tree structure you have on the main checks page?

This is really easy to do with a web template, actually.  For an
example of what you describe below, check out my ServersAlive template
examples at http://www.brentozar.com/salive - in particular, the
"Basic Grouping" example for SAv4 and ASP.

How it works is that you use ServersAlive's sorting tags like this:
<sa_report sort=status,hostname,prettyname>

At the end of your sa_report tag, you use ASP code to track the last
SA_Hostname:

<%
'BGO keep a running track of the last host name to see if we need to show it or not
strLastHostName = "<SA_HOSTNAME>"
%>
  </sa_report>

Then, instead of always showing the SA_Hostname, your template should
compare it to the last one to see if it's different:

<%
'BGO only show the host name if it's different from the last one
If strLastHostName <> "<SA_HOSTNAME>" then Response.Write("<SA_HOSTNAME>")%>

You can download the full template code off my site.  I keep swearing
I'm going to write up a nice tutorial so Dirk can include it in the
production SA distribution, but then my girlfriend goes and surprises
me with concert tickets.  We're off to Mardi Gras tonight - no more SA
templates from me today.  ;-)

Brent

  

ED> For example:-

ED> My Entries
ED> UNIX Server
ED>     UXSERV1
ED>         Ping check
ED>         Disc space check
ED>     UXSERV2
ED>         Telnet check
ED>         Ping check
ED> NT Servers
ED>     EXCH1
ED>         Ping check
ED>         Etc 
ED>         Etc



-- 
BrentO
Famous last words: Oh, don't be so paranoid!

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to