projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e971fcb
)
contrib/snmp-probe-host.px: Work-around for Windows systems.
author
Florian Forster
<octo@noris.net>
Tue, 26 Aug 2008 15:58:28 +0000
(17:58 +0200)
committer
Florian 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
patch
|
blob
|
history
diff --git
a/contrib/snmp-probe-host.px
b/contrib/snmp-probe-host.px
index
9130ece
..
1cfaa07
100755
(executable)
--- 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
{