I'm having some issues sending a Web Request trigger from Screen Connect, now called Control.
Hoping to set up a trigger that will kick off a Zabbix Script when that trigger is...triggered.
I am able to send JSON requests from Visual Studio, Postman & curl.
At this point I don't know if it's a formatting issue or issue with how Control is sending the JSON request. If anybody has any insight into this I'd be grateful.
I've tried using additional Brackets, formatting styles, etc. - It appears in Screen Connect it stores the trigger settings in an XML document.
Here's what I'm trying to send from the Control trigger, which works with other solutions:
URL: http://x.x.x.x/zabbix/api_jsonrpc.php
HTTP Method: GET
Content Type: application:json
Body: {"jsonrpc":"2.0","method":"script.execute","params ":{"scriptid":"12","hostid":"10271"},"auth":"s uper-secret-authcode","id":1}
I tried using "Content-Type": "application/json; charset=UTF-8" for Content type, I also tried using the following, which works with curl:
curl -H "Content-Type:application/json" -d {"jsonrpc":"2.0","method":"script.execute" ,"params":{"scriptid":"12","hostid":"1027 1"},"auth":"super-secret-authcode" ,"id":1} http://x.x.x.x/zabbix/api_jsonrpc.php
Hoping to set up a trigger that will kick off a Zabbix Script when that trigger is...triggered.
I am able to send JSON requests from Visual Studio, Postman & curl.
At this point I don't know if it's a formatting issue or issue with how Control is sending the JSON request. If anybody has any insight into this I'd be grateful.
I've tried using additional Brackets, formatting styles, etc. - It appears in Screen Connect it stores the trigger settings in an XML document.
Here's what I'm trying to send from the Control trigger, which works with other solutions:
URL: http://x.x.x.x/zabbix/api_jsonrpc.php
HTTP Method: GET
Content Type: application:json
Body: {"jsonrpc":"2.0","method":"script.execute","params ":{"scriptid":"12","hostid":"10271"},"auth":"s uper-secret-authcode","id":1}
I tried using "Content-Type": "application/json; charset=UTF-8" for Content type, I also tried using the following, which works with curl:
curl -H "Content-Type:application/json" -d {"jsonrpc":"2.0","method":"script.execute" ,"params":{"scriptid":"12","hostid":"1027 1"},"auth":"super-secret-authcode" ,"id":1} http://x.x.x.x/zabbix/api_jsonrpc.php
Comment