[SOLVED] Problems with creating traffic graphs

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

Moderators: Developers, Moderators

Post Reply
VaSh1
Posts: 29
Joined: Wed Feb 20, 2008 3:44 pm

[SOLVED] Problems with creating traffic graphs

Post by VaSh1 »

Everything works fine except creating traffic graphs.

I've got a message

"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. "

Data Query Debug Information looks like:

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


This topic seems to be a solution --> http://forums.cacti.net/viewtopic.php?t=10396, but doesn't help

Any suggestions?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you try with a minimalistic snmpd.conf on the target host :

Code: Select all

rocommunity public
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
VaSh1
Posts: 29
Joined: Wed Feb 20, 2008 3:44 pm

Post by VaSh1 »

fmangeant wrote:Hi

can you try with a minimalistic snmpd.conf on the target host :

Code: Select all

rocommunity public
it doesn't work.
VaSh1
Posts: 29
Joined: Wed Feb 20, 2008 3:44 pm

Post by VaSh1 »

Could you tell me what command exactly should I write in CLI which shows me that my snmpd working fine?

I'm using this one:

snmpwalk -c public -v 1 localhost .

Tnx.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Something like :

Code: Select all

$ snmpwalk -c public -v 1 localhost iftable
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
VaSh1
Posts: 29
Joined: Wed Feb 20, 2008 3:44 pm

Post by VaSh1 »

fmangeant wrote:Something like :

Code: Select all

$ snmpwalk -c public -v 1 localhost iftable
Thanx again for helping me.

After running your commnand i've got such resalts:

Code: Select all

# snmpwalk -c public -v 1 localhost iftable

*deleted*
is this output correct?
Last edited by VaSh1 on Wed Apr 02, 2008 5:12 pm, edited 1 time in total.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Yes, it's correct :)

Can you re-run the "SNMP - Interface Statistics" data query (hit the green circle) ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
VaSh1
Posts: 29
Joined: Wed Feb 20, 2008 3:44 pm

Post by VaSh1 »

fmangeant wrote:Yes, it's correct :)

Can you re-run the "SNMP - Interface Statistics" data query (hit the green circle) ?
i've already tried to do this a couple of times... it doesn't fix the problem.
VaSh1
Posts: 29
Joined: Wed Feb 20, 2008 3:44 pm

Post by VaSh1 »

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

Post by gandalf »

VaSh1 wrote:*SOLVED*
How?
Reinhard
VaSh1
Posts: 29
Joined: Wed Feb 20, 2008 3:44 pm

Post by VaSh1 »

gandalf wrote:
VaSh1 wrote:*SOLVED*
How?
Reinhard
By chosing SNMP Version.

...I thought that "Choosing the SNMP version for this device." can using default value which is equal to "Not in use", that's why I got the mistakes in identifying network interfaces.

Anyway, many thanx for trying to help me, guys!
Attachments
snmp.PNG
snmp.PNG (4.53 KiB) Viewed 2866 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is fixed in SVN. I just suggested to create and publish this patch. You may fetch new ./lib/snmp.php from SVN, if you want to use SNMP=NONE
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest