histogram & missing library

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

histogram & missing library

Post by amprantino »

Hello all,

when I am trying to access histogram, I get an "Internal Server Error".
From apache2 logs, I get these:

[cgi:error] [pid 30784] [client 192.168.x.x:64470] AH01215: /var/www/nagios/cgi-bin/histogram.cgi: error while loading shared libraries: libgd.so.2: wrong ELF class: ELFCLASS64, referer: http://nagios/side.php
[cgi:error] [pid 30784] [client 192.168.x.x:64470] End of script output before headers: histogram.cgi, referer: http://nagios/side.php

Where should this libgd.so.2 be located?
I can find the file here: /usr/lib/x86_64-linux-gnu/libgd.so.2
Probably is search the library se wrong path
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: histogram & missing library

Post by rkennedy »

What version of Core are you running, and what OS is the server running?
Former Nagios Employee
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: histogram & missing library

Post by amprantino »

rkennedy wrote:What version of Core are you running, and what OS is the server running?
# uname -a
Linux davinci 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
# cat /etc/debian_version
8.5

# nagios -v
Nagios Core 3.4.1

This was probably working but due to debian updates during the last years it got broken
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: histogram & missing library

Post by scottwilkerson »

Did you move files (like histogram.cgi) from a 32bit system to a 64 bit system?

That is what this error usually corresponds to, the recommendation would be to re-compile Nagios Core.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: histogram & missing library

Post by amprantino »

Probably not.
However, I will upgrade as its an old version. A new compile to the lastest 3.4 version will probably fix the problem.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: histogram & missing library

Post by rkennedy »

Let us know how the new install goes. Our latest version is actually 4.1.1.
Former Nagios Employee
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: histogram & missing library

Post by amprantino »

I just upgraded to latest 3.x version (3.4.1), I have recompiled all cgis and the issue was solved.

Thank you
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: histogram & missing library

Post by mcapra »

Thanks for sharing your fix! Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: histogram & missing library

Post by amprantino »

ok
Locked