I follow simple steps from guides all over the web:
1. add an user to Nagios via command htpasswd htpasswd.users username
2. in cgi.cfg file add this user to lines
authorized_for_system_information=nagiosadmin, username
authorized_for_configuration_information=nagiosadmin, username
authorized_for_system_commands=nagiosadmin, username
authorized_for_all_services=nagiosadmin, username
authorized_for_all_hosts=nagiosadmin, username
authorized_for_all_service_commands=nagiosadmin, username
authorized_for_all_host_commands=nagiosadmin, username
3. restart nagios3 service, even restart apache2 service
but when I try to list anything from nagios web interface it still gives me this annoying message:
It appears as though you do not have permission to view information for any of the services 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.
Where could be a problem please?
Adding user problem
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Adding user problem
Try removing the space between users within cgi.cfg. It likely is not parsing correctly as it expects no space to be there.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Adding user problem
Have you checked if in the contact definition, you actually have "can_submit_commands" equals to 1?
Re: Adding user problem
@OP Have you tried either Kalianto's or slansing's possible solutions?
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.