You do not have permission to view information for any host. Please check the HTTP server's access permission settings for this CGI.
Search the method
Ensure that all htpasswd.user groups are Nagios
Workaround:
Vi/usr/local/nagios/etc/cgi.cfg
Change the value of Use_authentication to 0.
Use_authentication=0
Then restart the Nagios service
Service Nagios Restart
There is another possibility:
The hostname in the configuration file says Service_description is used in Chinese.
Remember: hostname and service_description are best not to use Chinese!
Note: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Use_authentication=0
In accordance with the above changes will be the default of 1 to 0, but after this change in the service operation interface, when you want to adjust the service detection, there will be a prompt such as:
Sorry Dave, I can ' t let you do that ...
There's no need to reduce the security of CGI, you just need to add your Nagios administrator account to the Cgi.cfg file to
For example, my Nagios Admin user is Linux (this command generates the account Htpasswd-c/usr/local/nagios/etc/htpasswd.users Linux
Only add the first account to use the-c parameter)
You will need to modify the following items in the Cgi.cfg file:
Change the nagiosadmin of each item to Linux, and multi-user "," split.
Authorized_for_system_information=linux
Authorized_for_configuration_information=linux
Authorized_for_system_commands=linux
Authorized_for_all_services=linux
Authorized_for_all_hosts=linux
Authorized_for_all_service_commands=linux
Authorized_for_all_host_commands=linux
Nagios Check the HTTP server's access permission settings for this CGI