Page 1 of 1

histogram & missing library

Posted: Fri Jun 17, 2016 3:45 am
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

Re: histogram & missing library

Posted: Fri Jun 17, 2016 10:57 am
by rkennedy
What version of Core are you running, and what OS is the server running?

Re: histogram & missing library

Posted: Sat Jun 18, 2016 4:37 am
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

Re: histogram & missing library

Posted: Sat Jun 18, 2016 7:36 am
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.

Re: histogram & missing library

Posted: Sat Jun 18, 2016 8:27 am
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.

Re: histogram & missing library

Posted: Mon Jun 20, 2016 9:32 am
by rkennedy
Let us know how the new install goes. Our latest version is actually 4.1.1.

Re: histogram & missing library

Posted: Tue Jul 05, 2016 6:56 am
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

Re: histogram & missing library

Posted: Tue Jul 05, 2016 9:33 am
by mcapra
Thanks for sharing your fix! Is it alright if we lock this thread and mark the issue as resolved?

Re: histogram & missing library

Posted: Tue Jul 05, 2016 12:28 pm
by amprantino
ok