Skip to content

Zabbix template to monitor the state of Graylog's registered sidecar collectors

License

Notifications You must be signed in to change notification settings

madchap/graylog-collector-zabbix

Repository files navigation

graylog2-collector-zabbix

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.

Tested on

  • 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)

Installation

External Script

  • 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:

$ python
>>> base64.b64encode("mypass")
'bXlwYXNz'

To verify:

>>> base64.b64decode("bXlwYXNz")
'mypass'

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.

Notes

Return codes

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.

About

Zabbix template to monitor the state of Graylog's registered sidecar collectors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages