Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ejimz/Elasticsearch-zabbix
Elasticsearch template and script for zabbix
https://github.com/ejimz/Elasticsearch-zabbix
Last synced: about 15 hours ago
JSON representation
Elasticsearch template and script for zabbix
- Host: GitHub
- URL: https://github.com/ejimz/Elasticsearch-zabbix
- Owner: ejimz
- Created: 2013-03-22T08:43:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T14:16:33.000Z (about 7 years ago)
- Last Synced: 2024-08-03T06:01:15.660Z (4 months ago)
- Language: Python
- Size: 19.5 KB
- Stars: 83
- Watchers: 20
- Forks: 73
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Elasticsearch-zabbix
====================Elasticsearch template and script for zabbix 2.0
This project is a fork of Elasticsearch template from zabbix-grab-bag
https://github.com/untergeek/zabbix-grab-bag
These are made available by me under an Apache 2.0 license.
http://www.apache.org/licenses/LICENSE-2.0.html
Contributing
=============Feel free to add improvements, just send me your pull request :D
How it works
=============- Put ESzabbix.py in /opt/zabbix/externalscripts/ in the zabbix node
- Put ESzabbix.userparm in the zabbix include parameters dir, in this case "/opt/zabbix/agent_include"
- Import ESzabbix_templates.xml to zabbix server
- requires 'pyes' to run this script
Specs
=====The items here are for monitoring Elasticsearch (presumably for logstash).
The template xml file actually contains three templates:
1. Elasticsearch Node & Cache (which is for node-level monitoring)
2. Elasticsearch Cluster (cluster state, shard-level monitoring, record count, storage sizes, etc.)
3. Elasticsearch Service (ES service status)
The node name is expected as a host-level macro {$NODENAME}
There are triggers assigned for the cluster state:
0 = Green (OK)
1 = Yellow (Average, depends on "red")
2 = Red (High)
You will likely want to assign a value mapping for the ElasticSearch Cluster Status item.
On Zabbix 3.0 it can be incrusted on export templates filesIn any event, the current list of included items is:
* ES Cluster (11 Items)
- Cluster-wide records indexed per second
- Cluster-wide storage size
- ElasticSearch Cluster Status
- Number of active primary shards
- Number of active shards
- Number of data nodes
- Number of initializing shards
- Number of nodes
- Number of relocating shards
- Number of unassigned shards
- Total number of records
* ES Cache (2 Items)
- Node Field Cache Size
- Node Filter Cache Size
* ES Node (2 Items)
- Node Storage Size
- Records indexed per second
* ES Service (1 Item)
- Elasticsearch service status