From: Florian Forster Date: Tue, 26 Aug 2008 15:59:18 +0000 (+0200) Subject: contrib/snmp-probe-host.px: Don't fail silently, but outupt an empty config. X-Git-Tag: collectd-4.3.4~3 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1d272ac5bc379895ca0dea80a9abe791893863e2;p=collectd.git contrib/snmp-probe-host.px: Don't fail silently, but outupt an empty config. --- diff --git a/contrib/snmp-probe-host.px b/contrib/snmp-probe-host.px index 1cfaa072..1d8f975b 100755 --- a/contrib/snmp-probe-host.px +++ b/contrib/snmp-probe-host.px @@ -224,11 +224,6 @@ sub probe_all $version--; } # while ($version > 0) - if (!@valid_data) - { - return; - } - print < Address "$address" @@ -239,6 +234,14 @@ EOF { print " Collect \"$_\"\n"; } + if (!@valid_data) + { + print <