mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
removed autoconf stuff, added note about timeout
This commit is contained in:
parent
4a6b888ddc
commit
1e6bc858a2
@ -1,9 +1,13 @@
|
||||
#!/bin/sh
|
||||
# munin plugin to show number of online network hosts on a subnet (needs fping)
|
||||
# link with subnet name as suffix like _192.168.1
|
||||
# will most likely need a custom timeout setting in /etc/munin/plugin-conf.d/munin-node
|
||||
# for example:
|
||||
# [net_hosts_*]
|
||||
# timeout 20
|
||||
#
|
||||
# (c) 2011 jon@jon.bpa.nu
|
||||
#%# family=auto
|
||||
#%# capabilities=autoconf
|
||||
#%# family=manual
|
||||
|
||||
SUBNET=`echo $0 | cut -d'_' -f3`
|
||||
TIMEOUT=50 # ms
|
||||
@ -18,14 +22,6 @@ graph_category network
|
||||
hosts.label hosts
|
||||
CFG
|
||||
exit 0;;
|
||||
autoconf)
|
||||
fping -h 2>/dev/null
|
||||
if [ $? -eq 127 ]; then
|
||||
echo "no (fping not present)"
|
||||
exit 1
|
||||
fi
|
||||
echo yes
|
||||
exit 0;;
|
||||
esac
|
||||
|
||||
if [ $SUBNET != "" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user