Page 5 of 9

Re: Reports section on side bar

Posted: Wed Oct 21, 2015 9:28 am
by hsmith
Let us know if you find anything in the Apache log.

Re: Reports section on side bar

Posted: Tue Oct 27, 2015 12:28 pm
by sinkak

Code: Select all

tail -f /var/log/apache2/error.log
[Tue Oct 27 15:43:25.579766 2015] [cgi:error] [pid 14294] [client xx.xx.xx.xx:48403] script not found or unable to stat: /usr/lib/cgi-bin/test.sh
[Tue Oct 27 15:43:26.057984 2015] [cgi:error] [pid 14290] [client xx.xx.xx.xx:48488] script not found or unable to stat: /usr/lib/cgi-bin/tools
[Tue Oct 27 17:04:02.753499 2015] [cgi:error] [pid 8576] [client xx.xx.xx.xx:52264] End of script output before headers: history.cgi, referer: http://xx.xx.xx.xx/nagios/side.php
[Tue Oct 27 17:10:43.753734 2015] [cgi:error] [pid 14292] [client xx.xx.xx.xx:52396] End of script output before headers: history.cgi, referer: http://xx.xx.xx.xx/nagios/side.php

Re: Reports section on side bar

Posted: Tue Oct 27, 2015 12:36 pm
by sinkak

Code: Select all

tail -f /var/log/apache2/access.log
xx.xx.xx.xx - nagiosadmin [27/Oct/2015:17:32:35 +0000] "GET /nagios/images/logos/base/win40.png HTTP/1.1" 404 525 "http://xx.xx.xx.xx/nagios/cgi-bin/status.cgi?host=all" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0"
xx.xx.xx.xx - nagiosadmin [27/Oct/2015:17:32:36 +0000] "GET /nagios/images/logos/base/win40.png HTTP/1.1" 404 524 "http://xx.xx.xx.xx/nagios/cgi-bin/status.cgi?host=all" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0"
xx.xx.xx.xx - nagiosadmin [27/Oct/2015:17:32:36 +0000] "GET /nagios/images/ndisabled.gif HTTP/1.1" 304 179 "http://xx.xx.xx.xx/nagios/cgi-bin/status.cgi?host=all" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0"
xx.xx.xx.xx - nagiosadmin [27/Oct/2015:17:32:37 +0000] "GET /nagios/images/logos/base/ubuntu.png HTTP/1.1" 404 525 "http://xx.xx.xx.xx/nagios/cgi-bin/status.cgi?host=all" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0"
xx.xx.xx.xx - nagiosadmin [27/Oct/2015:17:32:37 +0000] "GET /nagios/images/logos/base/ubuntu.png HTTP/1.1" 404 525 "http://xx.xx.xx.xx/nagios/cgi-bin/status.cgi?host=all" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0"
xx.xx.xx.xx - nagiosadmin [27/Oct/2015:17:32:37 +0000] "GET /nagios/images/b_first2.png HTTP/1.1" 304 179 "http://xx.xx.xx.xx/nagios/cgi-bin/status.cgi?host=all" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0"
xx.xx.xx.xx - nagiosadmin [27/Oct/2015:17:32:37 +0000] "GET /nagios/images/b_prev2.png HTTP/1.1" 304 178 "http://xx.xx.xx.xx/nagios/cgi-bin/status.cgi?host=all" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0"
xx.xx.xx.xx - nagiosadmin [27/Oct/2015:17:32:37 +0000] "GET /nagios/images/b_next2.png HTTP/1.1" 304 178 "http://xx.xx.xx.xx/nagios/cgi-bin/status.cgi?host=all" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0"
xx.xx.xx.xx - nagiosadmin [27/Oct/2015:17:32:38 +0000] "GET /nagios/images/b_last2.png HTTP/1.1" 304 179 "http://xx.xx.xx.xx/nagios/cgi-bin/status.cgi?host=all" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0"

Re: Reports section on side bar

Posted: Tue Oct 27, 2015 3:51 pm
by rkennedy
Can you please post the output of the following?
grep "default_socket_timeout" /etc/php.ini

Re: Reports section on side bar

Posted: Wed Oct 28, 2015 10:53 am
by sinkak
ubuntu@nagios-2015:~$ grep "default_socket_timeout" /etc/php5/apache2/php.ini
default_socket_timeout = 60

Re: Reports section on side bar

Posted: Wed Oct 28, 2015 3:26 pm
by rkennedy
It may be your timeout configured in PHP, can you locate the line in php.ini for default_socket_timeout which will look like

Code: Select all

; Default timeout for socket based streams (seconds)
; http://www.php.net/manual/en/filesystem.configuration.php#ini.default-socket-$
default_socket_timeout = 60
change the 60 to 240, then restart your httpd and nagios.

Let us know if this works for you or not.

Re: Reports section on side bar

Posted: Tue Nov 03, 2015 11:35 am
by sinkak
still have this error.

Gateway Timeout

The gateway did not receive a timely response from the upstream server or application.
Apache/2.4.7 (Ubuntu) Server at xx.xx.xx.xx Port 80

Re: Reports section on side bar

Posted: Tue Nov 03, 2015 5:05 pm
by hsmith
Just for kicks, can you change the 240 to 600?

Re: Reports section on side bar

Posted: Wed Nov 04, 2015 12:02 pm
by sinkak
still the same.
can it be due to RAM or memory issue on server?

Re: Reports section on side bar

Posted: Wed Nov 04, 2015 1:48 pm
by hsmith
What are the specs on this server?

How much RAM/How many CPUs?

The load average looked a little high in your post before.