├── zabbix ├── userparameter_supervisord.conf ├── README.md └── zabbix_supervisor_v3_template.xml /zabbix: -------------------------------------------------------------------------------- 1 | zabbix ALL=(root) NOPASSWD: /usr/bin/supervisorctl status 2 | -------------------------------------------------------------------------------- /userparameter_supervisord.conf: -------------------------------------------------------------------------------- 1 | UserParameter=supervisor.status,sudo supervisorctl status|grep -v 'RUNNING'|awk '{print $1":"$2}'|paste -s -d, 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # zabbix-supervisor 2 | Very simple monitoring of Supervisor with Zabbix Agent 3 | 4 | # Instructions 5 | 6 | - Place `userparameter_supervisord.conf` file into `/etc/zabbix/zabbix_agentd.d/` directory and restart Zabbix Agent 7 | - Place `zabbix` file into `/etc/sudoers.d/` directory 8 | - Import `zabbix_supervisor_v3_template.xml` template via Zabbix Web 9 | - Add hosts to Template App Supervisor template 10 | 11 | Tested with: 12 | Zabbix Server 3.0.14, Supervisor 3.0, Debian 8 & Ubuntu 16 13 | -------------------------------------------------------------------------------- /zabbix_supervisor_v3_template.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 3.0 4 | 2018-01-26T14:00:40Z 5 | 6 | 7 | Templates 8 | 9 | 10 | 11 | 75 | 76 | 77 | 78 | {Template App Supervisor:supervisor.status.strlen()}>0 79 | Supervisor service problem {ITEM.LASTVALUE} 80 | 81 | 0 82 | 4 83 | 84 | 0 85 | 86 | 87 | 88 | 89 | --------------------------------------------------------------------------------