No graphs (network interface) but SNMP GET's work

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

Moderators: Developers, Moderators

Post Reply
seth
Posts: 2
Joined: Wed Sep 07, 2005 12:16 am

No graphs (network interface) but SNMP GET's work

Post by seth »

Hi:

Apologiez if the answer to my question has been posted elsewhere. I've searched google, this forum, and read the docs before posting here.

Problem description:
------------------------

Hi:

I've been trying to graph interface stats for sometime now, and have had 0 success: could someone please push me in the right
direction?

Here is some background info:

OS:
Linux dhyan 2.6.7 #1 Wed Dec 8 12:12:03 PST 2004 i686 GNU/Linux

Installed SNMPD:

root@dhyan:/var/log# ls /etc/sn*
snmpd.conf snmptrapd.conf

I can walk the interface mib tree:

root@dhyan:/var/log# snmpwalk -v 2c -c public 192.168.1.103 | grep ifIn
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifInOctets.1 = Counter32: 109970027
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 4122853963
IF-MIB::ifInUcastPkts.1 = Counter32: 215125
IF-MIB::ifInUcastPkts.2 = Counter32: 0
IF-MIB::ifInUcastPkts.3 = Counter32: 5196156
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 5
HOST-RESOURCES-MIB::hrSWRunParameters.15286 = STRING: "ifIn"


Here are my IP addresses:

root@dhyan:/var/log# ifconfig
eth0 Link encap:Ethernet HWaddr 00:C0:F0:49:25:0D
inet addr:192.168.1.103 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5196204 errors:5 dropped:0 overruns:0 frame:0
TX packets:3762837 errors:2 dropped:0 overruns:0 carrier:2
collisions:0 txqueuelen:1000
RX bytes:4122858959 (3.8 GiB) TX bytes:389287821 (371.2 MiB)
Interrupt:5

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:218046 errors:0 dropped:0 overruns:0 frame:0
TX packets:218046 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:110196709 (105.0 MiB) TX bytes:110196709 (105.0 MiB)

from the info above eth0 is ".3" (see below)

root@dhyan:/var/log# snmpwalk -v 2c -c public 192.168.1.103 | grep -i speed
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 0
IF-MIB::ifSpeed.3 = Gauge32: 100000000

So all this says is that my SNMP stuff seems to be working correctly.

** cacti doesn't seem to be picked this info up.

here are where my rra's are kept:

root@dhyan:/var/lib/cacti/rra# pwd
/var/lib/cacti/rra
root@dhyan:/var/lib/cacti/rra# ls -al ../
total 12
drwxr-xr-x 3 root root 4096 Sep 4 14:45 .
drwxr-xr-x 50 root root 4096 Sep 4 14:45 ..
drwxrwxrwx 2 root www-data 4096 Sep 6 20:45 rra
root@dhyan:/var/lib/cacti/rra#

Notice that I've listed the perms on the rra direction. I know about security risks.. BUT I am trying to avoid a situation where
permissions might be causes rrd files to be created and read. I've found that give access to EVERYONE for 'rwx' in rra dir isn't making a difference.

Under the Cacti 'console'

Graph Mangement -> <click graph title in question> -> turn ON Graph debug mode

Here is the error:

RRDTool Says:

ERROR: opening '/usr/share/cacti/site/rra/dhyan_unicast_in_73.rrd': No such file or directory

So.. there is NO .rrd file ( referenced above ) that exists in the path noted above.


/etc/hosts.allow have entries to allow

snmp and snmpd services from everywhere/everyone


How I'm graphing stats:

1. Device -> create a new device
2. under Associated Data Queries, choose: "SNMP - Interface Statistics" from pull down menu
3. save and then "New Graphs" -> Under Data Query section I have the following:

Index Status Description Name (IF-MIB) Alias (IF-MIB) Type Speed Hardware Address IP Address
1 1 OID: .0.0 No Such Object available on this agent at this OID 24 10000000 127.0.0.1
2 2 OID: .0.0 131 0
3 1 OID: .0.0 6 100000000 00:00:C0:F0:49:25:0D
192.168.1.103
No Such Object available on this agent at this OID

4. chose to graph the entry with the IP: 192.168.1.103
5. from pull down menu at the bottom chose: "in/out bits"

* no graph is produced.
----------------------------------------------------------------------------

What DOES work:

Creating a graph with a "Graph Template" of type "Generic OID Template"
When creating a Graph this way, I simply specify the Object ID, which is "IF-MIB::ifInUcastPkts.3", etc...

The problem with this is, I have an individual graph for each MIB variable: ifInUcastPkts.3, ifOutUcastPkts.3, etc...
I'd like the in/out data to be on one graph ( this is entirely a seperate probelm ).

-----------------------------------------------------------------------------

** what am I _not_ doing, to properly generate the graphs via method described with the templates?
seth
Posts: 2
Joined: Wed Sep 07, 2005 12:16 am

Removed the duplicate datasources

Post by seth »

I noticed the "sticky" in the "Help:General" section of the forum.

I've removed all dup data sources yeay!! :o

1. deleted ALL my devices
2. recreated my devices
3. created graphs for the newly created devices
4. created graphs
4a. for users logged in( works, has always worked )
4b. for IP address found: (total bandwidth )

result:

no graph png being drawn. Turned on debug mode and I still see the following msg (also documented in my previous post)

RRDTool Says:

ERROR: opening '/usr/share/cacti/site/rra/dhyan_traffic_in_77.rrd': No such file or directory
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Removed the duplicate datasources

Post by gandalf »

seth wrote:ERROR: opening '/usr/share/cacti/site/rra/dhyan_traffic_in_77.rrd': No such file or directory
The cacti poller was not able to create the above rrd. Look at the crontab and su to the user that runs the poller (usually "cacti" or "cactiuser"). Under this userid, try to touch the above rrd. If this results in an error, you have to solve that problem first.

Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests