Problem following FAQ on traffic graphs

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

Moderators: Developers, Moderators

Post Reply
Shinhan7
Posts: 4
Joined: Thu Jul 29, 2010 2:55 pm

Problem following FAQ on traffic graphs

Post by Shinhan7 »

FAQ has section on making traffic graphs but after step 5, when it says I should see interfaces, I dont.

"This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information"

So, I click on that link.

"+ 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'"

I set hostname to 127.0.0.1 (since I needs to track traffic on localhost), Downed Device Detection SNMP, SNMP Version 2, SNMP Community "public"...

I really didnt change anything since installing snmpd (and I did check to see its installed, it is)

If anybody has any tips on how to do this, I would be really grateful, two weeks I've been trying to make traffic graphs without luck :(
User avatar
DeeL
Cacti User
Posts: 71
Joined: Thu May 14, 2009 5:12 pm
Location: Paris

Post by DeeL »

silly question :

Did you restart the snmpd daemon? after the creation of your snmpd.conf file ?

Regards,

Deel
Shinhan7
Posts: 4
Joined: Thu Jul 29, 2010 2:55 pm

Post by Shinhan7 »

Sorry for late answer, long day at work.

I did not make snmpd.conf file, but when looking for it I found it already exists with default values (like "public" community and so). And although I restart the computer in the meantime (due to unrelated problems), I also just now restarted the snmpd.

No change, everything is same as before.

btw, here's what it says at the top of the Device edit page:

Code: Select all

SNMP Information
System:Linux hogosha 2.6.32-23-server #37-Ubuntu SMP Fri Jun 11 09:11:11 UTC
2010 x86_64
Uptime: 1206 (0 days, 0 hours, 0 minutes)
Hostname: hogosha
Location: Unknown (configure /etc/snmp/snmpd.local.conf)
Contact: Root root@localhost (configure /etc/snmp/snmpd.local.conf)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see 2nd link of my sig for basic debugging
R.
User avatar
bmote
Cacti User
Posts: 50
Joined: Thu Jul 15, 2010 1:12 pm
Location: Cincinnati, OH
Contact:

Post by bmote »

I had the same issue when using the supplied snmpd.conf. I made a backup of the file and created the simple 6-line .conf file from the installation instructions. I can run each of the examples listed and get results.

Code: Select all

rocommunity public
dontPrintUnits true
includeAllDisks
proc httpd
syslocation VM_FARM_DTG
syscontact bmote@mydomain.com
So, somewhere in the snmpd.conf file is the answer.
Bill Mote
blog: http://ThingsThatMakeMeMadAndHowToFixThem.blogspot.com
Shinhan7
Posts: 4
Joined: Thu Jul 29, 2010 2:55 pm

Post by Shinhan7 »

Thanks bmote, I used your example (only changed last two lines) and looks like its working now.
User avatar
bmote
Cacti User
Posts: 50
Joined: Thu Jul 15, 2010 1:12 pm
Location: Cincinnati, OH
Contact:

Post by bmote »

Implementing what I gleaned from the documentation, and provided above, is a very "open" configuration. Anyone with UDP access to the box can read it's SNMP values.

Eventually I'll dig through the snmpd.conf file to understand why the network interfaces weren't being returned, but I suspect it has something to do with a setting early on that says to only reveal the "system" MIB tree data.

Bill Mote
Bill Mote
blog: http://ThingsThatMakeMeMadAndHowToFixThem.blogspot.com
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests