Status Summary For All Service Groups - Permission Denied
Status Summary For All Service Groups - Permission Denied
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.
"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
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.
-
- 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
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
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
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
-
- 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
Are you trying to view this as the nagiosadmin? Or with another user you created?
Re: Status Summary For All Service Groups - Permission Denie
Yes, I am currently logged in as the nagiosadmin.
Re: Status Summary For All Service Groups - Permission Denie
What about the permissions on the bin directory itself?
After you disabled auth, did you restart apache and nagios?
Code: Select all
ls -lad /usr/local/nagios/sbin
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.
"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.
Re: Status Summary For All Service Groups - Permission Denie
Here is the output for ls-lad /usr/local/nagios/sbin, everything looks okay...abrist wrote:What about the permissions on the bin directory itself?After you disabled auth, did you restart apache and nagios?Code: Select all
ls -lad /usr/local/nagios/sbin
Code: Select all
service httpd restart service nagios restart
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
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.
"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.
Re: Status Summary For All Service Groups - Permission Denie
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.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?