mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
Initial version
This commit is contained in:
parent
4d365db76c
commit
04415c4b05
1 changed files with 31 additions and 0 deletions
31
plugins/other/arp
Executable file
31
plugins/other/arp
Executable file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue