CGI authori

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CGI authori

Post 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.
Former Nagios employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CGI authori

Post 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.
Former Nagios employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CGI authori

Post 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.
Former Nagios employee
Locked