File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ in `snmp_include.inc`.
34
34
35
35
### On Linux/FreeBSD
36
36
37
- * Install package ` net-snmpd ` (name may differ based on your distribution).
37
+ * On Ubuntu, install ` snmpd ` and ` snmp-mibs-downloader ` . (May be ` net-snmpd `
38
+ on other distributions.)
38
39
* Replace config file (by default this is ` /etc/snmp/snmpd.conf ` on Linux and
39
40
` /usr/local/etc/snmp/snmpd.conf ` on FreeBSD) with ` snmpd.conf ` supplied.
40
41
Original file line number Diff line number Diff line change @@ -81,15 +81,15 @@ bool(false)
81
81
noSuchName checks
82
82
Single OID
83
83
84
- Warning: snmp2_get(): Error in packet at 'SNMPv2-MIB::sysDescr.110 ': No Such Instance currently exists at this OID in %s on line %d
84
+ Warning: snmp2_get(): Error in packet at '%s ': No Such Instance currently exists at this OID in %s on line %d
85
85
bool(false)
86
86
Single OID in array
87
87
88
- Warning: snmp2_get(): Error in packet at 'SNMPv2-MIB::sysDescr.110 ': No Such Instance currently exists at this OID in %s on line %d
88
+ Warning: snmp2_get(): Error in packet at '%s ': No Such Instance currently exists at this OID in %s on line %d
89
89
bool(false)
90
90
Multiple OID
91
91
92
- Warning: snmp2_get(): Error in packet at 'SNMPv2-MIB::sysUpTime.220 ': No Such Instance currently exists at this OID in %s on line %d
92
+ Warning: snmp2_get(): Error in packet at '%s ': No Such Instance currently exists at this OID in %s on line %d
93
93
array(1) {
94
94
["%s"]=>
95
95
string(%d) "%s"
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ string(%d) "%s"
72
72
Get with SNMP_VALUE_OBJECT for BITS OID
73
73
object
74
74
int(4)
75
- string(25 ) "BITS : %d %s "
75
+ string(%d ) "%s : %d %S "
76
76
Get with SNMP_VALUE_OBJECT | SNMP_VALUE_PLAIN for BITS OID
77
77
object
78
78
int(4)
Original file line number Diff line number Diff line change @@ -80,15 +80,15 @@ bool(false)
80
80
noSuchName checks
81
81
Single OID
82
82
83
- 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
83
+ Warning: snmpget(): Error in packet at '%s ': (noSuchName) There is no such variable name in this MIB. in %s on line %d
84
84
bool(false)
85
85
Single OID in array
86
86
87
- 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
87
+ Warning: snmpget(): Error in packet at '%s ': (noSuchName) There is no such variable name in this MIB. in %s on line %d
88
88
bool(false)
89
89
Multiple OID
90
90
91
- 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
91
+ Warning: snmpget(): Error in packet at '%s ': (noSuchName) There is no such variable name in this MIB. in %s on line %d
92
92
array(1) {
93
93
["%s"]=>
94
94
string(%d) "%s"
You can’t perform that action at this time.
0 commit comments