Code

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 9130ecec4f89f9cb1bab82a0508be7b112665b23..1cfaa0729f0c33617e2419d63e7efdb55dca01e5 100755 (executable)
@@ -99,6 +99,14 @@ sub probe_one
       {
         return;
       }
+      if (!defined ($status))
+      {
+        return;
+      }
+      if ("$status" eq 'NOSUCHOBJECT')
+      {
+        return;
+      }
     }
     else
     {