From 873140814dbc995fb12b4d4e3f85f3a4187f1164 Mon Sep 17 00:00:00 2001 From: Udo Waechter Date: Thu, 6 Jun 2013 15:13:03 +0200 Subject: [PATCH] fixing the runtime check --- files/ganglia/puppetd_runtime.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/ganglia/puppetd_runtime.sh b/files/ganglia/puppetd_runtime.sh index 4e7af0a..3866a8e 100644 --- a/files/ganglia/puppetd_runtime.sh +++ b/files/ganglia/puppetd_runtime.sh @@ -8,7 +8,7 @@ GMETRIC=$(which gmetric) FILE="/var/log/puppet/puppetd_run.log" [[ -r $FILE ]] || exit 0 ## BSD and Linux have different stat commands -VALUE=$(grep "Finished catalog run" ${FILE} |tail -1 |sed 's/.*in \(.*\) seconds/\1/'|awk '{print int($1)') +VALUE=$(grep "Finished catalog run" ${FILE} |tail -1 |sed 's/.*in \(.*\) seconds/\1/'|awk '{print int($1)}') GMETRIC="${GMETRIC} --dmax=30000 --tmax=350 --units=Seconds --type=int32" $GMETRIC --value=${VALUE} --name="Puppet runtime"