diff --git a/plugins/other/net_hosts_ b/plugins/other/net_hosts_ index 754ed3a4..ef8d713a 100755 --- a/plugins/other/net_hosts_ +++ b/plugins/other/net_hosts_ @@ -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