Disabling "disable notifications"

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
chummers
Posts: 3
Joined: Wed May 09, 2012 3:51 am

Disabling "disable notifications"

Post by chummers »

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!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Disabling "disable notifications"

Post by slansing »

To disable these you must edit the cgi configuration file and remove the user's name's from "authorized_for_system_commands":

Code: Select all

vi /usr/local/nagios/etc/cgi.cfg

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

service nagios restart

Your cgi.cfg may be in a different location depending on your Distro and install options. The user must also be read only.
chummers
Posts: 3
Joined: Wed May 09, 2012 3:51 am

Re: Disabling "disable notifications"

Post by chummers »

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...
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Disabling "disable notifications"

Post by slansing »

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.
chummers
Posts: 3
Joined: Wed May 09, 2012 3:51 am

Re: Disabling "disable notifications"

Post by chummers »

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"

Post by slansing »

Yes, unfortunately portions of the UI are packaged together with the CGI's in a way that make that difficult.
Locked