Images - cgi.cfg - nothing shows up
Potter, G M (Greg)
GPotter at MarathonOil.com
Mon Feb 3 18:38:16 CET 2003
I don't think the image *has* to be gd2. I am using png images and they work fine.
I think the issue is how often will you be using the status map and can you afford
the cpu cycles to generate the image on the fly. If the images appear in correct in
your other places where they are called directly from the html there is probably
an issue with Nagios generating the status map image and incorporating your
images into it. Look in your http error log and see if you get a message about
statusmap.cgi exiting pre-maturely. If this is the case you probably have some
configuration issues about the order/location of libpng, libjpeg and gd.
Greg
-----Original Message-----
From: Bas van der Veen [mailto:bas.vanderveen at kahuna.nl]
Sent: Monday, February 03, 2003 9:52 AM
To: Brendon Caligari; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Images - cgi.cfg - nothing shows up
Hi,
See http://nagios.sourceforge.net/docs/1_0/xeddefault.html
<gd2_image>
The name of a GD2 format image that should be associated with this host. This image will be used in the image created by the statusmap CGI. GD2 images can be created from PNG images by using the pngtogd2 utility supplied with Thomas Boutell's gd library. The GD2 images should be created in uncompressed format in order to minimize CPU load when the statusmap CGI is generating the network map image. The image will look best if it is 40x40 pixels in size. You can leave these option blank if you are not using the statusmap CGI. Images for hosts are assumed to be in the logos/ subdirectory in your HTML images directory (i.e. /usr/local/nagios/share/images/logos).
Looks like the image *has* to be converted to gd2 format...
Bas
-----Original Message-----
From: Brendon Caligari [mailto:brendon at iwg.info]
Sent: maandag 3 februari 2003 14:37
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Images - cgi.cfg - nothing shows up
In /usr/local/nagios/etc/cgi.cfg I added lines like:
hostextinfo[uranus]=;redhat.jpg;redhat.jpg;;RedHat 7.3;;;
..in the hope that the status map would show my images instead of the ?
The files have been placed in /usr/local/nagios/share/images/logos
The access rights are correct, and if I http to:
http://......./nagios/images/logos/redhat.jpg
I can see the image
The defaul t'?' shows up in the status map, and no errors crop up anywhere (stopped/started nagios, checked all log files, etc).
Tks to all
Brendon
******************************************************************
This footnote also confirms that this email message has
been swept by MIMEsweeper for the presence of
computer viruses.
******************************************************************
http://www.kahuna.nl
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
More information about the Users
mailing list