Skip to content

Commit

Permalink
ElasticSearch now lives in /var/elasticsearch
Browse files Browse the repository at this point in the history
This was generating errors in munin-node.log
  • Loading branch information
tsibley committed Feb 4, 2014
1 parent 7f78503 commit 75cf7e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/munin/files/plugins/elasticsearch_translog_size
Expand Up @@ -18,7 +18,7 @@ if [ "$1" = "config" ]; then
exit 0
fi

NUMBER=`ls /srv/elasticsearch/metacpan_v1/nodes/0/indices/*/*/translog/* | wc -l`
SIZE=`du -s /srv/elasticsearch/metacpan_v1/nodes/0/indices/*/*/translog/* | awk '{sum+=$1};END{print sum}'`
NUMBER=`ls /var/elasticsearch/metacpan_v1/nodes/0/indices/*/*/translog/* | wc -l`
SIZE=`du -s /var/elasticsearch/metacpan_v1/nodes/0/indices/*/*/translog/* | awk '{sum+=$1};END{print sum}'`
echo "number.value $NUMBER"
echo "size.value $SIZE"

0 comments on commit 75cf7e6

Please sign in to comment.