Nagios monitoring error It appears as though you don't have the permission to view ...

Source: Internet
Author: User

Today after the installation of Nagios, through the Nagios Web interface click on the host, service, issue page, all error, error content is similar, such as Click Services, Error:

It appears as though you don't have permission to view information for any of the services you requested... as shown:Baidu, a lot of articles are basically the same, change /usr/local/nagios/etc/cgi.cfg file in a parameter use_authentication=1 1 to 0, Restart Nagios.

This is actually a parameter for Nagios to ensure security, although the method is feasible, but it may lead to security risks.

so I looked carefully at the contents of this file, and quickly found the problem! The original reason for such a hint, mainly is the issue of authentication.

When we install Nagios, we have a step, we will create an account, this account for our login Nagios webpage username, the command is as follows:

[Email protected]_server ~]# htpasswd-c  /usr/local/nagios/etc/htpasswd.users nagiosadmin      //  Enter the Nagiosadmin user's password as prompted

Nagiosadmin is the administrator we use to log in to Nagios, and cgi.cfg is used to verify the identity of the administrator.

If the administrator user we generate is not nagiosadmin, the validation will fail, and the error that starts with the description will appear.

so , we can now just change the user name in the config file to the actual administrator username, save it, and then restart Nagios! As I created the Administrator account for nagios_5201351

The solution is as follows:

1, edit the /usr/local/nagios/etc/cgi.cfg file, modify the values of the following several options for their own created management users, in fact, you can also directly add the user name we created, separated by commas, as follows:

authorized_for_system_information=nagiosadmin,nagios_5201351authorized_for_configuration_information= nagiosadmin,nagios_5201351authorized_for_system_commands=nagiosadmin,nagios_5201351authorized_for _all_services=nagiosadmin,nagios_5201351authorized_for_all_hosts=Nagiosadmin,nagios_ 5201351authorized_for_all_service_commands=nagiosadmin,nagios_5201351authorized_for_all_host_commands =nagiosadmin,nagios_5201351

Nagios monitoring error It appears as though you don't have the permission to view ...

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.