how do I remote command line disable of event handlers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Jdawg2002
Posts: 16
Joined: Mon May 14, 2012 1:31 pm

how do I remote command line disable of event handlers

Post by Jdawg2002 »

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.
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

Post by scottwilkerson »

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

Code: Select all

DISABLE_EVENT_HANDLERS
DISABLE_HOST_EVENT_HANDLER
DISABLE_SERVICE_EVENT_HANDLER
formats of the commands can be found here
http://old.nagios.org/developerinfo/ext ... ndlist.php
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked