Module: check_mk
Branch: master
Commit: 85726ac224710112bbaf0ebbf1c0e1eab3e456cb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=85726ac2247101…
Author: Ronny Bruska <rb(a)mathias-kettner.de>
Date: Wed Mar 20 20:53:21 2019 +0100
7202 Elasticsearch Monitoring
A special agent and first checks to support monitoring of Elasticsearch cluster, nodes and
indices.
With this werk it is possible to monitor the cluster and node states of an elasticsearch
instance.
LI: elasticsearch_cluster_health: State of the cluster (eg. green/yellow/red), Name,
Number of nodes, Number of data nodes
LI: elasticsearch_cluster_health.shards: Number of shards in different states
LI: elasticsearch_cluster_health.tasks: Pending tasks, Task max waiting, Time out of
tasks
LI: elasticsearch_nodes: Total virtual memory, CPU usage, Number of open file descriptors
of nodes
For each check it is possible to set parameter in the associated WATO rule.
Checks for Cluster, Indices and Shard statistics follow soon.
Thanks to Fabian Binder for creating the initial version of the agent and checks!
Change-Id: I69b2e1c3653265b3645fdc8d8d9f059eae974079
---
.werks/7202 | 24 +++
agents/special/agent_elasticsearch | 182 ++++++++++++++++
checkman/elasticsearch_cluster_health | 15 ++
checkman/elasticsearch_cluster_health.info | 12 ++
checkman/elasticsearch_cluster_health.shards | 13 ++
checkman/elasticsearch_cluster_health.tasks | 12 ++
checkman/elasticsearch_nodes | 16 ++
checks/agent_elasticsearch | 53 +++++
checks/elasticsearch_cluster_health | 206 ++++++++++++++++++
checks/elasticsearch_nodes | 102 +++++++++
cmk/gui/plugins/metrics/check_mk.py | 97 +++++++++
.../elasticsearch_cluster_health.py | 232 +++++++++++++++++++++
.../wato/check_parameters/elasticsearch_nodes.py | 86 ++++++++
cmk/gui/plugins/wato/datasource_programs.py | 76 +++++++
cmk/utils/man_pages.py | 1 +
.../datasets/elasticsearch_cluster_health.py | 79 +++++++
.../generictests/datasets/elasticsearch_nodes.py | 150 +++++++++++++
17 files changed, 1356 insertions(+)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=85726ac224…