Hello,
I need to provide a way for our IT team to remotely disable event handlers. Ideally, this is done remotely through some sort of API/hook, but they could script out a login via the command line and run some sort of disable command on the Nagios machine if necessary. They do not have access to the Nagios XI GUI. I would like them to integrate a command into their maintenance scripts that will disable the event handlers I have set up when the IT team does upgrades/maintenance to the webservers that would otherwise cause the event handlers to fire.
Then, I would like to add another command to re-enable the event handlers at the very end of their maintenance script.
Can you help? Thanks.
how do I remote command line disable of event handlers
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: how do I remote command line disable of event handlers
you can do this via NRDP
Setup and same token in Admin -> Inbound Transfer
Then you can submit the command through
http://nagios_server/nrdp/
The command you want to use is one of the following
formats of the commands can be found here
http://old.nagios.org/developerinfo/ext ... ndlist.php
Setup and same token in Admin -> Inbound Transfer
Then you can submit the command through
http://nagios_server/nrdp/
The command you want to use is one of the following
Code: Select all
DISABLE_EVENT_HANDLERS
DISABLE_HOST_EVENT_HANDLER
DISABLE_SERVICE_EVENT_HANDLERhttp://old.nagios.org/developerinfo/ext ... ndlist.php