nans when setting up networking graphs

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

Moderators: Developers, Moderators

Post Reply
sven111
Posts: 1
Joined: Mon Jul 18, 2005 12:08 pm

nans when setting up networking graphs

Post by sven111 »

Hi, I am new here - I just downloaded cacti and have been trying to study it and snmp stuff real hard now.

I got everything working except network statistics. Whenever I try to set up something like Localhost - Traffic, I will just get empty images with grids and no graphs on them. As current values I'll get 'nan's. Also I have spotted from debugging log that no rddtool update is called for networking stuff.

Here's what I've been trying
1. I'll go to data sources and select Add.
2. From "Select data template" I am selecting "Inteface - traffic". Host will be 127.0.0.1. Then I click on create.
3. to "Custom data - Index value" I'll write traffic
4. Then I have to set Data source debugging on since for some reason cacti cannot generate rrd file. I'll copy and paste this

Code: Select all

/usr/bin/rrdtool create \
/home/httpd/clients/local/cacti/rra/localhost_traffic_in_48.rrd \
--step 300  \
DS:traffic_out:COUNTER:600:0:100000000 \
DS:traffic_in:COUNTER:600:0:100000000 \
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 \
to shell and chown it to php cacti user. I'll save the info.
5. Then I'll make the graph: I'll go to graph management and then click on Add. Then I'll select graph template (Interface - TRaffic (bytes/sec)) and I'll click on Create. For inbound data source I'll select "Localhost - traffic(traffic_in)" and for outbound "Localhost - traffic(traffic_out) and then I'll click on Save.
6. I'll add the graph to others and apply poller.php several times - and it has just nans :(

I hope there is something I could do, please help with this situation.

EDIT: here is a clip from snmpwalk

Code: Select all

IF-MIB::ifNumber.0 = INTEGER: 2
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifDescr.1 = STRING: eth0
IF-MIB::ifDescr.2 = STRING: lo
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.2 = INTEGER: softwareLoopback(24)
IF-MIB::ifMtu.1 = INTEGER: 1500
IF-MIB::ifMtu.2 = INTEGER: 16436
IF-MIB::ifSpeed.1 = Gauge32: 100000000
IF-MIB::ifSpeed.2 = Gauge32: 10000000
IF-MIB::ifPhysAddress.1 = STRING: 0:c:76:41:a7:4
IF-MIB::ifPhysAddress.2 = STRING:
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifInOctets.1 = Counter32: 3724130414
IF-MIB::ifInOctets.2 = Counter32: 401062595
IF-MIB::ifInUcastPkts.1 = Counter32: 2695541
IF-MIB::ifInUcastPkts.2 = Counter32: 306052
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 204920505
IF-MIB::ifOutOctets.2 = Counter32: 401063781
IF-MIB::ifOutUcastPkts.1 = Counter32: 1506214
IF-MIB::ifOutUcastPkts.2 = Counter32: 306068
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 2
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests