Remove disable notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Remove disable notifications

Post 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?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Remove disable notifications

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Remove disable notifications

Post 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 . . .
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Remove disable notifications

Post by BanditBBS »

http://tracker.nagios.com/view.php?id=387

We'll figure something out in the short term while this hopefully gets added :)
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Remove disable notifications

Post by lmiltchev »

I agree with abrist - this would be a good feature to implement in one of the future releases.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Remove disable notifications

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Remove disable notifications

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Remove disable notifications

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Remove disable notifications

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Remove disable notifications

Post 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..."
Locked