Page 1 of 2
Remove disable notifications
Posted: Tue Apr 16, 2013 12:38 pm
by BanditBBS
I know this has been discussed before, I searched for a few minutes and couldn't find it.
I have a group of users that I basically want to be able to just acknowledge alerts, but really no other permissions in Nagios, specifically enabling or disabling alerts and checks. Is this possible? They are currently doing it in the Core installation that I am replacing with the following file:
Code: Select all
RewriteEngine On
RewriteCond %{REMOTE_USER} ^user1$ [OR,NC]
RewriteCond %{REMOTE_USER} ^user2$ [OR,NC]
RewriteCond %{REMOTE_USER} ^user3$ [OR,NC]
RewriteCond %{REMOTE_USER} ^user4$ [NC]
RewriteCond %{QUERY_STRING} cmd_typ=23 [OR,NC]
RewriteCond %{QUERY_STRING} cmd_typ=112 [OR,NC]
RewriteCond %{QUERY_STRING} cmd_typ=110 [OR,NC]
RewriteCond %{QUERY_STRING} cmd_typ=64 [OR,NC]
RewriteCond %{QUERY_STRING} cmd_typ=66 [OR,NC]
RewriteCond %{QUERY_STRING} cmd_typ=11 [NC]
RewriteRule (.*) /nagios/test/sorry.html? [L]
Is there anything in Xi that can handle this, or will we have to do it outside of Nagios in a similar fashion?
Re: Remove disable notifications
Posted: Tue Apr 16, 2013 1:12 pm
by scottwilkerson
We do not specifically have this for the XI interface, however you could you the same setup as you have for core and just have these users be core contacts and not XI users. Then they could access the core interface of your XI box and have the same functionality.
Re: Remove disable notifications
Posted: Tue Apr 16, 2013 1:14 pm
by abrist
Bandit, once again you are wandering into sourceguardian files . . .
I am sure you have heard it before from us, but open a feature request at tracker.nagios.com for read-only user privileges to allow acknowledging of alerts. This is a good feature, maybe even expand on it to include more user-level checkboxes for things like:
1. Acknowledgement
2. Immediate check
3. Dashboard/Views only (good for venders)
4. Downtime
5. I am sure there are others.
Your current method will have to do for now, and honestly, it looks like it will work just fine. But all those ack-only techs do not get the the shiny new interface . . .
Re: Remove disable notifications
Posted: Tue Apr 16, 2013 2:17 pm
by BanditBBS
http://tracker.nagios.com/view.php?id=387
We'll figure something out in the short term while this hopefully gets added

Re: Remove disable notifications
Posted: Tue Apr 16, 2013 3:31 pm
by lmiltchev
I agree with abrist - this would be a good feature to implement in one of the future releases.
Re: Remove disable notifications
Posted: Mon Dec 16, 2013 9:44 am
by BanditBBS
I'm resurrecting an old thread, just so happens to be one of my own though
I did open the feature request for this a while ago btw:
http://tracker.nagios.com/view.php?id=387
Is there any way I can remove the "disable notifications" link? If I want someone to be able to do that, I'll give them advanced features and they can do it from that tab. Or is that venturing into source guardian files? GRRRRRR
Re: Remove disable notifications
Posted: Mon Dec 16, 2013 10:18 am
by scottwilkerson
The question comes in, should they still be able to configure the object (which would let them change/disable notifications a different way)? acknowledge problems? These are wrapped up in the same settings, and if not, then you can mark them as a read-only user to accomplish the same task.
Re: Remove disable notifications
Posted: Mon Dec 16, 2013 10:33 am
by BanditBBS
scottwilkerson wrote:The question comes in, should they still be able to configure the object (which would let them change/disable notifications a different way)? acknowledge problems? These are wrapped up in the same settings, and if not, then you can mark them as a read-only user to accomplish the same task.
i need some of these users to only be able to acknowledge issues, nothing else.
They will not have advanced features or (re)configure objects permissions. But that is easy from their user account, just make sure they don't have the check box checked.
Re: Remove disable notifications
Posted: Mon Dec 16, 2013 3:25 pm
by BanditBBS
basically, we have a group of users that will go disable notifications instead of acknowledging...and yes, I know its a management issue, but I have to pick my fights. I just want to remove the disable notifications link from the quick actions box.
Re: Remove disable notifications
Posted: Mon Dec 16, 2013 4:54 pm
by slansing
I've got an ugly hack for you that would work for now. Be sure you make a backup of:
Code: Select all
/usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-servicestatus.inc.php
/usr/local/nagiosxi/html/includes/components/xicore/ajaxhelpers-hoststatus.inc.php
Then edit them to comment out lines 770-777 in ajaxhelpers-servicestatus.inc.php and 615-622 in ajaxhelpers-hoststatus.inc.php . This will effectively remove that functionality from your Home > Services/hosts pages. Unfortunately this would be in effect for everyone who uses the web interface "including you..."