Create a read only user (viewuser) for Nagios Web GUI

Print Friendly, PDF & Email

As root add viewuser password:

# htpasswd /etc/nagios/passwd viewuser
New password:
Re-type new password:

Then check passwd file:

# cat /etc/nagios/passwd
nagiosadmin:oFx/UdOcsrPCM
viewuser:bL1BGqHzoALVE

Add/Edit a read only user (viewuser in this example) in the proper /etc/nagios/cgi.cfg file sections:

# grep viewuser /etc/nagios/cgi.cfg
authorized_for_all_services=nagiosadmin,viewuser
authorized_for_all_hosts=nagiosadmin,viewuser
authorized_for_read_only=viewuser

Restart Apache web and Nagios servers:

# service nagios restart
# service httpd restart

atlantixadmin has written 113 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>