0.8.6.d missing hardware address/status/type in data query
Moderators: Developers, Moderators
0.8.6.d missing hardware address/status/type in data query
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: 0fd:84:bd:80
STRING: 0fd: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
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: 0fd:84:bd:80
STRING: 0fd: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
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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:
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?
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?
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
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
- Cacti 0.8.6d
This host is running Net-SNMP 5.2.1, and snmpwalk returns all the values :
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
- Cacti 0.8.6d
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]
[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]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Are you using php_snmp? Please run "php -m" for me and post.
TheWitness
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?
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?
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi LarryTheWitness wrote:Are you using php_snmp? Please run "php -m" for me and post.
TheWitness
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]
[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]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Can you rollback php support and see if the problem goes away? There are known problems with that build.
TheWitness
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?
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?
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Can I do that by modifyingTheWitness wrote:Can you rollback php support and see if the problem goes away? There are known problems with that build.
TheWitness
Code: Select all
$config["php_snmp_support"] = no;
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]
[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]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Hmm. Give it a shot, but it will slow down recaches for snmpv1 devices.
TheWitness
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?
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?
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
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
At least I could solve this problem. The latest net-snmp fedora update broke php-snmp.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
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
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
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?
Do you need more snmpwalk information than I added to the first post?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.
Ralf### 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: 0fd:84:bd:80
STRING: 0fd:84:bd:81
STRING: 0:d:65:4:da:94
STRING: 0:d:65:4:da:95
works!
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
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?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
Ralf
Who is online
Users browsing this forum: No registered users and 0 guests