Cacti don't want to use data from SNMP

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

Moderators: Developers, Moderators

AllertGen
Posts: 37
Joined: Mon Mar 26, 2012 1:27 pm

Cacti don't want to use data from SNMP

Post by AllertGen »

Hello to All.
I have a problem with getting data by SNMP from my device. At logs I've got this messages:
09/05/2012 10:52:03 AM - CMDPHP: Poller[0] Host[90] DS[4093] SNMP: v3: 10.*.*.*, dsname: errors_out, oid: .1.3.6.1.2.1.2.2.1.20.3, output: U
09/05/2012 10:52:03 AM - CMDPHP: Poller[0] Host[90] DS[4093] WARNING: Result from SNMP not valid. Partial Result: U
09/05/2012 10:52:03 AM - CMDPHP: Poller[0] Host[90] DS[4091] SNMP: v3: 10.*.*.*, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.11, output: U
09/05/2012 10:52:03 AM - CMDPHP: Poller[0] Host[90] DS[4091] WARNING: Result from SNMP not valid. Partial Result: U
09/05/2012 10:52:02 AM - CMDPHP: Poller[0] Host[90] DS[4092] WARNING: Result from SNMP not valid. Partial Result: U
09/05/2012 10:52:01 AM - CMDPHP: Poller[0] Host[90] DS[4088] SNMP: v3: 10.*.*.*, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.7, output: U
09/05/2012 10:52:01 AM - CMDPHP: Poller[0] Host[90] DS[4088] WARNING: Result from SNMP not valid. Partial Result: U
09/05/2012 10:52:00 AM - CMDPHP: Poller[0] Host[90] DS[4087] SNMP: v3: 10.*.*.*, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.5, output: U
09/05/2012 10:52:00 AM - CMDPHP: Poller[0] Host[90] DS[4087] WARNING: Result from SNMP not valid. Partial Result: U

But if I send request from snmwalk all works well:
snmpwalk -v3 -a MD5 -u ### -l authNoPriv -A ### -O n 10.*.*.* .1.3.6.1.2.1.2.2.1.14.5
.1.3.6.1.2.1.2.2.1.14.5 = Counter32: 23
snmpwalk -v3 -a MD5 -u ### -l authNoPriv -A ### -O n 10.*.*.* .1.3.6.1.2.1.2.2.1.20.3
.1.3.6.1.2.1.2.2.1.20.3 = Counter32: 0
snmpwalk -v3 -a MD5 -u ### -l authNoPriv -A ### -O n 10.*.*.* .1.3.6.1.2.1.31.1.1.1.6.11
.1.3.6.1.2.1.31.1.1.1.6.11 = Counter64: 1380052854
snmpwalk -v3 -a MD5 -u ### -l authNoPriv -A ### -O n 10.*.*.* .1.3.6.1.2.1.31.1.1.1.10.7
.1.3.6.1.2.1.31.1.1.1.10.7 = Counter64: 59846794
snmpwalk -v3 -a MD5 -u ### -l authNoPriv -A ### -O n 10.*.*.* .1.3.6.1.2.1.31.1.1.1.6.5
.1.3.6.1.2.1.31.1.1.1.6.5 = Counter64: 6045107
It's Cisco interface data (traffic (64bit counetrs) and errors). Data in rrd files is "NaN". I don't know what to do with it..
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: Cacti don't want to use data from SNMP

Post by artagel »

