icons

Bill James bill at ibill.no-ip.org
Sat Jan 24 18:53:54 CET 2004


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jeremy J.
Rossi
Sent: Saturday, January 24, 2004 11:03 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] icons

Hi,

I can't seem to get icons to work on nagios 1.0. this is an abstract
from my cgi.cfg file:

hostextinfo[3550-1]=;distribution.gif;distribution.gif;distribution.gif;
3550-1;;;
hostextinfo[3550-2]=;distribution.gif;distribution.gif;distribution.gif;
3550-2;;;
hostextinfo[2950]=;switch.gif;switch.gif;switch.gif;2950;;;
hostextinfo[3548]=;switch.gif;switch.gif;switch.gif;3548;;;
hostextinfo[adsl_gw]=;router.gif;router.gif;router.gif;adsl_gw;;;
hostextinfo[gw_management]=;router.gif;router.gif;router.gif;gw_manageme
nt;;;
hostextinfo[xaos-f-rm1]=;firewall.gif;firewall.gif;firewall.gif;xaos-f-r
m1;;;
hostextinfo[mail.xaos.it]=;server.gif;server.gif;server.gif;mail.xaos.it
;;;
hostextinfo[dns.xaos.it]=;server.gif;erver.gifserver.gif;dns.xaos.it;;;
hostextinfo[homer]=;server.gif;server.gif;server.gif;homer;;;
hostextinfo[margie]=;server.gif;server.gif;server.gif;margie;;;
hostextinfo[sviluppo]=;server.gif;server.gif;server.gif;sviluppo;;;


icons are in /usr/local/share/nagios/images/logos/ and are all 644...

any suggestions?

ciao,
Jeremy


Jeremy,

I am not sure that version 1.0 supports this so you may want to check
but here is what I do for version 1.1

In your cgi.cfg file add the following line somewhere near the top

xedtemplate_config_file=/etc/nagios/hostextinfo.cfg

Now create that file and here is an example of the file. (I actually
have several more but this will give you an idea of what you need to
do.) 

define hostextinfo{
        host_name       firewall
        icon_image      redhat.png
        icon_image_alt  RedHat 9.0
        vrml_image      redhat.png
        statusmap_image redhat.gd2
        }

If you have several items that you want to have the same icon then you
can do something like this (helps keep the file small and easier to
manage)

define hostextinfo{
        host_name       hostname1,hostname2,hostname3 and on and on
        icon_image      redhat.png
        icon_image_alt  RedHat 9.0
        vrml_image      redhat.png
        statusmap_image redhat.gd2
        }

Be sure to remark out the lines you have edited in the cgi.cfg file

You can also do the same thing for services

Bill



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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