Nagios Error: It appears as though you do not have permission to view information for any of the services you requested
It appears as though you do not have permission to view information for any of the services you requested
This error happens because of the lack of permission for Nagios htpassword user. This problem can be resolved by following the below steps.
Step1: Login to the Nagios server via ssh as root.
Step2: Open the Nagios configuration file.
#vi /opt/nagios/etc/cgi.cfg
Step3: Update the following lines and save.
use_authentication=1
authorized_for_all_host_commands=USER
authorized_for_all_hosts=USER
authorized_for_all_service_commands=USER
authorized_for_all_services=USER
authorized_for_configuration_information=USER
authorized_for_system_commands=USER
authorized_for_system_information=USER
Where USER need to be replaced with the required htpassword username.
If multiple users are there, it can be specified by comma separation without any spaces.
Step4: Restart Nagios service.
#systemctl restart nagios
That's all…