Page 1 of 1

Configure Event Handlers per Service using API

Posted: Tue Jun 13, 2023 4:39 am
by ronhow
Hello,

We are on Nagios XI 5.9.1.

I have a few services which I would like to configure Event Handler for.
Ideally I would do this in bulk. The Bulk Modifications tools allows enabling an Event Handler per Service, but there does not appear to be a way to specify the command which should run.

I have tried POSTing to the API, specifying parameters:
  • event_handler
    event_handler_enabled
These parameters are returned by the API when hitting the GET endpoint for configs, but the POST endpoint does not seem to do anything with them.
Am I doing something wrong or will the POST endpoint simply not update those fields?

Thanks

Re: Configure Event Handlers per Service using API

Posted: Tue Jun 13, 2023 7:51 am
by ronhow
So I was able to get this working using the same parameters, but the PUT endpoint.