Hi Folks,
I have a problem whereby users are disabling checks and notifications on hosts and services whenever they want to do scheduled work - rather than using the shedule downtime feature.
There seems to be a large number of users, and some do not know the in's and out's of nagios so just disable the checks or notifications, the problem is that they then forget to re-enable them, so are not notified when the next problem happens...
I was wondering if is possible to disable the "disable notifications" and the "disable active checks" on the web UI somehow? for certain users? to prevent them from disabing check and notifications, but still have the rights to schedule downtime and add comments, and acknowlegdge problems?
I had look aroud for some time, but not seem to have found an answer..
its nagios core 3.3.1
Can anyone help?
Cheers!
Disabling "disable notifications"
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Disabling "disable notifications"
To disable these you must edit the cgi configuration file and remove the user's name's from "authorized_for_system_commands":
Your cgi.cfg may be in a different location depending on your Distro and install options. The user must also be read only.
Code: Select all
vi /usr/local/nagios/etc/cgi.cfgCode: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
service nagios restartYour cgi.cfg may be in a different location depending on your Distro and install options. The user must also be read only.
Re: Disabling "disable notifications"
Hi slansing!
Thanks for the quick reply!
Would the user still be able to add comments and schedule downtime?
I think i tried this at some point, but there was very little the user could then do (a long time ago now so i forget) all i need is for just the disable notifications and disable active checks permissions removed, but nothing else...
Thanks for the quick reply!
Would the user still be able to add comments and schedule downtime?
I think i tried this at some point, but there was very little the user could then do (a long time ago now so i forget) all i need is for just the disable notifications and disable active checks permissions removed, but nothing else...
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Disabling "disable notifications"
Well the user would have to be read only for this to really work, if they are a contact for the Host they can still disable the notifications and active checks unfortunately.
Re: Disabling "disable notifications"
Thank you for all your help - i was hoping there was a way to remove the option from the gui or something - thanks again for your responses though...
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Disabling "disable notifications"
Yes, unfortunately portions of the UI are packaged together with the CGI's in a way that make that difficult.