contrib/snmp-probe-host.px: Work-around for Windows systems.
authorFlorian Forster <octo@noris.net>
Tue, 26 Aug 2008 15:58:28 +0000 (17:58 +0200)
committerFlorian Forster <octo@noris.net>
Tue, 26 Aug 2008 15:58:28 +0000 (17:58 +0200)
They don't return an error, but `success' and a string stating
  NOSUCHOBJECT.
Just great.

contrib/snmp-probe-host.px

index 9130ece..1cfaa07 100755 (executable)
@@ -99,6 +99,14 @@ sub probe_one
       {
         return;
       }
+      if (!defined ($status))
+      {
+        return;
+      }
+      if ("$status" eq 'NOSUCHOBJECT')
+      {
+        return;
+      }
     }
     else
     {