Nagios Check the HTTP server's access permission settings for this CGI

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.