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 »

Code: Select all

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
[Tue Nov 17 18:59:06.352877 2015] [mpm_prefork:notice] [pid 17494] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Tue Nov 17 18:59:06.352920 2015] [core:notice] [pid 17494] AH00094: Command line: '/usr/sbin/apache2'
[Tue Nov 17 19:06:02.201834 2015] [cgi:error] [pid 17497] [client 50.246.35.62:61345] End of script output before headers: history.cgi, referer: http://xx.xx.xx.xx/nagios/side.php
[Tue Nov 17 19:07:56.485984 2015] [mpm_prefork:notice] [pid 17494] AH00169: caught SIGTERM, shutting down
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
[Tue Nov 17 19:07:57.266461 2015] [mpm_prefork:notice] [pid 23958] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations
[Tue Nov 17 19:07:57.266498 2015] [core:notice] [pid 23958] AH00094: Command line: '/usr/sbin/apache2'
[Wed Nov 18 16:26:00.741338 2015] [cgi:error] [pid 24429] [client 50.246.35.62:63560] End of script output before headers: history.cgi, referer: http://xx.xx.xx.xx/nagios/side.php
[Wed Nov 18 16:29:49.317922 2015] [cgi:error] [pid 23965] [client 50.246.35.62:63562] End of script output before headers: showlog.cgi, referer: http://xx.xx.xx.xx/nagios/side.php
[Wed Nov 18 19:42:02.264918 2015] [cgi:error] [pid 23962] [client 50.246.35.62:49594] End of script output before headers: history.cgi, referer: http://xx.xx.xx.xx/nagios/side.php
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Reports section on side bar

Post by rkennedy »

Can you run the following command and post the output?

Code: Select all

sudo a2enmod cgi
sudo service apache2 restart
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:~$ sudo a2enmod cgi
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
Module cgi already enabled

apache2 is also running
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 »

sinkak wrote:apache2 is also running
That's a good thing. Have you restarted it?
Former Nagios Employee.
me.
sinkak
Posts: 158
Joined: Thu Jul 30, 2015 1:30 pm

Re: Reports section on side bar

Post by sinkak »

yes i restarted everything nagios and apache2
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Reports section on side bar

Post by tgriep »

Can you run the following on your Nagios system and post the output?

Code: Select all

ls -l /usr/local/nagios/sbin/
Be sure to check out our Knowledgebase for helpful articles and solutions!
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:~$ ls -l /usr/local/nagios/sbin/
total 5140
-rwxr-xr-x 1 nagios nagios 320616 Aug  3 16:29 archivejson.cgi
-rwxr-xr-x 1 nagios nagios 301920 Aug  3 16:29 avail.cgi
-rwxr-xr-x 1 nagios nagios 300336 Aug  3 16:29 cmd.cgi
-rwxr-xr-x 1 nagios nagios 273176 Aug  3 16:29 config.cgi
-rwxr-xr-x 1 nagios nagios 314176 Aug  3 16:29 extinfo.cgi
-rwxr-xr-x 1 nagios nagios 265168 Aug  3 16:29 histogram.cgi
-rwxr-xr-x 1 nagios nagios 244552 Aug  3 16:29 history.cgi
-rwxr-xr-x 1 nagios nagios 244536 Aug  3 16:29 notifications.cgi
-rwxr-xr-x 1 nagios nagios 318312 Aug  3 16:29 objectjson.cgi
-rwxr-xr-x 1 nagios nagios 236304 Aug  3 16:29 outages.cgi
-rwxr-xr-x 1 nagios nagios 240416 Aug  3 16:29 showlog.cgi
-rwxr-xr-x 1 nagios nagios 314200 Aug  3 16:29 status.cgi
-rwxr-xr-x 1 nagios nagios 316456 Aug  3 16:29 statusjson.cgi
-rwxr-xr-x 1 nagios nagios 261136 Aug  3 16:29 statusmap.cgi
-rwxr-xr-x 1 nagios nagios 256864 Aug  3 16:29 statuswml.cgi
-rwxr-xr-x 1 nagios nagios 240448 Aug  3 16:29 statuswrl.cgi
-rwxr-xr-x 1 nagios nagios 265064 Aug  3 16:29 summary.cgi
-rwxr-xr-x 1 nagios nagios 252776 Aug  3 16:29 tac.cgi
-rwxr-xr-x 1 nagios nagios 269272 Aug  3 16:29 trends.cgi
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Reports section on side bar

Post by tmcdonald »

Only difference from mine is the group writable flag:

Code: Select all

$ ls -l /usr/local/nagios/sbin/
total 5648
-rwxrwxr-x 1 nagios nagios 310752 Nov 12 13:15 archivejson.cgi
-rwxrwxr-x 1 nagios nagios 292040 Nov 12 13:15 avail.cgi
-rwxrwxr-x 1 nagios nagios 287912 Nov 12 13:15 cmd.cgi
-rwxrwxr-x 1 nagios nagios 259240 Nov 12 13:15 config.cgi
-rwxrwxr-x 1 nagios nagios 300712 Nov 12 13:15 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 255368 Nov 12 13:15 histogram.cgi
-rwxrwxr-x 1 nagios nagios 234664 Nov 12 13:15 history.cgi
-rwxrwxr-x 1 nagios nagios 234664 Nov 12 13:15 notifications.cgi
-rwxrwxr-x 1 nagios nagios 312512 Nov 12 13:15 objectjson.cgi
-rwxrwxr-x 1 nagios nagios 226440 Nov 12 13:15 outages.cgi
-rwxrwxr-x 1 nagios nagios 222600 Nov 12 13:15 outages-xml.cgi
-rwxrwxr-x 1 nagios nagios 230824 Nov 12 13:15 showlog.cgi
-rwxrwxr-x 1 nagios nagios 300232 Nov 12 13:15 status.cgi
-rwxrwxr-x 1 nagios nagios 230536 Nov 12 13:15 status-json.cgi
-rwxrwxr-x 1 nagios nagios 306560 Nov 12 13:15 statusjson.cgi
-rwxrwxr-x 1 nagios nagios 251592 Nov 12 13:15 statusmap.cgi
-rwxrwxr-x 1 nagios nagios 246984 Nov 12 13:15 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 231016 Nov 12 13:15 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 255208 Nov 12 13:15 summary.cgi
-rwxrwxr-x 1 nagios nagios 242920 Nov 12 13:15 tac.cgi
-rwxrwxr-x 1 nagios nagios 230632 Nov 12 13:15 tac-xml.cgi
-rwxrwxr-x 1 nagios nagios 263592 Nov 12 13:15 trends.cgi
I cannot imagine what difference it should make, but for the sake of testing can you make sure the permissions are 775 for that directory?
Former Nagios employee
sinkak
Posts: 158
Joined: Thu Jul 30, 2015 1:30 pm

Re: Reports section on side bar

Post by sinkak »

i did those changes.
but still i cannot see history of alerts.
Are you able to see reports section working for you?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Reports section on side bar

Post by rkennedy »

Can you post the output of ls -l /usr/local/nagios/sbin/ once again?
Former Nagios Employee
Locked