I'd run it in debug mode to see what is going on.
Also make sure your device is reachable via snmp(i.e., the device info shows up at the top of the device details page, and it doesn't say snmp error).
-Dan
Please mark the topic solved if this resolves your problem.
AllertGen
Posts: 37
Joined: Mon Mar 26, 2012 1:27 pm

Re: Cacti don't want to use data from SNMP

Post by AllertGen »

I already thout about this and made this tests:
1. I set avaible checking to SNMP metod and got this:
Image
Also cacti see that from device it can get 106 Items (even after refresh).

2. I set log level to "Debug" mode, but got nothing:
Image
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: Cacti don't want to use data from SNMP

Post by artagel »

I think it could be your snmpv3 contexts on a cisco device. Make sure you either put in a context in the configuration for the ports the vlans are in, or make sure you have all the vlans assigned to the group you are using.

The command to add all vlans looks like this:
snmp-server group v3group v3 auth context vlan- match prefix

-Dan
Please mark the topic solved if this resolves your problem.
AllertGen
Posts: 37
Joined: Mon Mar 26, 2012 1:27 pm

Re: Cacti don't want to use data from SNMP

Post by AllertGen »

I monitoring not only vlans, but phisical interfaces as well. And why I can get this parametres (OIDs) by snmpwalk?
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: Cacti don't want to use data from SNMP

Post by artagel »

It's worth a shot.

Try doing an snmpget instead of walk:
http://forums.cacti.net/viewtopic.php?f=21&t=45918
Please mark the topic solved if this resolves your problem.
AllertGen
Posts: 37
Joined: Mon Mar 26, 2012 1:27 pm

Re: Cacti don't want to use data from SNMP

Post by AllertGen »

In example which you gived me error was in putting not full OID string:
snmpwalk -v3 -u xxxxxx -l authPriv -a MD5 -A xxxxxx -x DES -X xxxxxx -Os 10.xx.xx.xx .1.3.6.1.4.1.8962.2.1.2.1.1.10
iso.3.6.1.4.1.8962.2.1.2.1.1.10.0 = INTEGER: 679016
But in my case I putting OID nomber right. I already checked this variant.

And some request trouht snmpget:
snmpget -v3 -a MD5 -u XXXX -l authNoPriv -A YYYYYY 10.*.*.* .1.3.6.1.2.1.31.1.1.1.6.11
IF-MIB::ifHCInOctets.11 = Counter64: 1448480748
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: Cacti don't want to use data from SNMP

Post by artagel »

So it's only on this one device? Has it ever worked?
If it's a new device, try removing it and all it's data sources and readding it.
-Dan
Please mark the topic solved if this resolves your problem.
AllertGen
Posts: 37
Joined: Mon Mar 26, 2012 1:27 pm

Re: Cacti don't want to use data from SNMP

Post by AllertGen »

I have this problem with two devices. Cacti can't work with them from the start.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti don't want to use data from SNMP

Post by gandalf »

This is which version of Cacti? Using spine?
R.
AllertGen
Posts: 37
Joined: Mon Mar 26, 2012 1:27 pm

Re: Cacti don't want to use data from SNMP

Post by AllertGen »

Version of cacti is 0.8.8a.
And I'm not using spine (only cmd.php).
artagel
Cacti User
Posts: 226
Joined: Wed May 21, 2008 11:33 pm

Re: Cacti don't want to use data from SNMP

Post by artagel »

Are you sure your paths are setup correctly for snmp?
Is this windows or Linux?
If you are on linux, if you do a which snmpwalk is it the same one as your path?
-Dan
Please mark the topic solved if this resolves your problem.
AllertGen
Posts: 37
Joined: Mon Mar 26, 2012 1:27 pm

Re: Cacti don't want to use data from SNMP

Post by AllertGen »

Yes, I'm sure that paths is right, becouse I have more 100 devices at monitoring, but only from 2 of them cacti can't take any information (from the moment of creation this devices).
I'm using linux server.

Image
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti don't want to use data from SNMP

Post by gandalf »

It may be worth checking whether php-snmp is in use or not. Click on the cactus on the left menu to know. You may want to de-install it to use net-snmp binaries. php-snmp had issues with SNMP V3 hosts in the past ...
R.
AllertGen
Posts: 37
Joined: Mon Mar 26, 2012 1:27 pm

Re: Cacti don't want to use data from SNMP

Post by AllertGen »

As me said cactus ( :D ):
Operating System: unix
PHP SNMP Support: yes

But from this I don't see is cacti using PHP SNMP or not. I only see that it supports. And how I can de-install PHP SNMP and make cacti to use binary net-snmp? Is de-install PHP-SNMP packet is enough for this?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests