While using Centreon on top of Nagios core, it is no more necessary to log on to the Nagios web interface to look after the monitoring overview. Centreon does it well even better.
Nevertheless, if you configure the Firefox addon “Nagios checker”, you need to have the right credentials with enough privileges to see all the Nagios monitoring views. Otherwise you can get the following errors :
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.
On RHEL 5.8 with a rpm-based Nagios installation, the default user account created is nagiosadmin. Its password is located and encrypted in /etc/nagios/passwd. Make sure you did not forget its password or set a new one :
root@localhost:~# cd /etc/nagios
root@localhost:~# htpasswd -c passwd nagiosadmin
All the details concerning access to monitoring and configuration views are in /etc/nagios/cgi.cfg :
root@localhost:~# cat /etc/nagios/cgi.cfg
main_config_file=/etc/nagios/nagios.cfg
physical_html_path=/usr/local/nagios/share
url_html_path=/nagios
nagios_check_command=/usr/local/nagios/libexec/check_nagios /usr/local/nagios/var/status.log 5 ‘/usr/sbin/nagios’
use_authentication=1
default_user_name=nagiosadmin
authorized_for_system_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_host_commands=nagiosadmin
authorized_for_all_services=nagiosadmin
authorized_for_all_service_commands=nagiosadmin
statusmap_background_image=logofullsize.jpg
default_statusmap_layout=4
default_statuswrl_layout=4
refresh_rate=90
ping_syntax=/bin/ping -n -c 5 $HOSTADDRESS$
If you have made any modification in the Nagios configuration, make sure the syntax is OK :
root@localhost:~#service nagios checkconfig
Then, reload Nagios configuration :
root@localhost:~# service nagios reload
More information in the official Nagios documentation :
Nagios Core : Authentication And Authorization In The CGIs
Firefox addon “Nagios checker” :
Nagios checker