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

Add specific updates to extinfo field.

This commit is contained in:
Bert Peters 2017-10-03 11:08:25 +02:00
parent 8e7e009f90
commit e9150b1892

View File

@ -31,7 +31,7 @@ This plugin will draw one line: the number of updates pending.
=head1 VERSION
1.0.0
1.1.0
=head1 AUTHOR
@ -63,7 +63,13 @@ EOM
;;
*)
echo updates.value $(checkupdates | wc -l)
tmpfile=$(mktemp)
updates=$(checkupdates | tee "$tmpfile" | wc -l)
echo updates.value $updates
if [ $updates -gt 0 ]; then
echo updates.extinfo $(paste -s -d, "$tmpfile")
fi
rm "$tmpfile"
;;
esac