Page 7 of 9
Re: Reports section on side bar
Posted: Mon Nov 16, 2015 2:16 pm
by sinkak
scottwilkerson wrote:
Also, is it ALL of the links under reports, or just some?
Reports
Availability ----- Gateway Timeout .The gateway did not receive a timely response from the upstream server or application.
Trends ----- no image shows up just this line : ios/images/trends.gif' BORDER=0 ALT='Host State Trends' TITLE='Host State Trends'>
Alerts ----- Internal Server Error
History ----- Internal Server Error
Summary ----- still processing for past 20 min
Histogram ----- no graph or image showing up.
Notifications ----- Internal Server Error
Event Log ----- Internal Server Error
all of these error shows up after very long processing time
Re: Reports section on side bar
Posted: Mon Nov 16, 2015 2:20 pm
by sinkak
scottwilkerson wrote:
Did you install via deb package or from source?
If from source, what commands did you all run?
these are installation steps i followed for nagios.
Code: Select all
curl -L -O http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-4.0.8.tar.gz
curl -L -O http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz
curl -L -O http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
i followed this link
https://www.digitalocean.com/community/ ... untu-14-04 for installation
Re: Reports section on side bar
Posted: Mon Nov 16, 2015 5:57 pm
by tgriep
Take a look at this post and see it if helps on this issue.
https://support.nagios.com/forum/viewto ... 8&start=20
Re: Reports section on side bar
Posted: Tue Nov 17, 2015 12:21 pm
by sinkak
i checked your post.
i have this
in apache2.conf
Code: Select all
ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios| /usr/local/nagios/etc/stylesheets)>
Code: Select all
ubuntu@nagios-2015:/usr/lib/cgi-bin/nagios$ ls -l
total 3664
-rwxr-xr-x 1 root root 268360 Aug 4 18:26 avail.cgi
-rwxr-xr-x 1 root root 266920 Aug 4 18:26 cmd.cgi
-rwxr-xr-x 1 root root 235504 Aug 4 18:26 config.cgi
-rwxr-xr-x 1 root root 280608 Aug 4 18:26 extinfo.cgi
-rwxr-xr-x 1 root root 231496 Aug 4 18:26 histogram.cgi
-rwxr-xr-x 1 root root 206880 Aug 4 18:26 history.cgi
-rwxr-xr-x 1 root root 206880 Aug 4 18:26 notifications.cgi
-rwxr-xr-x 1 root root 198648 Aug 4 18:26 outages.cgi
-rwxr-xr-x 1 root root 202752 Aug 4 18:26 showlog.cgi
-rwxr-xr-x 1 root root 276512 Aug 4 18:26 status.cgi
-rwxr-xr-x 1 root root 227376 Aug 4 18:26 statusmap.cgi
-rwxr-xr-x 1 root root 219168 Aug 4 18:26 statuswml.cgi
-rwxr-xr-x 1 root root 206880 Aug 4 18:26 statuswrl.cgi
-rwxr-xr-x 1 root root 231504 Aug 4 18:26 summary.cgi
-rwxr-xr-x 1 root root 223304 Aug 4 18:26 tac.cgi
-rwxr-xr-x 1 root root 235600 Aug 4 18:26 trends.cgi
Should i change the ownership from root root to nagios nagios?
Re: Reports section on side bar
Posted: Tue Nov 17, 2015 1:54 pm
by rkennedy
sinkak wrote:I installed new version of nagios on new server but copied old nagios config files and scripts and made changes to the conf files accordingly.
changed timeout to 600 still same error.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Apache/2.4.7 (Ubuntu) Server at xx.xx.xx.xx Port 80
Did you modify the apache2.conf for any reason?
Yes, they should be owned by nagios.
Re: Reports section on side bar
Posted: Tue Nov 17, 2015 2:06 pm
by sinkak
i tried all of these
Code: Select all
sudo chown nagios:nagios /usr/lib/cgi-bin/nagios/*
sudo chown www-data:www-data /usr/lib/cgi-bin/nagios/*
sudo chown ubuntu:ubuntu /usr/lib/cgi-bin/nagios/*
restarted nagios and apache2.
still no change.
Re: Reports section on side bar
Posted: Tue Nov 17, 2015 2:11 pm
by sinkak
Did you modify the apache2.conf for any reason?
i changed the paths alias as they are different.
apaches.conf
https://support.nagios.com/forum/viewto ... 50#p161186
Re: Reports section on side bar
Posted: Tue Nov 17, 2015 4:31 pm
by rkennedy
Can you run the following command again and verify the permissions?
ls -l /usr/lib/cgi-bin/nagios/
Also - can you try to access the pages and then post the output of tail -n100 /var/log/apache2/error_log
I believe something isn't right with the apache configuration at this point.
Re: Reports section on side bar
Posted: Wed Nov 18, 2015 11:29 am
by sinkak
it was root root so i changed to nagios nagios to see if works.
still wont work.
Code: Select all
ubuntu@nagios-2015:~$ ls -l /usr/lib/cgi-bin/nagios/
total 3664
-rwxr-xr-x 1 nagios nagios 268360 Aug 4 18:26 avail.cgi
-rwxr-xr-x 1 nagios nagios 266920 Aug 4 18:26 cmd.cgi
-rwxr-xr-x 1 nagios nagios 235504 Aug 4 18:26 config.cgi
-rwxr-xr-x 1 nagios nagios 280608 Aug 4 18:26 extinfo.cgi
-rwxr-xr-x 1 nagios nagios 231496 Aug 4 18:26 histogram.cgi
-rwxr-xr-x 1 nagios nagios 206880 Aug 4 18:26 history.cgi
-rwxr-xr-x 1 nagios nagios 206880 Aug 4 18:26 notifications.cgi
-rwxr-xr-x 1 nagios nagios 198648 Aug 4 18:26 outages.cgi
-rwxr-xr-x 1 nagios nagios 202752 Aug 4 18:26 showlog.cgi
-rwxr-xr-x 1 nagios nagios 276512 Aug 4 18:26 status.cgi
-rwxr-xr-x 1 nagios nagios 227376 Aug 4 18:26 statusmap.cgi
-rwxr-xr-x 1 nagios nagios 219168 Aug 4 18:26 statuswml.cgi
-rwxr-xr-x 1 nagios nagios 206880 Aug 4 18:26 statuswrl.cgi
-rwxr-xr-x 1 nagios nagios 231504 Aug 4 18:26 summary.cgi
-rwxr-xr-x 1 nagios nagios 223304 Aug 4 18:26 tac.cgi
-rwxr-xr-x 1 nagios nagios 235600 Aug 4 18:26 trends.cgi
Code: Select all
ubuntu@nagios-2015:/var/log/apache2$ tail -n1000 /var/log/apache2/error.log.1
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/php.ini on line 833 in Unknown on line 0
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/apache2/php.ini on line 834 in Unknown on line 0
[Mon Nov 09 06:38:29.668261 2015] [mpm_prefork:notice] [pid 14320] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Mon Nov 09 06:38:29.668271 2015] [core:notice] [pid 14320] AH00094: Command line: '/usr/sbin/apache2'
[Mon Nov 09 19:07:40.768181 2015] [cgi:error] [pid 16186] [client 50.246.35.62:58546] End of script output before headers: history.cgi, referer: http://52.6.142.190/nagios/side.php
[Tue Nov 10 01:38:23.871138 2015] [:error] [pid 16186] [client 91.196.50.33:52722] script '/var/www/html/testproxy.php' not found or unable to stat
[Fri Nov 13 13:53:06.922613 2015] [:error] [pid 16187] [client 91.196.50.33:40437] script '/var/www/html/testproxy.php' not found or unable to stat
[Sun Nov 15 06:30:28.292267 2015] [mpm_prefork:notice] [pid 14320] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Re: Reports section on side bar
Posted: Wed Nov 18, 2015 2:32 pm
by rkennedy
Can you post the run the tail -n100 /var/log/apache2/error.log again as the log you posted is for error.log.1? It doesn't appear to be current.