Page 1 of 1
Use Nagios XI REST API to schedule downtime
Posted: Wed Apr 15, 2015 7:01 am
by sib
Hi
Is there a way to use Nagios REST api to schedule a downtime?
Re: Use Nagios XI REST API to schedule downtime
Posted: Wed Apr 15, 2015 9:57 am
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
Re: Use Nagios XI REST API to schedule downtime
Posted: Thu Apr 16, 2015 1:34 am
by sib
Exactly that is the one I was talking about.
Re: Use Nagios XI REST API to schedule downtime
Posted: Thu Apr 16, 2015 10:34 am
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