Configure Event Handlers per Service using API

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
ronhow
Posts: 5
Joined: Mon May 25, 2020 4:21 am

Configure Event Handlers per Service using API

Post 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
ronhow
Posts: 5
Joined: Mon May 25, 2020 4:21 am

Re: Configure Event Handlers per Service using API

Post by ronhow »

So I was able to get this working using the same parameters, but the PUT endpoint.
Post Reply