Page 1 of 1

[Nagios-devel] CLI Curl Command to run External Commands -

Posted: Sat Aug 14, 2010 4:38 pm
by Guest
Hi,
Looking for a curl (or similar) command to enable/disable all service
notifications for a specified host.=A0 Nagios 3.2.0 on Ubuntu 10.04.
Devs typically don't want to run around the webUI.=A0 I have tried:

(to disable service notifications for a specified host)

curl -s -k -u nagiosadmin:$pwd
$nagios_server/nagios3/cgi-bin/cmd.cgi?cmd_typ=3D29\&cmd_mod=3D2\&host=3D$h=
ost
and
curl -d "cmd_typ=3D29&cmd_mod=3D2&host=3D$host&btnSubmit=3DCommit"
"http://$nagios_server/nagios3/cgi-bin/cmd.cgi"

cmd_typ 28 looks to disable
cmd_typ 29 looks to enable

Would be nice to get a couple commands and the cmd_typ's included in
the documentation. The external command list doesn't include this
type of information.

Thanks!





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]