Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save timtsj/c57d0d659db5eac3aec5405de98431c8 to your computer and use it in GitHub Desktop.
Save timtsj/c57d0d659db5eac3aec5405de98431c8 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-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