I need to set a schedule downtime for specific nagios host from the commandline by curl..how do I do that?
here is something I am already using for service/host notification enable/disable from commandline.
curl -d "some input here" url "user:pass"
Like way I need to do the thing for schedule downtime.Now the problem is that downtime option takes more options i.e starttime,endtime,comment etc.
So how do I get it done by curl from the commandline?
curl -d " some key value pair(hostname,servicename" url "username:passowrd"
which will do the service/host notification on and off from the commandline. So I want use curl in this fashion to provide downtime for specific nagios server.
Above script is not working for it because downtime option of nagios taked more parameter and I tried to infuse those in the script..but it didn't work out that way.We need provide starttime,endtime and comment value too.
Plus I have tried curl's option called --form and --form-string with that script..not able to get through.
The besic idea is instead of going to the Nagios web interface, we want to done this thing from the command line(we have succeded for service/host service and notification).
Hope I am absolutely clear now.
TIA
Bhaskar