Changing statusmap.cgi

Cook, Garry GWCOOK at mactec.com
Tue Jul 22 18:04:12 CEST 2003


It's been requested that I make the icons in statusmap.cgi larger, so
that they can be viewed from across the room on a 42" flatpanel in the
NOC. This was relatively simple, I just changed the scaling factor in
statusmap.c, recompiled the cgis, and copied statusmap.cgi to the sbin/
directory.
Now I've had a request to make the icons change color when a host is
down. This looks to be a little more difficult. Looking through
statusmap.c, I can see the code that causes the links to change color,
although I don't think this would be feasible with pre-cooked images.
However, if I created images such as router_blue.png and router_red.png,
it probably wouldn't be to hard to code in the changes to switch between
images based on the status of the host, right?
This is definitely beyond me, perhaps someone else has already done such
a thing, or is right now thinking 'Oh yeah, that's easy enough to do.'?

Garry W. Cook, CCNA
Network Infrastructure Manager
MACTEC, Inc. - http://www.mactec.com/
303.308.6228 (Office) - 303.881.5157 (Mobile) 


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list