Read Only CGI Patch for Nagios 3.0.3 Updated
For many many version now I have maintained a patch for Nagios called the Read Only Patch. I have found in most cases that when I have a Nagios install I have some type of external user involved. Nagios is a great tool for showing what’s working and not just what’s wrong. But in order to allow external users to see what’s working they need an account. And with that account there are all sorts of commands they can run or comments they can see. This patch removes that ability for selected users. It also removes comments as in most Nagios installs I leave the comments as a way for techs to relay information regarding a system and that information is not always meant for external view. If you have any questions please feel free to comment or ask them on the Nagios-Devel Mailing list.
D~
# READONLY Patch for Nagios 3.0.3 Derrick Bennett Aug 4, 2008
This patch will provide for a new option in cgi.cfg
authorized_for_read_only=
Any Nagios userid listed in the above cgi variable will be limited to Read only CGI Access.
This will block any service or host commands normally shown on the extinfo pages.
This will also block any service or host based comments from being shown to read only users.
As shown below instead of seeing the commands or comments they get a notice that commands are not available and comments just don’t show up at all.
![]()
