Projet

Général

Profil

Révision a86de787

IDa86de7871ac2d31ac1f6a917b3149deb92556f51
Parent f9426dac
Enfant 6cc95f20

Ajouté par Bas Couwenberg il y a environ 8 ans

Use exit status 0 for autoconf, provide reason for 'no' answer.

Voir les différences:

plugins/pdns/pdns_rec_unauth
9 9
#    echo '[pdns_rec_*]' >/etc/munin/plugin-conf.d/pdns_rec
10 10
#    echo 'user root' >>/etc/munin/plugin-conf.d/pdns_rec
11 11

  
12
rec_control="/usr/bin/rec_control"
13

  
12 14
if [ "$1" = "autoconf" ]; then
13
	if [ -e /usr/bin/rec_control ]; then
15
	if [ -e "$rec_control" ]; then
14 16
		echo yes
15 17
		exit 0
16 18
	else
17
		echo no
18
		exit 1
19
		echo "no (missing $rec_control)"
20
		exit 0
19 21
	fi
20 22
fi
21 23

  
......
47 49
	exit 0
48 50
fi
49 51

  
50
echo tcp.value "$(rec_control get unauthorized-tcp)"
51
echo udp.value "$(rec_control get unauthorized-udp)"
52
echo unexpected.value "$(rec_control get unexpected-packets)"
52
echo tcp.value "$($rec_control get unauthorized-tcp)"
53
echo udp.value "$($rec_control get unauthorized-udp)"
54
echo unexpected.value "$($rec_control get unexpected-packets)"
53 55

  
54 56
exit 0

Formats disponibles : Unified diff