More Related Content Similar to Zabbix API at FISL12 by Takanori Suzuki Similar to Zabbix API at FISL12 by Takanori Suzuki (20) More from takanori suzuki More from takanori suzuki (9) Zabbix API at FISL12 by Takanori Suzuki1. Zabbix API and related tools - How to interface with Zabbix- Takanori Suzuki 28. By redirecting Zabbix commands, it returns result. $ echo get host|./zabcon.rb hostid,host 10017,Zabbix Server $ echo 'get item hostids=10017'|./zabcon.rb itemid,description,key_ 18435,Ping to the server (TCP),agent.ping 18436,Version of zabbix_agent(d) running,agent.version 18438,Maximum number of opened files,kernel.maxfiles 18439,Maximum number of processes,kernel.maxproc … ... 32. Using Zabbix API //get auth id $ curl -d '{"auth":null,"method":"user.authenticate","id":1,"params":{"password":"zabbix","user":"api_user"},"jsonrpc":"2.0"}' -H "Content-Type: application/json-rpc" http://localhost/zabbix185/api_jsonrpc.php //get item in "Zabbix Server" $ curl -d '{"jsonrpc":"2.0","method":"item.get","params":{"output":"shorten","host":"Zabbix Server","limit":0},"auth":"PUT_HERE_AUTH_ID","id":1}' -H "Content-Type: application/json-rpc" http://localhost/zabbix185/api_jsonrpc.php 41. If Zabbix web frontend is installed, we can use it by including 'include/config.inc.php' . 58. Thank you The original artwork by orngjce223 is distributed under CC BY license (http://creativecommons.org/licenses/by/3.0/us/)