Hi Craig, I create a simple bar using pure JavaScript in my template. You're welcome to the code...
Define this function in the <HEAD> section of the page: <script language="JavaScript"> <!-- function showGraph(upPercent) { var signPos = upPercent.indexOf("%"); var upTrim = upPercent.substr(0,signPos); var up = Math.round(upTrim); var down = 100 - up; var outputString = "<img src='images/green.gif' width='" + up + "' height='20'>"; if (up<100) { outputString = outputString + "<img src='images/red.gif' width='" + down + "' height=20>"; } outputString = outputString + " "+ up + "%"; return(outputString); } --> </script> Then, in the repeating section for each host include this code: <script language="javascript"> <!-- document.write(showGraph("<sa_stats_uptime>")); --> </script> You then need single pixel red and green images to display. Cheers, Phil. -----Original Message----- From: Craig Hulbert [mailto:[EMAIL PROTECTED]] Sent: 18 February 2003 16:48 To: [EMAIL PROTECTED] Subject: RE: [SA-list] Anyone care to share any web templates? I am having trouble getting the bar graphs and others to work.. Please email or provdie a link to the java applets your using. Also.. For a diskspace monitor.. Does something special have to be in the SA_PRETTY Name to get it to work? I am kinda confused when I look at the code.. What am I missing? BTW you site's graphs aren't showing up on my pc.. Even the bar charts... Is it my pc or are they not up right now? Craig Hulbert Dayton Digital Networks 937.281.5931 (v) 937.281.5932 (f) [EMAIL PROTECTED] www.daytondigital.net -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Brent Ozar Sent: Tuesday, February 18, 2003 8:07 AM To: Dirk Bulinckx Subject: Re: [SA-list] Anyone care to share any web templates? Tuesday, February 18, 2003, 6:51:26 AM, you wrote: DB> MessageOn http://www.brentozar.com/salive/default.aspx you can find DB> some samples. DB> In the rush to release v4 we forgot to include some of Brents DB> samples. It's something we will do with the next (bugfix) release. Woohoo! Thank goodness I just popped into my mail program. I ran and updated the site to include my new v4-specific templates. My personal favorite is the Drilldown one, which lets you see a quick overview of your checks. If anybody's got ideas on things they'd like to see implemented in template pages, let me know. I'm always looking for new ideas. Brent -- BrentO Famous last words: We aren't lost! To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] With the following in the body of the message: unsubscribe SAlive To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] With the following in the body of the message: unsubscribe SAlive *********************************************************************************************** This E-mail and any files transmitted with it is intended for the use of the addressee only and may contain confidential information. If you are not the intended recipient you are hereby notified that any use or dissemination of this communication is strictly prohibited. If you receive this transmission in error, please notify us immediately and delete this e-mail. The views and opinions expressed in this e-mail message are the author's own and may not reflect the views and opinions of Signet Group plc or any of its subsidiaries. *********************************************************************************************** To unsubscribe from a list, send a mail message to [EMAIL PROTECTED] With the following in the body of the message: unsubscribe SAlive