Projet

Général

Profil

Révision ef80db4b

IDef80db4bc1a4967722bdb34ebfb9fd34b33bdee3
Parent dacc31d4
Enfant b31b861f

Ajouté par Olivier Mehani il y a environ 9 ans

[systemd] Remove half-baked suggest

Signed-off-by: Olivier Mehani <>

Voir les différences:

plugins/system/systemd
17 17

  
18 18
=head1 AUTHOR
19 19

  
20
Olivier Mehani
20
Olivier Mehani <shtrom+munin@ssji.net>
21 21

  
22 22
=head1 LICENSE
23 23

  
......
26 26
=head1 MAGIC MARKERS
27 27

  
28 28
 #%# family=auto
29
 #%# capabilities=autoconf suggest
29
 #%# capabilities=autoconf
30 30

  
31 31
=cut
32 32

  
......
41 41
	       systemctl  --state=failed --no-pager --no-legend	>/dev/null 2>&1 && echo yes || echo "no (No systemctl or error running it)"
42 42
}
43 43

  
44
suggest() {
45
	echo "units"
46
}
47

  
48 44
config () {
49
	case $1 in
50
		"units")
51
			cat << EOF
45
	cat << EOF
52 46
graph_title Systemd units state
53 47
graph_args -l 0
54 48
graph_category system
55 49
graph_scale no
56 50
graph_vlabel units
57 51
EOF
58
for state in $states; do
59
	echo "$state.label $state"
60
	echo "$state.draw AREASTACK"
61
	if [ $state = failed ]; then
62
		echo "$state.warning 0"
63
		echo "$state.critical 10"
64
	fi
65
done
66
			;;
67
		"*")
68
			echo "$0: unknown mode '$1'" >&2
69
			exit 1
70
	esac
52
	for state in $states; do
53
		echo "$state.label $state"
54
		echo "$state.draw AREASTACK"
55
		if [ $state = failed ]; then
56
			echo "$state.warning 0"
57
			echo "$state.critical 10"
58
		fi
59
	done
71 60
}
72 61

  
73 62
fetch () {
......
99 88
	"autoconf")
100 89
		autoconf
101 90
		;;
102
	"suggest")
103
		suggest
104
		;;
105 91
	"config")
106 92
		config $mode
107 93
		;;

Formats disponibles : Unified diff