0.8.6.d missing hardware address/status/type in data query

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

0.8.6.d missing hardware address/status/type in data query

Post by pirx »

Hi,

the interface query is missing some results that I can get with a snmpwalk on the command line.

[...]
+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti-0.8.6d/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Located input field 'ifIndex' [walk]
[...]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='1'] index: 1 [from value]
+ Found item [ifOperStatus='1'] index: 2 [from value]
+ Found item [ifOperStatus='1'] index: 3 [from value]
+ Found item [ifOperStatus='1'] index: 4 [from value]
[...]
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='6'] index: 1 [from value]
+ Found item [ifType='6'] index: 2 [from value]
+ Found item [ifType='6'] index: 3 [from value]
+ Found item [ifType='6'] index: 4 [from value]
[...]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr=''] index: 2 [from value]
+ Found item [ifHwAddr=''] index: 3 [from value]
+ Found item [ifHwAddr=''] index: 4 [from value]

### command line: ###

$ snmpwalk -Ov -v1 -c $community $switch ifOperStatus
INTEGER: up(1)
INTEGER: up(1)
INTEGER: up(1)
INTEGER: up(1)

$ snmpwalk -Ov -v1 -c $community $switch ifType
INTEGER: ethernetCsmacd(6)
INTEGER: ethernetCsmacd(6)
INTEGER: ethernetCsmacd(6)
INTEGER: ethernetCsmacd(6)

$ snmpwalk -Ov -v1 -c $community $switch ifHwAddr
ifHwAddr: Unknown Object Identifier (Sub-id not found: (top) -> ifHwAddr)

but this

$ snmpwalk -Ov -v1 -c $community $switch .1.3.6.1.2.1.2.2.1.6
STRING: 0:b:fd:84:bd:80
STRING: 0:b:fd:84:bd:81
STRING: 0:d:65:4:da:94
STRING: 0:d:65:4:da:95

works!

Any idea why the HW address is missing completely and the numeric values of some fields are not translated?

Ralf
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Contact your hardware vendor and ask them the same thing. If it's Windows, you should be seeing it.

TheWitness


ps. You might want to walk by hand and see if it's just missing:

Code: Select all

snmpwalk -c <your_community> -v <your_version> <hostname>
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
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

I have a rather similar problem : with Cacti 0.8.6d, "up" and "down" status are replaced by 1 and 2, and hardware addresses are missing :

- Cacti 0.8.6c
Image

- Cacti 0.8.6d
Image

This host is running Net-SNMP 5.2.1, and snmpwalk returns all the values :

Code: Select all

$ snmpwalk -v 1 -c public 10.50.80.10 .iso.org.dod.internet.mgmt.mib-2.interfaces | egrep "PhysAddress|OperStatus|Type"
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.2 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifPhysAddress.1 = STRING: 0:b0:d0:15:76:ce
IF-MIB::ifPhysAddress.2 = STRING:
IF-MIB::ifPhysAddress.3 = STRING: 0:10:b5:7:51:76
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: down(2)
Last edited by fmangeant on Mon May 02, 2005 4:51 am, edited 1 time in total.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Are you using php_snmp? Please run "php -m" for me and post.

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
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

TheWitness wrote:Are you using php_snmp? Please run "php -m" for me and post.

TheWitness
Hi Larry

yes, I'm using php-snmp (I can see "PHP SNMP Support: yes" using about.php) :

Code: Select all

$ php -m | grep snmp
snmp
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Can you rollback php support and see if the problem goes away? There are known problems with that build.

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
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

TheWitness wrote:Can you rollback php support and see if the problem goes away? There are known problems with that build.

TheWitness
Can I do that by modifying

Code: Select all

$config["php_snmp_support"] = no;
in include/config.php ? Are there any "side effects" ?

Thanks for your support.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hmm. Give it a shot, but it will slow down recaches for snmpv1 devices.

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
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

Hi,

I just updated some packages with yum (fedora core 3), now I get:

php -m | grep snmp
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/snmp.so' - /usr/lib/php4/snmp.so: undefined symbol: usmAES192PrivProtocol in Unknown on line 0

php-snmp-4.3.11-2.4
net-snmp-devel-5.2.1-10.FC3
net-snmp-5.2.1-10.FC3
net-snmp-utils-5.2.1-10.FC3
net-snmp-libs-5.2.1-10.FC3

I think the update a few minutes age made the whole thing worse...

In config.php I have
$config["php_snmp_support"] = false;

Ralf
User avatar
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

pirx wrote: I just updated some packages with yum (fedora core 3), now I get:

php -m | grep snmp
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/snmp.so' - /usr/lib/php4/snmp.so: undefined symbol: usmAES192PrivProtocol in Unknown on line 0
At least I could solve this problem. The latest net-snmp fedora update broke php-snmp.

https://bugzilla.redhat.com/bugzilla/sh ... ?id=155975

But this shouldn't be the problem with cacti, because I have set
$config["php_snmp_support"] = false;

to false...

Ralf
elnino
Cacti User
Posts: 205
Joined: Tue Mar 08, 2005 9:51 pm

Post by elnino »

I'm also getting 1 and 2 for interface status instead of Up and Down. I'm running PHP 4.3.10 and net-snmp 5.0.9 on SENTINIX. I just recently upgraded from PHP 4.3.4 and the problem existed there too. Did you find a fix for this pirx?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Possibly an issues with mibs. You should attempt to walk the OID's using the snmpwalk command from a shell script and verify your output.
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
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

TheWitness wrote:Possibly an issues with mibs. You should attempt to walk the OID's using the snmpwalk command from a shell script and verify your output.
Do you need more snmpwalk information than I added to the first post?
### command line: ###

$ snmpwalk -Ov -v1 -c $community $switch ifOperStatus
INTEGER: up(1)
INTEGER: up(1)
INTEGER: up(1)
INTEGER: up(1)

$ snmpwalk -Ov -v1 -c $community $switch ifType
INTEGER: ethernetCsmacd(6)
INTEGER: ethernetCsmacd(6)
INTEGER: ethernetCsmacd(6)
INTEGER: ethernetCsmacd(6)

$ snmpwalk -Ov -v1 -c $community $switch ifHwAddr
ifHwAddr: Unknown Object Identifier (Sub-id not found: (top) -> ifHwAddr)

but this

$ snmpwalk -Ov -v1 -c $community $switch .1.3.6.1.2.1.2.2.1.6
STRING: 0:b:fd:84:bd:80
STRING: 0:b:fd:84:bd:81
STRING: 0:d:65:4:da:94
STRING: 0:d:65:4:da:95

works!
Ralf
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Are you using cactid as your poller. If so, have you set the MIBS=ALL variable. If so, remote it and reboot. Then, manually recache your hosts.

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
pirx
Cacti User
Posts: 199
Joined: Tue Feb 10, 2004 10:08 am
Location: Esslingen, Germany

Post by pirx »

TheWitness wrote:Are you using cactid as your poller. If so, have you set the MIBS=ALL variable. If so, remote it and reboot. Then, manually recache your hosts.

TheWitness
Yes, I use cactid as poller, MIBS=ALL is not set. With "manually recache you hosts", do you mean Console->System Utilities->Clear Poller Cache?

Ralf
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest