From e6c7276f2e1294601f35d8ff852f6e4cd345f2f2 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 26 Aug 2008 17:58:28 +0200 Subject: [PATCH] contrib/snmp-probe-host.px: Work-around for Windows systems. They don't return an error, but `success' and a string stating NOSUCHOBJECT. Just great. --- contrib/snmp-probe-host.px | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contrib/snmp-probe-host.px b/contrib/snmp-probe-host.px index 9130ecec..1cfaa072 100755 --- a/contrib/snmp-probe-host.px +++ b/contrib/snmp-probe-host.px @@ -99,6 +99,14 @@ sub probe_one { return; } + if (!defined ($status)) + { + return; + } + if ("$status" eq 'NOSUCHOBJECT') + { + return; + } } else { -- 2.11.0