Fix munin plugin after log format changes

Closes #154
This commit is contained in:
Sandro Santilli 2014-02-19 15:38:14 +01:00
parent b4fc8ec4a5
commit 9a5243ade3
2 changed files with 5 additions and 1 deletions

View File

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

View File

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