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...