statusmap and trends problem
    Winkles, William (Bill) 
    billwinkles at lucent.com
       
    Thu Jan  6 00:20:26 CET 2005
    
    
  
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
scr
ipt headers: /usr/local/nagios/sbin/statusmap.cgi
ld.so.1: trends.cgi: fatal: libgd.so.2: open failed: No such file or
directory
[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
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050105/5f13ab95/attachment.html>
    
    
More information about the Users
mailing list