From 9a5243ade397bdf273a71f78f1e764abe314a039 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 19 Feb 2014 15:38:14 +0100 Subject: [PATCH] Fix munin plugin after log format changes Closes #154 --- NEWS.md | 4 ++++ tools/munin/windshaft | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index b35e4018..71c4daf0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,10 @@ Enhancements: * Allow using ":host" as part of statsd.prefix (#153) +Bug fixes: + + * Fix munin plugin after log format changes (#154) + 1.8.1 -- 2014-02-19 ------------------- diff --git a/tools/munin/windshaft b/tools/munin/windshaft index 30adaf15..e0913447 100755 --- a/tools/munin/windshaft +++ b/tools/munin/windshaft @@ -68,7 +68,7 @@ for pid in ${pids}; do log=$(grep "${pid}" "${tmpreport}" | grep -w 1w | awk '{print $9}') if test -e "${log}"; then kill -USR2 "${pid}" - cnt=$(tac ${log} | sed -n -e '/ItemKey/p;/^RenderCache/q' | wc -l) + cnt=$(tac ${log} | sed -n -e '/ItemKey/p;/ RenderCache /q' | wc -l) if test $cnt -gt $maxcache; then maxcache=$cnt; fi else # report the error...