Extended information not working as expected?

Jan Scholten Jan.Scholten at iconz.net
Sun Nov 21 21:54:05 CET 2004


Hi!

> Hi all,
> 
> I've added some extended information to my Nagios install for services and 
> hosts but neither seem to be working correctly.  I saw a suggestion about 
> adding a URL for graph info for a service so I thought I would give it a try 
> but I can't even get hosts to show an icon of the selected logo.  All the 
> logos are in the logos directory as they should be.  I don't understand why 
> nothing is showing.    Any suggestions where to look?
> 
> Norm

Search the mailinglist archive, there have been many mails about extinfo 
and images:
My solutioon how to get images working. There is (or somevbody said) a 
bug in the Debian package, so that you may need to build it from source!

---------------------------------------------------------------
I'm using a selfcompiled Debian too and it works here:

cgi.cfg:
#@@@@@@@@@@@@@@ eXtended Data File @@@@@@@@@@@@

#Only first file is parsed, so we put everything in one file!
xedtemplate_config_file=/usr/local/nagios/etc/extinfo.cfg

#xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg
#xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


in extinfo.cfg:


define serviceextinfo{
         host_name       newshell,omega,internet
         service_description SSH
         icon_image      SSH.png
}

#extended Host Info
#
define hostextinfo{
         host_name   NagiosPC,webhost1,webhost2
         icon_image  debian.png
         icon_image_alt Debian Server
         statusmap_image debian.gd2
}

ls -al /usr/local/nagios/share/images/ | grep logos
drwxrwxr-x   2 nagios nagios    4096 2004-10-28 13:32 logos

ls -al /usr/local/nagios/share/images/logos
[cut]
-rw-r--r--  1 nagios nagios   2389 2001-09-24 06:36 debian.gd2
-rw-r--r--  1 nagios nagios   1437 2001-09-24 06:36 debian.gif
-rw-r--r--  1 nagios nagios   1580 2001-09-24 06:36 debian.jpg
-rw-r--r--  1 nagios nagios   1575 2001-09-24 06:36 debian.png
[cut]
-rw-r--r--  1 nagios nagios   1365 2004-10-19 14:56 SSH.gif
-rw-r--r--  1 nagios nagios    945 2004-10-19 14:56 SSH.jpg
-rw-r--r--  1 nagios nagios   1751 2004-10-19 14:56 SSH.png

That works for me!

Remember: ONLY the first xedtemplate_config_file entry is taken!
e.g.:

xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg
xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg

hostsextinfo.cfg is ignored

xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg
xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg

serviceextinfo.cfg is ignored!

A Background image will only be shown if you select User supplied 
coordinates, Hostgroup_name and * are not working in extinfo!


Cheers
Jan


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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