Use Nagios XI REST API to schedule downtime

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Use Nagios XI REST API to schedule downtime

Post by sib »

Hi

Is there a way to use Nagios REST api to schedule a downtime?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Use Nagios XI REST API to schedule downtime

Post by jdalrymple »

Our Backend API only provides information, it cannot accept commands. Is that the API you're talking about?

http://assets.nagios.com/downloads/nagi ... nd_API.pdf
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: Use Nagios XI REST API to schedule downtime

Post by sib »

Exactly that is the one I was talking about.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Use Nagios XI REST API to schedule downtime

Post by lmiltchev »

You won't be able to use the API for scheduling downtime, but you could use an external command to do it from the CLI, i.e.:

http://old.nagios.org/developerinfo/ext ... and_id=118

You can view all external nagios commands here:

http://old.nagios.org/developerinfo/ext ... ndlist.php
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked