From: Steve G. <st...@ls...> - 2005-04-18 20:14:20
|
On Mon, Apr 18, 2005 at 11:30:30AM +0200, schnitzel meister wrote: > Nagiosgraph-style graph icons on the main page would be good too, > leading to a page where you select which of the metrics for the > service you want to view. FWIW, I've set the following for 'icon_image' in the Nagios hostextinfo stanza: icon_image redhat.gif' border="0" width=20 height=20><A TARGET="_blank" HREF="/cgi-bin/perfparse.cgi?select_metric=1&host_name=myhost" BORDER="0"><img src='/nagios/images/graph.png Yes, that's all one line. The game being played is to fit into the HTML being generated by nagios. The first icon ("redhat.gif", in the example) is just to show the OS of the host. We then close out the (unshown, generated by Nagios) IMG tag, and then add a new link to the perfparse CGI, setting the host name and bringing up the metric selection list. I use the 'graph.png' img as my link "text", and the Nagios CGI will close the tag. (The links and filenames will need to be adjusted to your particular installation, of course. I chose to do this on per host basis, you could use the serviceextinfo stanza and do it on per service basis, probably. Steve -- "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next. -- (Stolen from the net) |