From 04e3f33884012f23dc76e4ed1b8f589c7021436d Mon Sep 17 00:00:00 2001 From: emorino Date: Thu, 29 Aug 2019 17:02:25 +0200 Subject: [PATCH] Ajout installation plugins munin --- HowtoElasticsearch.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/HowtoElasticsearch.md b/HowtoElasticsearch.md index ff493cdc..238979bd 100644 --- a/HowtoElasticsearch.md +++ b/HowtoElasticsearch.md @@ -205,6 +205,38 @@ On check sur la page `/_cat/health` si le status n'est pas en **red**. /usr/lib/nagios/plugins/check_http -I 127.0.0.1 -u /_cat/health?h=st -p 9200 -r 'red' --invert-regex ~~~ +### Munin + +Des plugins pour Munin sont disponible sur ce dépot Github : https://github.com/y-ken/munin-plugin-elasticsearch/ + +Procedure d'installation : + +~~~ +# apt install libjson-perl +# git clone https://github.com/y-ken/munin-plugin-elasticsearch.git +# cp -a munin-plugin-elasticsearch /usr/local/src/ +# chmod go+rx /usr/local/src/munin-plugin-elasticsearch +# chmod 755 /usr/local/src/munin-plugin-elasticsearch/elasticsearch_* +# ln -s /usr/local/src/munin-plugin-elasticsearch/elasticsearch_* /etc/munin/plugins/ +# systemctl restart munin-node.service +~~~ + + +Puis tester quelques sondes : + +~~~ +# munin-run elasticsearch_cache +field_size.value 1410084 +query_size.value 659968 + +# munin-run elasticsearch_jvm_memory +heap_max.value 2130051072 +heap_used.value 1368633616 +non_heap_committed.value 187817984 +non_heap_used.value 175388648 +heap_committed.value 2130051072 +~~~ + ## Snapshots et sauvegardes ### Configuration des snapshots