Getting cacti to gather network traffic stats

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

lga
Posts: 21
Joined: Mon May 23, 2005 4:39 am
Location: Belgium

Post by lga »

tonyurban wrote:Just wanted to post a quick reply to thank rony for the personal help in debugging my cacti install. Stupid user error, fixed.

Thanks again.
How do you fix your error?? To do to work interfaces polling
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

His error was he edited the lib/snmp.php file and changes something he wasn't suppose to. So, the result was SNMPv1 worked, but SNMPv2 did not.

lga, I don't know what is wrong, but if I had to guess, I would say your traffic templates are screwed up. When you attempt to make graphs, they come up, right? But the never update?
[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]
lga
Posts: 21
Joined: Mon May 23, 2005 4:39 am
Location: Belgium

Post by lga »

rony wrote:His error was he edited the lib/snmp.php file and changes something he wasn't suppose to. So, the result was SNMPv1 worked, but SNMPv2 did not.

lga, I don't know what is wrong, but if I had to guess, I would say your traffic templates are screwed up. When you attempt to make graphs, they come up, right? But the never update?

I think I found the error...

In table "snmp_query" the field "data_input_id" for the id 1 "SNMP - Interface Statistic" was equal to "86"! But data_input_id 86 doesn't exists in table "data_input". I refixed this value to "2" as in the default cacti.sql ...
It seems work ... I let to run until tomorrow to see the result ...

Thks,

Lionel.
fata51
Posts: 17
Joined: Wed Nov 16, 2005 8:34 am

Post by fata51 »

I didn't change anything in /lib/snmp.php. I checked the value un the cacti database but it's good. The polling on network interfaces is still a failure!

here is my verbose debugging when I add the data query "SNMP - Interface Statistics" :

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/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'
+ No SNMP data returned
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'

Thanks,
lga
Posts: 21
Joined: Mon May 23, 2005 4:39 am
Location: Belgium

Post by lga »

fata51 wrote:I didn't change anything in /lib/snmp.php. I checked the value un the cacti database but it's good. The polling on network interfaces is still a failure!

here is my verbose debugging when I add the data query "SNMP - Interface Statistics" :

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/site/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'
+ No SNMP data returned
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/snmp_queries/interface.xml'

Thanks,
Hi,

You've maybe the same problem that me. Check your table "snmp_query".
Verify if the field "data_input_id" fixed to "2". the value "2" of "data_input_id" is in fact "Get SNMP Data (Indexed)".

That was my problem. Since I've modified this, all work right ;-)


Lionel.
fata51
Posts: 17
Joined: Wed Nov 16, 2005 8:34 am

Post by fata51 »

lga wrote:
Hi,

You've maybe the same problem that me. Check your table "snmp_query".
Verify if the field "data_input_id" fixed to "2". the value "2" of "data_input_id" is in fact "Get SNMP Data (Indexed)".

That was my problem. Since I've modified this, all work right ;-)


Lionel.
I just checked it one more time and the value is well fixed.

Another idea?

Thanks,

Vincent
fata51
Posts: 17
Joined: Wed Nov 16, 2005 8:34 am

Post by fata51 »

no idea?
Towikromo
Posts: 6
Joined: Tue Nov 22, 2005 8:56 am

Post by Towikromo »

Same problemm for me , checked everything but impossible to get Traffic graphs displayed.

cacti 0.8.6c-7sarge2
NET-SNMP version: 5.1.2
fata51
Posts: 17
Joined: Wed Nov 16, 2005 8:34 am

Post by fata51 »

check your snmp version specified in cacti (net-snmp/ucd-snmp)

I just changed to NET SNMP 5.x et it works now...
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests