2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Merge pull request #1 from avian2/add-systemd

systemd: don't print out empty extinfo lines
This commit is contained in:
Olivier Mehani 2016-10-17 22:16:54 +11:00 committed by GitHub
commit dacc31d4b5

View File

@ -79,8 +79,10 @@ fetch () {
$states ; do
echo -n "$state.value "
grep $state$ $tmp | wc -l
echo -n "$state.extinfo "
echo $(grep $state$ $tmp | cut -d " " -f 1)
extinfo=`grep $state$ $tmp | cut -d " " -f 1`
if [ "$extinfo" ]; then
echo "$state.extinfo" $extinfo
fi
done
rm $tmp
;;