potential problem with cactid snmp poller

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

Moderators: Developers, Moderators

Post Reply
Paul Thexton
Posts: 49
Joined: Tue Jan 18, 2005 7:50 am

potential problem with cactid snmp poller

Post by Paul Thexton »

Hi All.

I have run in to a potential problem with the cactid snmp poller.

We are having some issues with graphing some ethernet interfaces... the snmp interface statistics query seems to work fine, but when the poller returns the data the counter value is being thrown in to the log (when I enable full logging) as a 0 value.

See example:
02/07/2006 10:45:12 AM - CACTID: Poller[0] Host[270] DS[6903] SNMP: v2: {hostname}, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.16801793,
value: 0
However, if I query this counter manually.....
[pthexton@cacti ~]$ snmpget -v2c -c {community} {hostname} .1.3.6.1.2.1.31.1.1.1.10.16801793
IF-MIB::ifHCOutOctets.16801793 = Counter64: 9995245836
Is this something to do with the rather large index number? or something else? Everything else is fine, just certain interfaces on this one specific type of router that is giving very large index values?
Paul Thexton
Posts: 49
Joined: Tue Jan 18, 2005 7:50 am

Post by Paul Thexton »

Forgot to mention

Cacti version: Version 0.8.6g
Cactid version: fc4 rpm cacti-cactid-0.8.6f-2
Paul Thexton
Posts: 49
Joined: Tue Jan 18, 2005 7:50 am

Post by Paul Thexton »

I assume then that people are equally as stumped about this as I am?

If I were to try and see what was causing this issue myself by going to the cactid source, would anyone have any idea how I could tell cactid on a 'test' system to poll only one specific device (should I modify the snmp code and put some debug information in it so that I can see what's going on) ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Paul Thexton wrote:I assume then that people are equally as stumped about this as I am?
Some might be... Not me.. ;) I'm just late.. :)

Double check that the device is showing an up status on the device list, which I think it is. Now, when you edit the device, is it's snmp version set to SNMPv2? Version 2 is needed for 64-bit counters and depending on the agent, it will respond on that OID even on SNMPv1, but with the wrong value.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Paul Thexton
Posts: 49
Joined: Tue Jan 18, 2005 7:50 am

Post by Paul Thexton »

Hi,

Yeah - device status shows as up and SNMPv2 is being used - the interfaces that aren't working have only the large index number in common, other interfaces on the same device with more sensible index values still work and get graphed properly.

For the time being we have had to create the datasources, then disable them in cacti, and run our own external poller so that we can graph the interfaces until we find the reason why the cactid poller is returning bad values.

Thanks for the suggestions.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Give me an example of a large index number.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Paul Thexton
Posts: 49
Joined: Tue Jan 18, 2005 7:50 am

Re: potential problem with cactid snmp poller

Post by Paul Thexton »

Paul Thexton wrote: See example:
02/07/2006 10:45:12 AM - CACTID: Poller[0] Host[270] DS[6903] SNMP: v2: {hostname}, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.16801793,
value: 0
However, if I query this counter manually.....
[pthexton@cacti ~]$ snmpget -v2c -c {community} {hostname} .1.3.6.1.2.1.31.1.1.1.10.16801793
IF-MIB::ifHCOutOctets.16801793 = Counter64: 9995245836
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Do you see that number in your poller cache?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Also, what version of php are you running and do you have php-snmp support enabled?

What version of net-snmp do you have installed?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Paul Thexton
Posts: 49
Joined: Tue Jan 18, 2005 7:50 am

Post by Paul Thexton »

rony wrote:Do you see that number in your poller cache?
Yeah, the poller cache entry is correct .... from memory anyway, I will have another go and look in the poller cache to make sure, but i'm pretty sure it was correct.
Paul Thexton
Posts: 49
Joined: Tue Jan 18, 2005 7:50 am

Post by Paul Thexton »

rony wrote: What version of net-snmp do you have installed?
net-snmp-5.2.1.2-fc4.1
net-snmp-libs-5.2.1.2-fc4.1
net-snmp-utils-5.2.1.2-fc4.1
net-snmp-devel-5.2.1.2-fc4.1
net-snmp-perl-5.2.1.2-fc4.1
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests