Page 1 of 1
Scripting
Posted: Wed Sep 06, 2017 10:09 am
by Phil.Pearce
Hi,
Is it possible to script scheduled downtime?
I'd like to automate a few things
Re: Scripting
Posted: Wed Sep 06, 2017 11:26 am
by kyang
Hi
@Phil.Pearce,
On Nagios Exchange there are actually a few scripts that can help you out. Along with a shell script example and a list of others.
https://exchange.nagios.org/directory/A ... d-Downtime
https://old.nagios.org/developerinfo/ex ... and_id=118
https://old.nagios.org/developerinfo/ex ... egory_id=6
Let us know if you have any more questions!
Re: Scripting
Posted: Wed Sep 06, 2017 12:21 pm
by dwhitfield
Thanks
@kyang!
@Phil.Pearce, please let us know if you have any additional questions!
Re: Scripting
Posted: Thu Sep 07, 2017 4:02 am
by Phil.Pearce
Thanks
Im looking to automate scheduling downtime remotly, such as JSON?
I can see there are few things in the exchange, im wondering if anyone else has done this?
Re: Scripting
Posted: Thu Sep 07, 2017 9:10 am
by scottwilkerson
As of now 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