diff --git a/plugins/system/systemd b/plugins/system/systemd index b12b7cc6..40f388d5 100755 --- a/plugins/system/systemd +++ b/plugins/system/systemd @@ -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 ;;