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

[systemd] Remove half-baked suggest

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
This commit is contained in:
Olivier Mehani 2016-10-25 21:21:24 +11:00
parent dacc31d4b5
commit ef80db4bc1

View File

@ -17,7 +17,7 @@ None needed.
=head1 AUTHOR
Olivier Mehani
Olivier Mehani <shtrom+munin@ssji.net>
=head1 LICENSE
@ -26,7 +26,7 @@ GPLv2
=head1 MAGIC MARKERS
#%# family=auto
#%# capabilities=autoconf suggest
#%# capabilities=autoconf
=cut
@ -41,13 +41,7 @@ autoconf() {
systemctl --state=failed --no-pager --no-legend >/dev/null 2>&1 && echo yes || echo "no (No systemctl or error running it)"
}
suggest() {
echo "units"
}
config () {
case $1 in
"units")
cat << EOF
graph_title Systemd units state
graph_args -l 0
@ -55,19 +49,14 @@ graph_category system
graph_scale no
graph_vlabel units
EOF
for state in $states; do
for state in $states; do
echo "$state.label $state"
echo "$state.draw AREASTACK"
if [ $state = failed ]; then
echo "$state.warning 0"
echo "$state.critical 10"
fi
done
;;
"*")
echo "$0: unknown mode '$1'" >&2
exit 1
esac
done
}
fetch () {
@ -99,9 +88,6 @@ case $1 in
"autoconf")
autoconf
;;
"suggest")
suggest
;;
"config")
config $mode
;;