[racktables-users] snmpget problem occurred again
- From: Killsystem <killsystem@xxxxxxxxxxxxxxxx>
- To: racktables-users@xxxxxxxxxxxxx
- Date: Tue, 20 Jan 2009 11:10:18 +0000
HI,
seems that this bug is again in the latest version 0.16.6
If this is intentionally than please let me know that I can change it in
the upgrade process myself.
gretz Killsystem
On Mon, 10 Nov 2008 17:25:07 +0100, Killsystem
<killsystem@xxxxxxxxxxxxxxxx> wrote:
> Hi today I found a bug with this patch of mine.
>
> If the switch does not support the OID you get an error message like this
> one:
>
> Warning: snmpget() [function.snmpget]: Error in packet: (noSuchName)
There
> is no such variable name in this MIB. in /var/www/racktables/inc/snmp.php
> on line 96
> Warning: snmpget() [function.snmpget]: This name does not exist:
> SNMPv2-SMI::enterprises.9.3.6.3.0 in /var/www/racktables/inc/snmp.php on
> line 96
> Warning: Cannot modify header information - headers already sent by
(output
> started at /var/www/racktables/inc/snmp.php:96) in
> /var/www/racktables/process.php on line 30
>
> Easy enough to fix
> Instead of using
> $sysChassi = snmpget ($endpoints[0], $community,
'1.3.6.1.4.1.9.3.6.3.0');
> just use
> $sysChassi = snmp2_get ($endpoints[0], $community,
> '1.3.6.1.4.1.9.3.6.3.0');
>
> Seems to be some problem with the snmpget function.
>
> gretz Killsystem
Other related posts: