statusmap and trends problem
Andreas Ericsson
ae at op5.se
Thu Jan 6 14:53:03 CET 2005
Winkles, William (Bill) wrote:
> Can anyone give me any pointers on getting statusmap and trends working? I
> do have the gd, png, jpeg, and zlib libraries installed.
>
> I'm using Nagios 2.x (CVS) downloaded today, 1-5-05, running on solaris 9.
>
> The output from my apache error log shows:
>
> [Wed Jan 5 16:04:36 2005] [error] [client 135.116.141.207] Premature end of
> script headers: /usr/local/nagios/sbin/statusmap.cgi
>
> ld.so.1: trends.cgi: fatal: libgd.so.2: open failed: No such file or
> directory
>
You obviously don't have libgd properly installed then. Read up on
dynamic link loading for Solaris and you should be able to sort this out
in a jiffy.
> [Wed Jan 5 16:04:38 2005] [error] [client 135.116.141.207] Premature end of
> scr
>
> ipt headers: /usr/local/nagios/sbin/trends.cgi
>
> ld.so.1: trends.cgi: fatal: libgd.so.2: open failed: No such file or
> directory
>
> [Wed Jan 5 16:04:41 2005] [error] [client 135.116.141.207] Premature end of
> scr
>
> ipt headers: /usr/local/nagios/sbin/trends.cgi
>
>
>
> With the errors above, is it the apache server that can't find these files?
> Can I include this as an environment variable within the apache httpd.conf
> file?
>
>
>
> ld.so.1 is located at /usr/local/ld.so.1 and
>
> /usr/lib/ld.so.1
>
>
>
> libgd.so.2 is located at
>
> /usr/local/lib/libgd.so.2
>
>
>
> I have my LD_LIBRARY_PATH set to:
>
> /usr/local/lib:/usr/lib
>
>
>
> When I configured nagios, it did find the gd and png librarys. See output
> from configure below:
>
> checking for main in -liconv... yes
>
> checking for gdImagePng in -lgd (order 1)... no
>
> checking for gdImagePng in -lgd (order 2)... yes
>
> GD library was found!
>
> checking for ltdl.h... yes
>
> checking for lt_dlinit in -lltdl... yes
>
> checking for extra flags needed to export symbols... none
>
> checking for linker flags for loadable modules... -G
>
> checking for traceroute... /usr/sbin/traceroute
>
>
>
> This is the output from make and you can see that it does create the files:
>
> gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statuswrl.cgi statuswrl.c getcgi.o
> cgiuti
>
> ls.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
> xstatusdata-cgi.o
>
> -lm -lrt
>
> gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statusmap.cgi statusmap.c getcgi.o
> cgiuti
>
> ls.o cgiauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
> xstatusdata-cgi.o
>
> -lgd -liconv -lz -lm -lpng -ljpeg -lrt
>
> gcc -g -O2 -DHAVE_CONFIG_H -DNSCGI -o trends.cgi trends.c getcgi.o
> cgiutils.o c
>
> giauth.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
> -lgd -
>
> liconv -lz -lm -lpng -ljpeg -lrt
>
>
>
> Am I missing something here?
>
>
>
> Any advice is appreciated.
>
>
>
> Thanks.
>
>
>
> Bill
>
>
>
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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