Status Summary For All Service Groups - Permission Denied

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.
boxxyoho
Posts: 5
Joined: Fri Nov 29, 2013 11:36 am

Status Summary For All Service Groups - Permission Denied

Post 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.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Status Summary For All Service Groups - Permission Denie

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Status Summary For All Service Groups - Permission Denie

Post by slansing »

Yes please let us know what the output of the following is:

Code: Select all

ll -la /usr/local/nagios/sbin/*
boxxyoho
Posts: 5
Joined: Fri Nov 29, 2013 11:36 am

Re: Status Summary For All Service Groups - Permission Denie

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Status Summary For All Service Groups - Permission Denie

Post by slansing »

Are you trying to view this as the nagiosadmin? Or with another user you created?
boxxyoho
Posts: 5
Joined: Fri Nov 29, 2013 11:36 am

Re: Status Summary For All Service Groups - Permission Denie

Post by boxxyoho »

Yes, I am currently logged in as the nagiosadmin.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Status Summary For All Service Groups - Permission Denie

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
boxxyoho
Posts: 5
Joined: Fri Nov 29, 2013 11:36 am

Re: Status Summary For All Service Groups - Permission Denie

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Status Summary For All Service Groups - Permission Denie

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
boxxyoho
Posts: 5
Joined: Fri Nov 29, 2013 11:36 am

Re: Status Summary For All Service Groups - Permission Denie

Post 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.
Locked