Page 1 of 1

Scheduled downtime command line

Posted: Fri Sep 02, 2016 9:44 am
by npolite
Hello All,

I have an issue with setting up scheduled downtime at one of our newest sites. The command that our sript is using is (I have changed the password for the post)

Code: Select all

wget --user=restart --password=test -T 5 -O - "http://${NAGIOS}/nagios/cgi-bin/cmd.cgi?cmd_typ=22&cmd_mod=2&
host=${HOST}&service=${CHECK}&btnSubmit=Commit"
This works at one of our existing setups. I checked to see if there is a restart user in the .htaccess file and there is not at the site that this command currently works on. So I am confused as to where else to check to see where this user may be located. I see the commands in the nagios.log on the server that this is not working on but I don't see any errors.

Is there be some configuration variable that I need to look at?

Thanks

Re: Scheduled downtime command line

Posted: Fri Sep 02, 2016 11:33 am
by scottwilkerson
I think you are confused with the commands.

Code: Select all

cmd_typ=22&cmd_mod=2
would be used to enable notification.

To schedule downtime you would need cmd_typ=56 and a whole bunch more variables

To see what is required visit the following URL on your server

Code: Select all

http://${NAGIOS}/nagios/cgi-bin/cmd.cgi?cmd_typ=56&host=${HOST}&service=${CHECK}