From 04415c4b05a501d31335efca9bdb6bcecff4e200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=F8rn=20Ruberg?= Date: Tue, 25 May 2010 09:48:00 +0200 Subject: [PATCH] Initial version --- plugins/other/arp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 plugins/other/arp diff --git a/plugins/other/arp b/plugins/other/arp new file mode 100755 index 00000000..ae7e99cc --- /dev/null +++ b/plugins/other/arp @@ -0,0 +1,31 @@ +#!/bin/sh + +#%# family=contrib +#%# capabilities=autoconf + +if [ "$1" = "autoconf" ]; then + # Search for arpwatch + which arp >/dev/null 2>/dev/null || (echo "no (can't find arp binary)" && exit 1) + + # ...or success + echo yes + exit 0 +fi + + + +if [ "$1" = "config" ]; then + echo 'graph_title ARP entries' + echo 'graph_args --base 1000 -l 0' + echo 'graph_vlabel Entries' + echo 'graph_category network' + echo 'graph_info This graph shows the number of ARP entries registered by the system.' + echo 'entries.label ARP entries' + echo 'entries.draw STACK' + echo 'entries.type GAUGE' + echo 'entries.info Number of ARP entries' + exit 0 +fi + +echo -n "entries.value " +arp -an | wc -l