From 1e6bc858a23302abb996e3c4352cae3cfe8ba3bc Mon Sep 17 00:00:00 2001 From: jon Date: Fri, 1 Apr 2011 18:20:46 +0200 Subject: [PATCH] removed autoconf stuff, added note about timeout --- plugins/other/net_hosts_ | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) 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