Zabbix Tellegram graph

1.Create new User and add to Guest group.

Example: User_for_API

2.Test

curl -s -i -X POST -H ‘Content-Type: application/json-rpc’ -d ‘{ “params”: { “user”: “User_for_API “, “password”: “” }, “jsonrpc”: “2.0”, “method”: “user.login”, “id”: 0 }’ ‘http://127.0.0.1/zabbix/api_jsonrpc.php’

3. config zbxtg_settings.py

zbx_api_user = “User_for_API”

zbx_basic_auth = False

zbx_basic_auth_user = “User_for_API”

zbx_tg_daemon_enabled = True


4. Send test graph

./zbxtg.py tellegram_user “{{OK}}test” “$(echo -e ‘zbxtg;graphs: \nzbxtg;graphs_period=3600\nzbxtg;itemid:23301\nzbxtg;title:ololo’)” –debug

Comments are closed.