Page 1 of 1
Disable Host Notifications Remotely
Posted: Thu Aug 07, 2014 11:31 am
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?
Re: Disable Host Notifications Remotely
Posted: Thu Aug 07, 2014 4:54 pm
by abrist
Re: Disable Host Notifications Remotely
Posted: Thu Aug 07, 2014 5:03 pm
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.
Re: Disable Host Notifications Remotely
Posted: Fri Aug 08, 2014 2:23 pm
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
Re: Disable Host Notifications Remotely
Posted: Fri Aug 08, 2014 5:43 pm
by JohnFLi
I dont need them disabling all alerts, just specific ones. ALso, it still required the username and password to be entered.
Re: Disable Host Notifications Remotely
Posted: Mon Aug 11, 2014 10:30 am
by scottwilkerson
Re: Disable Host Notifications Remotely
Posted: Wed Aug 27, 2014 4:03 pm
by JohnFLi
You can close this item as well