Help with check_http

Prabhu Kannan pkannan at apigee.com
Wed Feb 13 10:53:13 CET 2013


Hi,
I need help with converting below 2 CURL commands into check_http command,

curl -v -H "Content-Type: application/json" -X POST -d 
'{"RequestHeader":{"Token":null,"Detail":null,"CoordinationId":null},"CreateSessionRequestBody":{"SystemId":"3156","SystemPassword":"dAEWJuXY6vXSY3XDLb6lHYbex0o2tPYZWZL1+ub2KPI=","UserName":"apigee_console","UserPassword":"URQqPzjOBHYGbVO"}}' 
https://abc.com/v1/session/CreateSession


curl --data 
"client_secret=3ce5f1b2d1c6be44&grant_type=client_credentials&client_id=9f32d9a8598fb416965036c60fad9827&scope=PROFILE%20RENTALHISTORY" 
--header "Content-Type: application/x-www-form-urlencoded" -k 
https://abc.com/oauth2-13/token/


regards,
prabhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130213/0730e240/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list