Skip to content

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

@tuwid

Description

@tuwid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions