- Change agent item setting
-
Data Collection -> Hosts ->
-
Search for item
-
Set its 'Update interval'
-
API is served via web server.
curl -k -X POST ^
--url "https://192.168.11.15:10051/zabbix/api_jsonrpc.php" ^
--header "Content-Type: application/json-rpc" ^
--data "{\"jsonrpc\":\"2.0\",\"method\":\"apiinfo.version\",\"params\":{},\"id\":1}"
> {"jsonrpc":"2.0","result":"7.2.0","id":1}
Warning: In version 7.2 no /zabbix in the url.
SET TOKEN=...
curl -k -X POST ^
--url "https://192.168.11.15:10051/zabbix/api_jsonrpc.php" ^
--header "Authorization: Bearer %TOKEN%" ^
--header "Content-Type: application/json-rpc" ^
--data "{ \"jsonrpc\": \"2.0\", \"method\": \"host.get\", \"params\": { \"output\": [ \"hostid\", \"host\" ], \"selectInterfaces\": [ \"interfaceid\", \"ip\" ] }, \"id\": 2 }"