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?
Disable Host Notifications Remotely
Disable Host Notifications Remotely
Everybody is somebody else’s weirdo
Re: Disable Host Notifications Remotely
You could write to command pipe with an external command:
http://nagios.sourceforge.net/docs/3_0/extcommands.html
http://old.nagios.org/developerinfo/ext ... ndlist.php
Specifically:
http://old.nagios.org/developerinfo/ext ... mand_id=16
http://nagios.sourceforge.net/docs/3_0/extcommands.html
http://old.nagios.org/developerinfo/ext ... ndlist.php
Specifically:
http://old.nagios.org/developerinfo/ext ... mand_id=16
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.
"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.
Re: Disable Host Notifications Remotely
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.
Im looking for somethign that can be run from a windows machine.
Everybody is somebody else’s weirdo
Re: Disable Host Notifications Remotely
You can also disable notification remotely with the following GET:
And re-nable with:
Code: Select all
http://nagiosadmin:<password>@<ip>/nagios/cgi-bin/cmd.cgi?cmd_typ=11&cmd_mod=2&btnSubmit=CommitCode: Select all
http://nagiosadmin:<password>@<ip>/nagios/cgi-bin/cmd.cgi?cmd_typ=12&cmd_mod=2&btnSubmit=CommitFormer 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.
"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.
Re: Disable Host Notifications Remotely
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
You can do this with Nagios Mobile
http://www.nagios.com/products/nagiosmobile
http://www.nagios.com/products/nagiosmobile
Re: Disable Host Notifications Remotely
You can close this item as well
Everybody is somebody else’s weirdo