Page 1 of 1

Re: CGI authori

Posted: Thu Jul 24, 2014 9:07 am
by tmcdonald
How are you accessing the CGI in this case? Is it by the command line or a direct call through the web browser?

In either case, please show the URL/string you are using to run the command.

Re: CGI authori

Posted: Mon Jul 28, 2014 9:24 am
by tmcdonald
You are missing some required fields. This is the command that worked for me:

Code: Select all

curl -d "cmd_typ=85&cmd_mod=2&hostgroup=linux-servers&com_data=SomeComment&start_time=07-28-2014+09%3A17%3A46&end_time=07-28-2014+11%3A17%3A46&fixed=1&hours=2&minutes=0&btnSubmit=Commit" 127.0.0.1/nagios/cgi-bin/cmd.cgi -u nagiosadmin:password
Try the equivalent on your system and let us know how it works out.

Re: CGI authori

Posted: Mon Jul 28, 2014 4:28 pm
by tmcdonald
We have a page detailing the different commands you can write directly to the nagios.cmd file (essentially a list of commands it needs to execute), but nothing like that for the CGIs specifically:

http://old.nagios.org/developerinfo/ext ... ndlist.php

If you are running this on the Nagios machine itself I would recommend using the nagios.cmd file, since the CGIs essentially write directly to that.