How do you fix your error?? To do to work interfaces pollingtonyurban 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.
Getting cacti to gather network traffic stats
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
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?
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]
[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]
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.
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,
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,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,
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.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.
Another idea?
Thanks,
Vincent
Who is online
Users browsing this forum: No registered users and 0 guests