Nagios on Solaris 8

Hello everyone,

I am building Nagios 2.6 on Solaris 8 and for the most part, have it compiled, installed and running.

However, for any pages that generate a picture (statusmap.cgi, histogram.cgi, etc.) error out with a library error - here's the apache error log:

- ld.so.1: statusmap.cgi: fatal: relocation error: file /usr/lib/libgd.so.2: symbol overflow2: referenced symbol not found, referer: http://x.x.x.x/nagios/cgi-bin/statusmap.cgi?host=all

- Premature end of script headers: statusmap.cgi, referer: http://x.x.x.x/nagios/cgi-bin/statusmap.cgi?host=all

I've ldd'd all the cgi files and there aren't any missing libraries.

/usr/lib/libaio.so.1

/usr/lib/libc.so.1

/usr/lib/libdl.so.1

/usr/lib/libm.so.1

/usr/lib/libmp.so.2

/usr/lib/libnsl.so.1

/usr/lib/librt.so.1

/usr/lib/libsocket.so.1

/usr/local/lib/libXpm.so.4.11

/usr/local/lib/libgcc_s.so.1

/usr/local/lib/libgd.so.2

/usr/local/lib/libiconv.so.2

/usr/local/lib/libjpeg.so.62

/usr/local/lib/libpng12.so.0

/usr/local/lib/libz.so

/usr/openwin/lib/libX11.so.4

/usr/openwin/lib/libXext.so.0

With no missing files.

As far as installation goes, all the graphics libraries and pre-requisites installed successfully, and all the 'make checks' ran correctly as well. When gd was configured, the results were as follows:

** Configuration summary for gd 2.0.33:

Support for PNG library: yes

Support for JPEG library: yes

Support for Freetype 2.x library: no

Support for Fontconfig library:no

Support for Xpm library: yes

Support for pthreads: yes

At this point I can monitor external hosts with nrpe, as that and all plugins were installed successfully.

CRLE looks like this (Solaris does not use ldconfig):

# crle

Configuration file [version 4]: /var/ld/ld.config

Default Library Path (ELF):/usr/lib:/usr/local/lib:/usr/local/ssl/lib:/opt/sfw/lib:/usr/openwin/lib

Trusted Directories (ELF):/usr/lib/secure (system default)

Command line:

crle -c /var/ld/ld.config -l /usr/lib:/usr/local/lib:/usr/local/ssl/lib:/opt/sfw/lib:/usr/openwin/lib

Has anyone seen this before or know what I can do from here to get these cgi's working?

Thanks,

[2351 byte] By [Clawa] at [2007-11-26 13:56:55]
# 1

> file /usr/lib/libgd.so.2: symbol overflow2:

> /usr/local/lib/libgd.so.2

> usr/lib:/usr/local/lib:/usr/local/ssl/lib:/opt/sfw/lib

From your LD path it looks like /usr/lib occurs before /usr/local/lib. It also appears that the program is using /usr/lib/ and not /usr/local/lib.

So the 3 cent question is, is there a /usr/lib/libgd.so.2. If so, temporarily rename it and see if your problem goes away. If it does, check pkginfo to see if you can safely remove it.

alan

alan.paea at 2007-7-8 1:36:43 > top of Java-index,General,Talk to the Sysop...
# 2
Good catch Alan - I owe you 3 cents.That was it.. I guess that after staring at a problem for weeks and not finding the solution a good second pair of eyes is a good helper :)Thank you!AlbertMessage was edited by: Claw
Clawa at 2007-7-8 1:36:43 > top of Java-index,General,Talk to the Sysop...
# 3
> Good catch Alan - I owe you 3 cents.That's 3 cents off of my bill. You owe someone else 3 cents now.alan
alan.paea at 2007-7-8 1:36:43 > top of Java-index,General,Talk to the Sysop...
# 4
HIPls. reply Nagios is better managing solution than Big brother ? or can we use Nagios for using it for application servers monitoring as well.regdsvj
vijaysysa at 2007-7-8 1:36:43 > top of Java-index,General,Talk to the Sysop...
# 5

Hi vj,

I'm currently using Big Brother and have been using it at various jobs over the last 5 years and I love it.

I only started looking at Nagios recently as it was suggested to my by a colleague and so far I love what I'm seeing.

I'm trying to integrate it with Cacti for some pretty graphs (for management, as most techies don't really care about line graphs, pie charts, and 3d visual maps) that BB does not provide. I did try to add some Cacti/MRTG graphs into BB but that was an exercise in frustration.

Does anyone have any experience pulling Cacti into Nagios? I would like to remain with Nagios as a poller to populate rrd files, and just have Cacti graph the data from the rrd's.....

Thanks.

Clawa at 2007-7-8 1:36:43 > top of Java-index,General,Talk to the Sysop...