Scripting

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Phil.Pearce
Posts: 52
Joined: Fri Jul 18, 2014 7:30 am

Scripting

Post by Phil.Pearce »

Hi,

Is it possible to script scheduled downtime?
I'd like to automate a few things
kyang

Re: Scripting

Post 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!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Scripting

Post by dwhitfield »

Thanks @kyang!

@Phil.Pearce, please let us know if you have any additional questions!
Phil.Pearce
Posts: 52
Joined: Fri Jul 18, 2014 7:30 am

Re: Scripting

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Scripting

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked