ifDescr output as HEX??

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
guerra6880
Posts: 33
Joined: Mon Apr 19, 2004 7:47 am

ifDescr output as HEX??

Post by guerra6880 »

I am having an interesting problem with a Win32 Servers and querying for the interface Description. In the Device page I get the following when issuing a verbose query.


+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='HEX-00:4D:53:20:54:43:50:20:4C:6F:6F:70:62:61:63:6B:20'] index: 1 [from value]
+ Found item [ifDescr='69:6E:74:65:72:66:61:63:65:00'] index: 69 6E 74 65 72 66 61 63 65 00 [from value]
+ Found item [ifDescr='HEX-00:49:6E:74:65:6C:28:52:29:20:50:52:4F:2F:31:30:30'] index: 16777219 [from value]
+ Found item [ifDescr='30:20:58:54:20:4E:65:74:77:6F:72:6B:20:43:6F:6E'] index: 30 20 58 54 20 4E 65 74 77 6F 72 6B 20 43 6F 6E [from value]
+ Found item [ifDescr='6E:65:63:74:69:6F:6E:00'] index: 6E 65 63 74 69 6F 6E 00 [from value]


But I get the following if issuing the same snmpwalk manually from a command line

snmpwalk -c <community> -v 1 <servername> .1.3.6.1.2.1.2.2.1.2
IF-MIB::ifDescr.1 = STRING: MS TCP Loopback interface
IF-MIB::ifDescr.16777219 = STRING: Intel(R) PRO/1000 XT Network Connection

I get the same results with 0.8.6, 0.8.6a & 0.8.6b.

NET-SNMP version: 5.1.2
PHP 4.3.9 (cgi-fcgi) (built: Sep 21 2004 14:04:26)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.4, Copyright (c) 2003-2004, by Zend Technologies
with Zend Optimizer v2.5.5, Copyright (c) 1998-2004, by Zend Technologies
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I have the same problem polling my Windows boxes only though. Don't really know. It may have something to do with the Microsoft MIB. There should be some form of workaround.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Looks like the problem may be specific to the PHP-SNMP module. If you have the snmpwalk/snmpget binaries lying around (looks like you do), you can force Cacti to use them. First make sure both paths are specified under Settings -> Paths. Then open up include/config.php and change line 40 from:

Code: Select all

$config["php_snmp_support"] = function_exists("snmpget");
to:

Code: Select all

$config["php_snmp_support"] = false;
-Ian
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The problem existed in PHP 5.0.1 and is corrected in PHP 5.0.2. I also believe that it may have been in existance with PHP 4.3.9. Not too sure since I have not tested that version. However, after I upgraded to PHP 5.0.2, the problem went away.

I am still seeing the problem with SNMP v2 however.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ok,

Don't say that I'm an idiot, this is after all a part time job. However, what I have discovered is that the Hex information is caused by either net-snmp or php not properly loading the MIB's associated with the particular OID. Without the help of the definitions in the MIBS, in some cases, it interprets the string data as hex.

There was a user post that recommended a fix to speed up polling, which if implemented, will cause this issue. Also, you need to verify that both net-snmp and php know the verification of the MIBS. :(

I have sent an e-mail to raX for comment. Hopefully we can get the best of both worlds (speed and accuracy).

http://forums.cacti.net/viewtopic.php?t=4737

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests