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

Re: Reports section on side bar

Post by sinkak »

its direct to public ip of server
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Reports section on side bar

Post by tmcdonald »

Does it work if you use the internal IP address from within the network? You should try that, either through a VPN or some other method. It almost sounds like there is a network device somewhere in the Internet between you and the Nagios server that is acting up.
Former Nagios employee
sinkak
Posts: 158
Joined: Thu Jul 30, 2015 1:30 pm

Re: Reports section on side bar

Post by sinkak »

even if i am on VPN. Internal ip in browser wont work. I may have a routing issue.
But on the server. all inbound and outbound traffic is open. for ports 443 and 80.
does the reports come from any special port?
sinkak
Posts: 158
Joined: Thu Jul 30, 2015 1:30 pm

Re: Reports section on side bar

Post by sinkak »

can this be a memory / CPU issue?
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Reports section on side bar

Post by jolson »

Try accessing the reports, and then check on the apache access log - that is typically where you can find a useful error:

Code: Select all

tail -100 /var/log/apache2/access.log
can this be a memory / CPU issue?
It's likely not a CPU/memory issue, you can certainly check on them to ensure they aren't being stressed:

Code: Select all

sar
free -m
top | head -n5
does the reports come from any special port?
Nope - the reports come over the same port you're using to access Nagios with. I think that whatever problem you're having is on the back end of Nagios - the access logs may give us some hints.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
sinkak
Posts: 158
Joined: Thu Jul 30, 2015 1:30 pm

Re: Reports section on side bar

Post by sinkak »

Code: Select all

ubuntu@nagios-2015:~$ top | head -n5
top - 14:56:04 up 13 days, 23:03,  1 user,  load average: 5.71, 2.11, 0.79
Tasks: 126 total,   3 running, 123 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.7 us,  1.1 sy,  0.0 ni, 96.6 id,  0.5 wa,  0.0 hi,  0.0 si,  0.1 st
KiB Mem:   2048484 total,  1297680 used,   750804 free,     3052 buffers
KiB Swap:  2097148 total,  1132596 used,   964552 free.   118612 cached Mem
ubuntu@nagios-2015:~$ free -m
             total       used       free     shared    buffers     cached
Mem:          2000       1495        504          0          4        205
-/+ buffers/cache:       1285        714
Swap:         2047       1105        942
After clicking alerts history under reports.

Code: Select all

tail -100 /var/log/apache2/error.log
[Tue Oct 06 14:55:51.396779 2015] [cgi:error] [pid 26765] [client ip:51614] End of script output before headers: history.cgi, referer: http://52.6.142.190/nagios/side.php
[Tue Oct 06 14:58:41.838357 2015] [cgi:error] [pid 26536] [client ip:51615] End of script output before headers: history.cgi, referer: http://52.6.142.190/nagios/side.php

Code: Select all

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.
[/i]

Code: Select all

 
tail -100 /var/log/apache2/access.log
 nagiosadmin [06/Oct/2015:14:54:32 +0000] "GET /nagios/cgi-bin/history.cgi?host=all HTTP/1.1" 500 800 "http://ip0/nagios/side.php" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0"
 - nagiosadmin [06/Oct/2015:14:54:36 +0000] "GET /nagios/cgi-bin/history.cgi?host=all HTTP/1.1" 500 800 "http://ip/nagios/side.php" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0"
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 »

Can you please take a look at this post and see if this solution may be something that works for you?
scrusi wrote:Did one additional modification now:

Moved the nagios .cgis into cgi-bin/nagios and modified the nagios.conf accordingly.
so it looks like this now:

Code: Select all

ScriptAlias /nagios/cgi-bin "/var/www/vhosts/myserver/httpdocs/cgi-bin/nagios"
#ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
#<Directory "/usr/local/nagios/sbin">
<Directory "/var/www/vhosts/myserver/httpdocs/cgi-bin/nagios">

Code: Select all

$ls -l /var/www/vhosts/myserver/httpdocs/cgi-bin/nagios
total 5140
-rwxr-xr-x 1 [username] psacln 320576 Jun 11 11:02 archivejson.cgi
-rwxr-xr-x 1 [username] psacln 301880 Jun 11 11:02 avail.cgi
-rwxr-xr-x 1 [username] psacln 300296 Jun 11 11:02 cmd.cgi
-rwxr-xr-x 1 [username] psacln 273136 Jun 11 11:02 config.cgi
-rwxr-xr-x 1 [username] psacln 314136 Jun 11 11:02 extinfo.cgi
-rwxr-xr-x 1 [username] psacln 265128 Jun 11 11:02 histogram.cgi
-rwxr-xr-x 1 [username] psacln 244504 Jun 11 11:02 history.cgi
-rwxr-xr-x 1 [username] psacln 244496 Jun 11 11:02 notifications.cgi
-rwxr-xr-x 1 [username] psacln 318272 Jun 11 11:02 objectjson.cgi
-rwxr-xr-x 1 [username] psacln 236264 Jun 11 11:02 outages.cgi
-rwxr-xr-x 1 [username] psacln 240376 Jun 11 11:02 showlog.cgi
-rwxr-xr-x 1 [username] psacln 314160 Jun 11 11:02 status.cgi
-rwxr-xr-x 1 [username] psacln 316416 Jun 11 11:02 statusjson.cgi
-rwxr-xr-x 1 [username] psacln 261088 Jun 11 11:02 statusmap.cgi
-rwxr-xr-x 1 [username] psacln 256816 Jun 11 11:02 statuswml.cgi
-rwxr-xr-x 1 [username] psacln 240400 Jun 11 11:02 statuswrl.cgi
-rwxr-xr-x 1 [username] psacln 265024 Jun 11 11:02 summary.cgi
-rwxr-xr-x 1 [username] psacln 252736 Jun 11 11:02 tac.cgi
-rwxr-xr-x 1 [username] psacln 269224 Jun 11 11:02 trends.cgi
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

ubuntu@nagios-:/usr/local/nagios/sbin$ ls -al
drwxrwxr-x  2 nagios nagios   4096 Aug  3 16:29 .
drwxr-xr-x 11 root   root     4096 Aug 26 00:17 ..
-rwxrwxr-x  1 nagios nagios 320616 Aug  3 16:29 archivejson.cgi
-rwxrwxr-x  1 nagios nagios 301920 Aug  3 16:29 avail.cgi
-rwxrwxr-x  1 nagios nagios 300336 Aug  3 16:29 cmd.cgi
-rwxrwxr-x  1 nagios nagios 273176 Aug  3 16:29 config.cgi
-rwxrwxr-x  1 nagios nagios 314176 Aug  3 16:29 extinfo.cgi
-rwxrwxr-x  1 nagios nagios 265168 Aug  3 16:29 histogram.cgi
-rwxrwxr-x  1 nagios nagios 244552 Aug  3 16:29 history.cgi
-rwxrwxr-x  1 nagios nagios 244536 Aug  3 16:29 notifications.cgi
-rwxrwxr-x  1 nagios nagios 318312 Aug  3 16:29 objectjson.cgi
-rwxrwxr-x  1 nagios nagios 236304 Aug  3 16:29 outages.cgi
-rwxrwxr-x  1 nagios nagios 240416 Aug  3 16:29 showlog.cgi
-rwxrwxr-x  1 nagios nagios 314200 Aug  3 16:29 status.cgi
-rwxrwxr-x  1 nagios nagios 316456 Aug  3 16:29 statusjson.cgi
-rwxrwxr-x  1 nagios nagios 261136 Aug  3 16:29 statusmap.cgi
-rwxrwxr-x  1 nagios nagios 256864 Aug  3 16:29 statuswml.cgi
-rwxrwxr-x  1 nagios nagios 240448 Aug  3 16:29 statuswrl.cgi
-rwxrwxr-x  1 nagios nagios 265064 Aug  3 16:29 summary.cgi
-rwxrwxr-x  1 nagios nagios 252776 Aug  3 16:29 tac.cgi
-rwxrwxr-x  1 nagios nagios 269272 Aug  3 16:29 trends.cgi

Code: Select all

ubuntu@nagios-2015:/usr/lib/cgi-bin/nagios$ ls -al
drwxr-xr-x 2 root root   4096 Aug  4 18:26 .
drwxr-xr-x 3 root root   4096 Aug  4 18:26 ..
-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
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 »

If you're using Firefox/Chrome do you see anything in the "Network" section of the Developer Tools/Firebug console? (F12)
Former Nagios Employee.
me.
sinkak
Posts: 158
Joined: Thu Jul 30, 2015 1:30 pm

Re: Reports section on side bar

Post by sinkak »

this was the output
net.png
Locked