Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nagios: It appears as though you do not have permission to view information for any of the hosts you requested… web user isnt aded in the cgi.cfg file #2

Open
tuwid opened this issue Dec 24, 2014 · 0 comments

Comments

@tuwid
Copy link

tuwid commented Dec 24, 2014

If we use a different user than nagios admin at the end of the script wizard, that user isnt added to the cgi.cfg file making thus the user not being able to access the information on the web interface

that user should be added in the following fields :
authorized_for_system_information=nagiosadmin,<nagios_web_user_here>

In my case I use a "online" username so I edited the following fields in the cgi.cfg file :

authorized_for_system_information=online
authorized_for_configuration_information=online
authorized_for_system_commands=online
authorized_for_all_services=online
authorized_for_all_hosts=online
authorized_for_all_service_commands=online
authorized_for_all_host_commands=online

I suggest doing something like this
sed -i 's/nagiosadmin$/nagiosadmin,$webUser/' againtst the cgi.cfg file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant