Reports section on side bar

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Reports section on side bar

Post by hsmith »

Let us know if you find anything in the Apache log.
Former Nagios Employee.
me.
sinkak
Posts: 158
Joined: Thu Jul 30, 2015 1:30 pm

Re: Reports section on side bar

Post 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
sinkak
Posts: 158
Joined: Thu Jul 30, 2015 1:30 pm

Re: Reports section on side bar

Post 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"
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Reports section on side bar

Post by rkennedy »

Can you please post the output of the following?
grep "default_socket_timeout" /etc/php.ini
Former Nagios Employee
sinkak
Posts: 158
Joined: Thu Jul 30, 2015 1:30 pm

Re: Reports section on side bar

Post by sinkak »

ubuntu@nagios-2015:~$ grep "default_socket_timeout" /etc/php5/apache2/php.ini
default_socket_timeout = 60
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Reports section on side bar

Post 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.
Former Nagios Employee
sinkak
Posts: 158
Joined: Thu Jul 30, 2015 1:30 pm

Re: Reports section on side bar

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Reports section on side bar

Post by hsmith »

Just for kicks, can you change the 240 to 600?
Former Nagios Employee.
me.
sinkak
Posts: 158
Joined: Thu Jul 30, 2015 1:30 pm

Re: Reports section on side bar

Post by sinkak »

still the same.
can it be due to RAM or memory issue on server?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Reports section on side bar

Post 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.
Former Nagios Employee.
me.
Locked