Hi

I try to acknowledge a service state through an http-request, but stumble on a 
problem.
When I user  the following url in a browser:

https://<server>/icinga/cgi-bin/cmd.cgi?cmd_typ=34&cmd_mod=2&host=<host>&service=Opensuse+Updates&com_data=test&btnSubmit=Commit


I get a screen saying the command request is successfully submitted to Icinga 
for processing (and the service gets acknowledged).
When i try this on the commandline using curl, with the same user and password:

curl -u user:password '
https://<server>/icinga/cgi-bin/cmd.cgi?cmd_typ=34&cmd_mod=2&host=<host>&service=Opensuse+Updates&com_data=test&btnSubmit=Commit'

i get the html page back, containg "<div class='commitFailed'>Not 
Authorized</div>" and the command doesn't submit.
Anyone any idea what i am missing? my idea behind this is when notifications 
are sent to out ticket system, i want the ticket system to acknowledge the 
problem and handle the ticket including notifications & escalations.
I have other script asking statuses from icinga2 working OK.... Don't 
understand why this fails on the commandline.


grtz

Hans Scheffers

AIX / Linux Systeembeheer
                                          
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to