gd2 icons not displayed in statusmap

Matt Pounsett matt.pounsett at cira.ca
Fri Feb 13 17:04:10 CET 2004


On Thu, 12 Feb 2004, Matt Pounsett wrote:

> Basically, the statusmap.cgi appears to not be reading my gd2 images.  No
> errors are being generated either, which is making troubleshooting difficult.
> I'm assuming that the problem is with my use of pngtogd2, but can't confirm
> this.  The Nagios docs recommend using no compression, but there's no
> recommendation for chunk size.  Is this likely to be an issue?

Sorry to followup my own post, but further investigation has turned up another
potential problem.  This looks like it might be an issue at compile-time.
Basically, it didn't look like my statusmap was properly linked against libgd,
libgd, even though it appears to be linked (error free) at compile time.

% ldd statusmap.cgi
        libz.so.1 => /usr/lib/libz.so.1 (0xb75d2000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb75b0000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb758d000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb756f000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7437000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)

ldconfig had created a symlink from /usr/local/lib/libgd.so.2 to
/usr/local/lib/libgd.so.2.0.0, but there was no libgd.so .. I created that
symlink, recompiled, and voila:

% ldd statusmap.cgi
        libgd.so.2 => /usr/local/lib/libgd.so.2 (0xb75a8000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb759a000)
        libm.so.6 => /lib/tls/libm.so.6 (0xb7578000)
        libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7555000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7537000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb73ff000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb73ae000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb75eb000)

This is RedHat Edge Server 3.0.

Was this a real problem, or all in my head?  My status map was being updated
as I added new hosts, which suggests that it was at least able to use gd to
assemble the map image... but what was with the missing ld info?

I still haven't been able to get statusmap.cgi to show any custom icons, but
thought I'd drop this on the list and see if anyone had any insight.

-- 
Matt Pounsett                 CIRA - Canadian Internet Registration Authority
Technical Support Programmer                    350 Sparks Street, Suite 1110
matt.pounsett at cira.ca                                 Ottawa, Ontario, Canada
613.237.5335 ext. 231                                      http://www.cira.ca



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&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