[Nagios-users] Setting Scheduled Downtime Externally
mad at b-care.net
Thu Dec 16 16:48:28 UTC 2010
On Thu, 2010-12-16 at 09:47 -0500, Tom Tucker wrote:
> Is it possible to set the "schedule downtime" value for hosts
> externally (curl for example)? I found some 2007 posts regarding this
> same topic, but the php script this individual wrote that would
> support such are no longer accessible.
Yes it is possible. I've done it to register periodic reboots. You have
to execute a HTTP POST request to the right URL. See what are the HTTP
data sent when you set a scheduled downtime in Nagios and mimic them
with a wget/php script/curl/...
More information about the Nagios-users