We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 060117f commit 70dab5dCopy full SHA for 70dab5d
ext/snmp/tests/skipif.inc
@@ -6,5 +6,8 @@ require_once (dirname(__FILE__).'/snmp_include.inc');
6
//snmpget ( string $hostname , string $community ,
7
//string $object_id [, int $timeout [, int $retries ]] )
8
9
+// net-snmp will just log to STDERR without asking. Close STDERR to prevent
10
+// the error output from marking the SKIPIF section as BORKed.
11
+fclose(STDERR);
12
if (@snmpget($hostname, $community, '.1.3.6.1.2.1.1.1.0', $timeout) === false)
13
die('skip NO SNMPD on this host or community invalid');
0 commit comments