Page 1 of 2

Status Summary For All Service Groups - Permission Denied

Posted: Fri Nov 29, 2013 12:31 pm
by boxxyoho
I have a brand new installation of Nagios Core 4.0.0 installed on a Cent OS server. Everything works perfect except for the Status Summary For All Service Groups/Summary/Grid views. When I try to navigate to any of the views it automatically gives me the:

"It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file."

I have disabled authentication checks in the httpd configuration file and edited the CGI file with use_authentication=0 for testing purposes and even with no authentication I still cannot access the service groups. I have no idea what is causing this issue that I am experiencing.

Re: Status Summary For All Service Groups - Permission Denie

Posted: Sun Dec 01, 2013 5:26 pm
by jsmurphy
This error can also be generated when the cgi files in the Nagios bin directory have the wrong permissions... double check those file permissions as well.

Re: Status Summary For All Service Groups - Permission Denie

Posted: Mon Dec 02, 2013 11:44 am
by slansing
Yes please let us know what the output of the following is:

Code: Select all

ll -la /usr/local/nagios/sbin/*

Re: Status Summary For All Service Groups - Permission Denie

Posted: Mon Dec 09, 2013 1:30 pm
by boxxyoho
Here is the following output of the command:

Nothings changed. I double checked the cgi.cfg file and did not notice anything out of ordinary.

-rwxrwxr-x. 1 nagios nagios 288008 Nov 29 12:44 /usr/local/nagios/sbin/avail.cgi
-rwxrwxr-x. 1 nagios nagios 285448 Nov 29 12:44 /usr/local/nagios/sbin/cmd.cgi
-rwxrwxr-x. 1 nagios nagios 255400 Nov 29 12:44 /usr/local/nagios/sbin/config.cgi
-rwxrwxr-x. 1 nagios nagios 300264 Nov 29 12:44 /usr/local/nagios/sbin/extinfo.cgi
-rwxrwxr-x. 1 nagios nagios 255432 Nov 29 12:44 /usr/local/nagios/sbin/histogram.cgi
-rwxrwxr-x. 1 nagios nagios 234728 Nov 29 12:44 /usr/local/nagios/sbin/history.cgi
-rwxrwxr-x. 1 nagios nagios 230600 Nov 29 12:44 /usr/local/nagios/sbin/notifications.cgi
-rwxrwxr-x. 1 nagios nagios 226472 Nov 29 12:44 /usr/local/nagios/sbin/outages.cgi
-rwxrwxr-x. 1 nagios nagios 226760 Nov 29 12:44 /usr/local/nagios/sbin/showlog.cgi
-rwxrwxr-x. 1 nagios nagios 296200 Nov 29 12:44 /usr/local/nagios/sbin/status.cgi
-rwxrwxr-x. 1 nagios nagios 249128 Nov 29 12:44 /usr/local/nagios/sbin/statusmap.cgi
-rwxrwxr-x. 1 nagios nagios 243016 Nov 29 12:44 /usr/local/nagios/sbin/statuswml.cgi
-rwxrwxr-x. 1 nagios nagios 230664 Nov 29 12:44 /usr/local/nagios/sbin/statuswrl.cgi
-rwxrwxr-x. 1 nagios nagios 251144 Nov 29 12:44 /usr/local/nagios/sbin/summary.cgi
-rwxrwxr-x. 1 nagios nagios 242952 Nov 29 12:44 /usr/local/nagios/sbin/tac.cgi
-rwxrwxr-x. 1 nagios nagios 259528 Nov 29 12:44 /usr/local/nagios/sbin/trends.cgi

Re: Status Summary For All Service Groups - Permission Denie

Posted: Mon Dec 09, 2013 2:05 pm
by slansing
Are you trying to view this as the nagiosadmin? Or with another user you created?

Re: Status Summary For All Service Groups - Permission Denie

Posted: Mon Dec 09, 2013 2:48 pm
by boxxyoho
Yes, I am currently logged in as the nagiosadmin.

Re: Status Summary For All Service Groups - Permission Denie

Posted: Mon Dec 09, 2013 3:08 pm
by abrist
What about the permissions on the bin directory itself?

Code: Select all

ls -lad /usr/local/nagios/sbin
After you disabled auth, did you restart apache and nagios?

Code: Select all

service httpd restart
service nagios restart

Re: Status Summary For All Service Groups - Permission Denie

Posted: Mon Dec 09, 2013 3:23 pm
by boxxyoho
abrist wrote:What about the permissions on the bin directory itself?

Code: Select all

ls -lad /usr/local/nagios/sbin
After you disabled auth, did you restart apache and nagios?

Code: Select all

service httpd restart
service nagios restart
Here is the output for ls-lad /usr/local/nagios/sbin, everything looks okay...

drwxrwxr-x. 2 nagios nagios 4096 Nov 29 12:44 /usr/local/nagios/bin

I did indeed restart apache and nagios. Still no such luck.

Re: Status Summary For All Service Groups - Permission Denie

Posted: Mon Dec 09, 2013 3:26 pm
by abrist
Is it only the status cgi? If so, can you humor us by clearing the browser cache reloading the browser and trying to log in again as nagiosadmin?

Re: Status Summary For All Service Groups - Permission Denie

Posted: Mon Dec 09, 2013 4:06 pm
by boxxyoho
abrist wrote:Is it only the status cgi? If so, can you humor us by clearing the browser cache reloading the browser and trying to log in again as nagiosadmin?
I believe it is for only the status cgi. I have cleared the browser cache, reloaded the browser, logged back in and did all those steps on another PC and got the same results.