Re: Several graphs not working after manual build/install
Posted: Wed Dec 21, 2011 5:00 pm
I get the same error in both Nagios and XI:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.15 (Red Hat) Server at cor2-nagios.hhven.net Port 80
From the httpd error_log:
[Wed Dec 21 13:45:09 2011] [error] [client 10.110.255.226] /usr/local/nagios/sbin/statusmap.cgi: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory, referer: http://cor2-nagios.hhven.net/nagios/side.php
[Wed Dec 21 13:45:09 2011] [error] [client 10.110.255.226] Premature end of script headers: statusmap.cgi, referer: http://cor2-nagios.hhven.net/nagios/side.php
I checked to see which package provides the libgd shared objects file:
> yum provides libgd.so.2
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
epel/metalink | 11 kB 00:00
rhel-x86_64-server-6 | 1.8 kB 00:00
rhel-x86_64-server-optional-6 | 1.8 kB 00:00
rhel-x86_64-server-supplementary-6 | 1.8 kB 00:00
rpmforge | 1.1 kB 00:00
gd-2.0.35-10.el6.i686 : A graphics library for quick creation of PNG or JPEG images
Repo : rhel-x86_64-server-6
Matched from:
Other : libgd.so.2
> yum install gd-2.0.35-10.el6
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Package gd-2.0.35-10.el6.x86_64 already installed and latest version
Nothing to do
> locate libgd
.
.
.
/usr/lib64/libgd.so
/usr/lib64/libgd.so.2
/usr/lib64/libgd.so.2.0.0
.
.
.
So the file appears to be there I am not sure why the CGI can't find it.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.15 (Red Hat) Server at cor2-nagios.hhven.net Port 80
From the httpd error_log:
[Wed Dec 21 13:45:09 2011] [error] [client 10.110.255.226] /usr/local/nagios/sbin/statusmap.cgi: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory, referer: http://cor2-nagios.hhven.net/nagios/side.php
[Wed Dec 21 13:45:09 2011] [error] [client 10.110.255.226] Premature end of script headers: statusmap.cgi, referer: http://cor2-nagios.hhven.net/nagios/side.php
I checked to see which package provides the libgd shared objects file:
> yum provides libgd.so.2
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
epel/metalink | 11 kB 00:00
rhel-x86_64-server-6 | 1.8 kB 00:00
rhel-x86_64-server-optional-6 | 1.8 kB 00:00
rhel-x86_64-server-supplementary-6 | 1.8 kB 00:00
rpmforge | 1.1 kB 00:00
gd-2.0.35-10.el6.i686 : A graphics library for quick creation of PNG or JPEG images
Repo : rhel-x86_64-server-6
Matched from:
Other : libgd.so.2
> yum install gd-2.0.35-10.el6
Loaded plugins: product-id, rhnplugin, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
Package gd-2.0.35-10.el6.x86_64 already installed and latest version
Nothing to do
> locate libgd
.
.
.
/usr/lib64/libgd.so
/usr/lib64/libgd.so.2
/usr/lib64/libgd.so.2.0.0
.
.
.
So the file appears to be there I am not sure why the CGI can't find it.