Wednesday, 10 September 2014

Adding new monitor user in Nagios

Add monitor user to htpasswd.users file

[root@nagios usr]# htpasswd /etc/nagios/htpasswd.users monitor
New password:
Re-type new password:
Adding password for user monitor
[root@nagios usr]#


Enable monitor user for nagios.


vi /etc/nagios/cgi.cfg


Also find authorized_for_all_service and authorized_for_all_hosts and modify them as shown below

authorized_for_system_information=nagiosadmin,monitor

authorized_for_configuration_information=nagiosadmin,monitor

authorized_for_all_services=nagiosadmin,monitor
authorized_for_all_hosts=nagiosadmin,monitor




Reload nagios and apache so that the change may take effect

[root@nagios nagios]# /etc/rc.d/init.d/nagios restart
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.

[root@nagios nagios]# 


No comments:

Post a Comment