Disable Host Notifications Remotely

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
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Disable Host Notifications Remotely

Post by JohnFLi »

I have some users ( our web developers) that as they move public facing webservers in and out of production they want to be able to run a script on their system that will disable all notifications for a specific host. They want to do it as a script so that it can be done automaticly (instead of having to manually disable them)

I have no idea on how to do that.
Any examples somebody could give me?
Everybody is somebody else’s weirdo
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Disable Host Notifications Remotely

Post by abrist »

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
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Disable Host Notifications Remotely

Post by JohnFLi »

thank you for that, but that looks like its all needing to be run on the linux machine itself......
Im looking for somethign that can be run from a windows machine.
Everybody is somebody else’s weirdo
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Disable Host Notifications Remotely

Post by abrist »

You can also disable notification remotely with the following GET:

Code: Select all

http://nagiosadmin:<password>@<ip>/nagios/cgi-bin/cmd.cgi?cmd_typ=11&cmd_mod=2&btnSubmit=Commit
And re-nable with:

Code: Select all

http://nagiosadmin:<password>@<ip>/nagios/cgi-bin/cmd.cgi?cmd_typ=12&cmd_mod=2&btnSubmit=Commit
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
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Disable Host Notifications Remotely

Post by JohnFLi »

I dont need them disabling all alerts, just specific ones. ALso, it still required the username and password to be entered.
Everybody is somebody else’s weirdo
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Disable Host Notifications Remotely

Post by scottwilkerson »

You can do this with Nagios Mobile
http://www.nagios.com/products/nagiosmobile
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: Disable Host Notifications Remotely

Post by JohnFLi »

You can close this item as well
Everybody is somebody else’s weirdo
Locked