Minor Patch to show Host IPs in status.cgi

Marcus Fleige marcus.fleige at de.rhenus.com
Mon Mar 26 19:43:00 CEST 2007


Hi List,

I recently modfied the status.c(gi) file to satisfy our needs at work.
As we mainly handle our monitoring by the "Service Problems"- and "Host
Groups"- View, we realized it would be nice to have the address of the
problem hosts in the view to save one click and keep the problem view in
the foreground.

Therefore, i modified the html output and added a 'title'-attribute to
the host link, filled with the value of 'temp_host->address'. Most
Browsers pop up this title on mouseover over the hostname.

I tested this with

Linux:
- Opera 9.10
- Firefox 2.0.0.2
- Konqueror 3.5.5

Windows:
- Opera 9.00
- Firefox 2.0.0.3
- IE 6.0

without problems.

I know this is only a _very_ minor change, but it's useful for us and
maybe others find this helpful, too. As I'm not very familar with
C-coding or posting to devel-lists, comments are welcome. :-)

Regards,

Marcus Fleige


-- 
EOF
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: status-cgi.diff
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20070326/d0e8bb22/attachment.ksh>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list