summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/snmp/tests/README.md3
-rw-r--r--ext/snmp/tests/snmp2_get.phpt6
-rw-r--r--ext/snmp/tests/snmp_getvalue.phpt2
-rw-r--r--ext/snmp/tests/snmpget.phpt6
4 files changed, 9 insertions, 8 deletions
diff --git a/ext/snmp/tests/README.md b/ext/snmp/tests/README.md
index 819d43e12d..77284c7190 100644
--- a/ext/snmp/tests/README.md
+++ b/ext/snmp/tests/README.md
@@ -34,7 +34,8 @@ in `snmp_include.inc`.
### On Linux/FreeBSD
-* Install package `net-snmpd` (name may differ based on your distribution).
+* On Ubuntu, install `snmpd` and `snmp-mibs-downloader`. (May be `net-snmpd`
+ on other distributions.)
* Replace config file (by default this is `/etc/snmp/snmpd.conf` on Linux and
`/usr/local/etc/snmp/snmpd.conf` on FreeBSD) with `snmpd.conf` supplied.
diff --git a/ext/snmp/tests/snmp2_get.phpt b/ext/snmp/tests/snmp2_get.phpt
index 04a8fc0347..05892d1e6b 100644
--- a/ext/snmp/tests/snmp2_get.phpt
+++ b/ext/snmp/tests/snmp2_get.phpt
@@ -81,15 +81,15 @@ bool(false)
noSuchName checks
Single OID
-Warning: snmp2_get(): Error in packet at 'SNMPv2-MIB::sysDescr.110': No Such Instance currently exists at this OID in %s on line %d
+Warning: snmp2_get(): Error in packet at '%s': No Such Instance currently exists at this OID in %s on line %d
bool(false)
Single OID in array
-Warning: snmp2_get(): Error in packet at 'SNMPv2-MIB::sysDescr.110': No Such Instance currently exists at this OID in %s on line %d
+Warning: snmp2_get(): Error in packet at '%s': No Such Instance currently exists at this OID in %s on line %d
bool(false)
Multiple OID
-Warning: snmp2_get(): Error in packet at 'SNMPv2-MIB::sysUpTime.220': No Such Instance currently exists at this OID in %s on line %d
+Warning: snmp2_get(): Error in packet at '%s': No Such Instance currently exists at this OID in %s on line %d
array(1) {
["%s"]=>
string(%d) "%s"
diff --git a/ext/snmp/tests/snmp_getvalue.phpt b/ext/snmp/tests/snmp_getvalue.phpt
index 31d96e52b9..2ad79052b3 100644
--- a/ext/snmp/tests/snmp_getvalue.phpt
+++ b/ext/snmp/tests/snmp_getvalue.phpt
@@ -72,7 +72,7 @@ string(%d) "%s"
Get with SNMP_VALUE_OBJECT for BITS OID
object
int(4)
-string(25) "BITS: %d %s"
+string(%d) "%s: %d %S"
Get with SNMP_VALUE_OBJECT | SNMP_VALUE_PLAIN for BITS OID
object
int(4)
diff --git a/ext/snmp/tests/snmpget.phpt b/ext/snmp/tests/snmpget.phpt
index 9875f31f65..f5991a99fa 100644
--- a/ext/snmp/tests/snmpget.phpt
+++ b/ext/snmp/tests/snmpget.phpt
@@ -80,15 +80,15 @@ bool(false)
noSuchName checks
Single OID
-Warning: snmpget(): Error in packet at 'SNMPv2-MIB::sysDescr.110': (noSuchName) There is no such variable name in this MIB. in %s on line %d
+Warning: snmpget(): Error in packet at '%s': (noSuchName) There is no such variable name in this MIB. in %s on line %d
bool(false)
Single OID in array
-Warning: snmpget(): Error in packet at 'SNMPv2-MIB::sysDescr.110': (noSuchName) There is no such variable name in this MIB. in %s on line %d
+Warning: snmpget(): Error in packet at '%s': (noSuchName) There is no such variable name in this MIB. in %s on line %d
bool(false)
Multiple OID
-Warning: snmpget(): Error in packet at 'SNMPv2-MIB::sysUpTime.220': (noSuchName) There is no such variable name in this MIB. in %s on line %d
+Warning: snmpget(): Error in packet at '%s': (noSuchName) There is no such variable name in this MIB. in %s on line %d
array(1) {
["%s"]=>
string(%d) "%s"