eth0 Traffic Graph Not Working

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

Moderators: Developers, Moderators

Post Reply
cthielen
Posts: 5
Joined: Wed Nov 30, 2011 10:14 pm

eth0 Traffic Graph Not Working

Post by cthielen »

New to Cacti -- installed on CentOS 5.7 using these instructions: http://www.cyberciti.biz/faq/fedora-rhe ... -software/ .

Graphs of load average, memory usage, processes, and logged in users work fine. Those appeared by simply following the instructions.

I then added graphs of traffic for eth0 (main interface), eth1 (unused), lo, and sit0. Those graphs are completely void of data.

They are implemented using the graph template "Interface - Traffic", being fed by data sources "Localhost - Traffic - my_ip_address - eth0 (traffic in)" and "Localhost - Traffic - my_ip_address - eth0 (traffic out)".

I have the following Data Queries:
Karlnet - Wireless Bridge Statistics Get SNMP Data (Indexed)
Netware - Get Available Volumes Get SNMP Data (Indexed)
Netware - Get Processor Information Get SNMP Data (Indexed)
SNMP - Get Mounted Partitions Get Script Server Data (Indexed)
SNMP - Get Processor Information Get Script Server Data (Indexed)
SNMP - Interface Statistics Get SNMP Data (Indexed)
ucd/net - Get Monitored Partitions Get SNMP Data (Indexed)
Unix - Get Mounted Partitions Get Script Data (Indexed)

and the following Data Input Methods:

Linux - Get Memory Usage Script/Command
Unix - Get Free Disk Space Script/Command
Unix - Get Load Average Script/Command
Unix - Get Logged In Users Script/Command
Unix - Get System Processes Script/Command
Unix - Get TCP Connections Script/Command
Unix - Get Web Hits Script/Command
Unix - Ping Host Script/Command

What am I doing wrong?
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: eth0 Traffic Graph Not Working

Post by noname »

Is the SNMP daemon working on your host?
- Setting Up SNMP - Cacti Docs
cthielen
Posts: 5
Joined: Wed Nov 30, 2011 10:14 pm

Re: eth0 Traffic Graph Not Working

Post by cthielen »

I believe so:

[root@host ~]# /etc/init.d/snmpd status
snmpd (pid 2647) is running...
[root@host ~]# snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux the_host 2.6.18-274.12.1.el5PAE #1 SMP Tue Nov 29 14:16:58 EST 2011 i686
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: eth0 Traffic Graph Not Working

Post by noname »

Does this command work?
% snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1

See also: http://forums.cacti.net/viewtopic.php?f=21&t=10396
cthielen
Posts: 5
Joined: Wed Nov 30, 2011 10:14 pm

Re: eth0 Traffic Graph Not Working

Post by cthielen »

I believe so:


[root@host ~]# snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: eth1
IF-MIB::ifDescr.4 = STRING: sit0
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: tunnel(131)
IF-MIB::ifMtu.1 = INTEGER: 16436
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifMtu.4 = INTEGER: 1480
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 1000000000
IF-MIB::ifSpeed.3 = Gauge32: 0
IF-MIB::ifSpeed.4 = Gauge32: 0
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING: 0:11:43:df:80:99
IF-MIB::ifPhysAddress.3 = STRING: 0:11:43:df:80:9a
IF-MIB::ifPhysAddress.4 = STRING:
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifAdminStatus.3 = INTEGER: down(2)
IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: down(2)
IF-MIB::ifOperStatus.4 = INTEGER: down(2)
IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
IF-MIB::ifInOctets.1 = Counter32: 6463670
IF-MIB::ifInOctets.2 = Counter32: 811915783
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInUcastPkts.1 = Counter32: 15916
IF-MIB::ifInUcastPkts.2 = Counter32: 11404185
IF-MIB::ifInUcastPkts.3 = Counter32: 0
IF-MIB::ifInUcastPkts.4 = Counter32: 0
IF-MIB::ifInNUcastPkts.1 = Counter32: 0
IF-MIB::ifInNUcastPkts.2 = Counter32: 10582
IF-MIB::ifInNUcastPkts.3 = Counter32: 0
IF-MIB::ifInNUcastPkts.4 = Counter32: 0
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInDiscards.4 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 0
IF-MIB::ifInErrors.4 = Counter32: 0
IF-MIB::ifInUnknownProtos.1 = Counter32: 0
IF-MIB::ifInUnknownProtos.2 = Counter32: 0
IF-MIB::ifInUnknownProtos.3 = Counter32: 0
IF-MIB::ifInUnknownProtos.4 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 6463670
IF-MIB::ifOutOctets.2 = Counter32: 3933191733
IF-MIB::ifOutOctets.3 = Counter32: 0
IF-MIB::ifOutOctets.4 = Counter32: 0
IF-MIB::ifOutUcastPkts.1 = Counter32: 15916
IF-MIB::ifOutUcastPkts.2 = Counter32: 21413062
IF-MIB::ifOutUcastPkts.3 = Counter32: 0
IF-MIB::ifOutUcastPkts.4 = Counter32: 0
IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutDiscards.4 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutErrors.4 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifOutQLen.3 = Gauge32: 0
IF-MIB::ifOutQLen.4 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero
cthielen
Posts: 5
Joined: Wed Nov 30, 2011 10:14 pm

Re: eth0 Traffic Graph Not Working

Post by cthielen »

Just wanting to bump this up. SNMP is apparently working. eth0 graph still empty.

The graph itself says it is using data sources "traffic_in" and "traffic_out". When I click "Data Source Debug" for those sources, I get:

/usr/bin/rrdtool create \
/usr/share/cacti/rra/localhost_traffic_in_15.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:U \
DS:traffic_out:COUNTER:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

Any ideas why this isn't tracking eth0? The graph remains empty.
User avatar
TheWitness
Developer
Posts: 17061
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: eth0 Traffic Graph Not Working

Post by TheWitness »

Run the poler from the command line and post the results. You should also check the first and second posts in my signature.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
cthielen
Posts: 5
Joined: Wed Nov 30, 2011 10:14 pm

Re: eth0 Traffic Graph Not Working

Post by cthielen »

Thanks, that fixed it. One of the files didn't have the right permissions. Appreciated greatly!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests