/ zabbix

Monitoring Logstash with Zabbix

Check latest version of logstash.py on GitHub.
The protobix script from @jbfavre is required.

logstash.py use Monitoring APIs of Logstash.

Requirements

From pip: pip install protobix

Configuration

Put logstash.py in your favorite scripts folder (/usr/local/bin in this case)

Zabbix Template

Import Template_Logstash.xml if you are using Zabbix 3.4.
If you are using Zabbix 3.2, import Template_Logstash-32.xml.

Zabbix agent configuration

Put logstash.py in UserParameter in zabbix agent configuration.

UserParameter=logstash.check,/usr/local/bin/logstash.py --update-items
UserParameter=logstash.discovery,/usr/local/bin/logstash.py --discovery

Restart zabbix agent.

Link Template to host in Zabbix.

Enjoy!