Script for import Zabbix Templates through API

Here is small script for import Zabbix template or host through API. Templates stored in special directory with *.json file. Zabbix templates have to special prepared in json format for api requests. Script:

Zabbix script + sample + test template: zabbix_import_template.tar

Read more

Realtime monitoring of current PGbouncer pools stats

Hello, on some project i’m using PGbouncer for PostgreSQL connections pooling. So, that’s nice to have ability to get top style stats for connection in pool and real connection to server. Here is small single line bash script for monitoring:

Example: database | user | cl_active | cl_waiting | sv_active | sv_idle | sv_used […]

Read more

Automation and integration zabbix through api

Hello, sometime you need to automated ordinary task. Especially when you have dynamic infrastructure with automatic provisioning and configuration management. Here is small example how you can integrate and automate. There are a lot of zabbix api implementation, for example: https://github.com/baniuyao/ZabbixPythonApi https://github.com/lukecyca/pyzabbix https://github.com/gnetsman/zabbix_api So, i decided to use https://github.com/gnetsman/zabbix_api due to ability to find so examples: https://github.com/gescheit/scripts/tree/master/zabbix. […]

Read more