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
histogram & missing library
-
amprantino
- Posts: 140
- Joined: Thu Apr 18, 2013 8:25 am
- Location: libexec
Re: histogram & missing library
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
# uname -arkennedy wrote:What version of Core are you running, and what OS is the server running?
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
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.
That is what this error usually corresponds to, the recommendation would be to re-compile Nagios Core.
-
amprantino
- Posts: 140
- Joined: Thu Apr 18, 2013 8:25 am
- Location: libexec
Re: histogram & missing library
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.
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
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
I just upgraded to latest 3.x version (3.4.1), I have recompiled all cgis and the issue was solved.
Thank you
Thank you
Re: histogram & missing library
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/
https://www.mcapra.com/
-
amprantino
- Posts: 140
- Joined: Thu Apr 18, 2013 8:25 am
- Location: libexec