Nagios-1.2, images and frustration...

Jan Scholten Jan.Scholten at iconz.net
Tue Nov 2 21:21:43 CET 2004


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!


To Michael Schwartzkopff: Even if you are both from Germany (like myself)  
it's polite to write in english on the list (or only answer him, not  
everybody)!

Cheers
Jan

> Hi,
>
> I have the same problem as some other users. I am running Debian 3.1
> with a self compiled nagios-1.2. Here are the ./configure-options:
>
> /configure  --with-template-objects --with-template-extinfo
>
> The system is running fine but how do I get these icons in the
> status map?
>
> I read the archive, I goggled: nothing helps... I tried to copy the
> statusmap.cgi from the Debian-package: nope - nothing helps.
>
> Here is the rest of my config:
>
> --- /usr/local/nagios/etc/hostextinfo.cfg ---
> define hostextinfo{
>         host_name       foo.bar.de
>         notes_url       http://localhost/munin
>         icon_image_alt  Linux-Workstation
>         icon_image      debian.jpg
>         vrml_image      debian.jpg
>         statusmap_image debian.gd2
>         2d_coords       100.0,50.0
>         #3d_coords       100.0,50.0,75.0
> }
> --- cut here ---
>
> I put the following line inside cgi.cfg:
>
> xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg
>
> The icon files are inside /usr/local/nagios/share/logos and are owned by
> nagios.nagios with 664. The directory is readable. I tried the
> debian-logo as replacement for the unknown logo and this works...
>
> This is a really strange problem... Why are there so many people who
> have this problem too and there is no solution for that?
>
> Hope someone can help me...
>
> Holger



-- 
Jan Scholten
Research and Development Intern
Iconz.co.nz


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
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