Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / plugins / network / arp @ dd4afac8

Historique | Voir | Annoter | Télécharger (716 octets)

1 04415c4b Bj?rn Ruberg
#!/bin/sh
2
3
#%# family=contrib
4
#%# capabilities=autoconf
5
6
if [ "$1" = "autoconf" ]; then
7
    # Search for arpwatch
8
    which arp >/dev/null 2>/dev/null || (echo "no (can't find arp binary)" && exit 1)
9
10
    # ...or success
11
    echo yes
12
    exit 0
13
fi
14
15
16
17
if [ "$1" = "config" ]; then
18
        echo 'graph_title ARP entries'
19
        echo 'graph_args --base 1000 -l 0'
20
        echo 'graph_vlabel Entries'
21
        echo 'graph_category network'
22
        echo 'graph_info This graph shows the number of ARP entries registered by the system.'
23
	echo 'entries.label ARP entries'
24
	echo 'entries.draw STACK'
25
	echo 'entries.type GAUGE'
26
	echo 'entries.info Number of ARP entries'
27
	exit 0
28
fi
29
30
echo -n "entries.value "
31
arp -an | wc -l