Setting Scheduled Downtime Externally

Marc-André Doll mad at b-care.net
Thu Dec 16 17:48:28 CET 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.

Hi,

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/...

Marc-André



------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list