Zabbix template to monitor the state of Graylog's registered sidecar collectors.
It uses Zabbix Low Level Discovery (LLD) to identify the collectors through Graylog's API.
- Zabbix 3.2.6
- Graylog 2.2.3
- Python 2.7.x (take a look at the
import statements for the list of needed modules)
- Copy the .py and .conf in your Zabbix ExternalScript directory.
- Modify the values to reflect your environment in the .conf file
The password in the .conf file is using a simple base64 obfuscation. You can obtain your password's base64 value like:
Import the template
Link the template
You can link it to the Zabbix server itself if you wish, or anywhere for that matter.
Let the discovery rules a little time.
Return codes taken from source code backends/registry.go, except for code 99, which indicates an inactive collector, which status is still set to "Running" or 0. Hopefully, the time to catch that before it dissapears.