Skip to content

Instantly share code, notes, and snippets.

@jsidhu
Created July 6, 2016 19:01
Show Gist options
  • Save jsidhu/766e4e85193f89c94640495959eb5620 to your computer and use it in GitHub Desktop.
Save jsidhu/766e4e85193f89c94640495959eb5620 to your computer and use it in GitHub Desktop.
Curl post to zabbix api (api_jsonrpc.php)
curl -i -X POST -H 'Content-type:application/json' -d '{"jsonrpc":"2.0","method":"user.login","params":{ "user":"myUserName","password":"myPassword"},"auth":null,"id":0}' https://zabbix-web.symcpe.net/api_jsonrpc.php
@DonJohnSmith
Copy link

Thanks

@irom77
Copy link

irom77 commented Jan 18, 2018

curl  -H "Content-Type: application/json-rpc" -X POST  http://zabbix/api_jsonrpc.php -d '{"jsonrpc":"2.0","method":"apiinfo.version","id":1,"auth":null,"params":{}}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment