CLI Curl Command to run External Commands - Disable/Enable

george george.tanenbaum23 at gmail.com
Sat Aug 14 19:38:52 CEST 2010


Hi,
Looking for a curl (or similar) command to enable/disable all service
notifications for a specified host.  Nagios 3.2.0 on Ubuntu 10.04.
Devs typically don't want to run around the webUI.  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=29\&cmd_mod=2\&host=$host
and
curl -d "cmd_typ=29&cmd_mod=2&host=$host&btnSubmit=Commit"
"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 SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 



More information about the Developers mailing list