Forked from jsidhu/gist:766e4e85193f89c94640495959eb5620
Last active
September 22, 2017 03:29
-
-
Save timtsj/c57d0d659db5eac3aec5405de98431c8 to your computer and use it in GitHub Desktop.
Curl post to zabbix api (api_jsonrpc.php)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -i -X POST -H 'Content-Type: application/json-rpc' -d '{"jsonrpc":"2.0","method":"hostgroup.get", "params":{"output":["groupid", "name"]},"id":3,"auth":"2fc44689924341bc5b589d303cab8f1a"}' http://IP/zabbix/api_jsonrpc.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment