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