mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
Merge pull request #1 from avian2/add-systemd
systemd: don't print out empty extinfo lines
This commit is contained in:
commit
dacc31d4b5
1 changed files with 4 additions and 2 deletions
|
@ -79,8 +79,10 @@ fetch () {
|
||||||
$states ; do
|
$states ; do
|
||||||
echo -n "$state.value "
|
echo -n "$state.value "
|
||||||
grep $state$ $tmp | wc -l
|
grep $state$ $tmp | wc -l
|
||||||
echo -n "$state.extinfo "
|
extinfo=`grep $state$ $tmp | cut -d " " -f 1`
|
||||||
echo $(grep $state$ $tmp | cut -d " " -f 1)
|
if [ "$extinfo" ]; then
|
||||||
|
echo "$state.extinfo" $extinfo
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
rm $tmp
|
rm $tmp
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue