Graph stats not updating on eth0

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

Moderators: Developers, Moderators

Post Reply
8fmu58wu598v3m
Posts: 4
Joined: Sat Oct 19, 2013 1:04 pm

Graph stats not updating on eth0

Post by 8fmu58wu598v3m »

snmp is set up correctly:

Code: Select all

snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.2.2.1.2
iso.3.6.1.2.1.2.2.1.2.1 = STRING: "lo"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "bond0"
iso.3.6.1.2.1.2.2.1.2.3 = STRING: "dummy0"
iso.3.6.1.2.1.2.2.1.2.4 = STRING: "eth0"
iso.3.6.1.2.1.2.2.1.2.5 = STRING: "tunl0"
iso.3.6.1.2.1.2.2.1.2.6 = STRING: "sit0"
iso.3.6.1.2.1.2.2.1.2.7 = STRING: "ip6tnl0"
Cacti:

Code: Select all

+ 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 get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index Count: 7
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' Index Count: 7
+ Index found at OID: 'iso.3.6.1.2.1.2.2.1.1.1' value: '1'
+ Index found at OID: 'iso.3.6.1.2.1.2.2.1.1.2' value: '2'
+ Index found at OID: 'iso.3.6.1.2.1.2.2.1.1.3' value: '3'
+ Index found at OID: 'iso.3.6.1.2.1.2.2.1.1.4' value: '4'
+ Index found at OID: 'iso.3.6.1.2.1.2.2.1.1.5' value: '5'
+ Index found at OID: 'iso.3.6.1.2.1.2.2.1.1.6' value: '6'
+ Index found at OID: 'iso.3.6.1.2.1.2.2.1.1.7' value: '7'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='4'] index: 4 [from value]
+ Found item [ifIndex='5'] index: 5 [from value]
+ Found item [ifIndex='6'] index: 6 [from value]
+ Found item [ifIndex='7'] index: 7 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Down'] index: 2 [from value]
+ Found item [ifOperStatus='Down'] index: 3 [from value]
+ Found item [ifOperStatus='Up'] index: 4 [from value]
+ Found item [ifOperStatus='Down'] index: 5 [from value]
+ Found item [ifOperStatus='Down'] index: 6 [from value]
+ Found item [ifOperStatus='Down'] index: 7 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='lo'] index: 1 [from value]
+ Found item [ifDescr='bond0'] index: 2 [from value]
+ Found item [ifDescr='dummy0'] index: 3 [from value]
+ Found item [ifDescr='eth0'] index: 4 [from value]
+ Found item [ifDescr='tunl0'] index: 5 [from value]
+ Found item [ifDescr='sit0'] index: 6 [from value]
+ Found item [ifDescr='ip6tnl0'] index: 7 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Found item [ifName='lo'] index: 1 [from value]
+ Found item [ifName='bond0'] index: 2 [from value]
+ Found item [ifName='dummy0'] index: 3 [from value]
+ Found item [ifName='eth0'] index: 4 [from value]
+ Found item [ifName='tunl0'] index: 5 [from value]
+ Found item [ifName='sit0'] index: 6 [from value]
+ Found item [ifName='ip6tnl0'] index: 7 [from value]
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias=''] index: 1 [from value]
+ Found item [ifAlias=''] index: 2 [from value]
+ Found item [ifAlias=''] index: 3 [from value]
+ Found item [ifAlias=''] index: 4 [from value]
+ Found item [ifAlias=''] index: 5 [from value]
+ Found item [ifAlias=''] index: 6 [from value]
+ Found item [ifAlias=''] index: 7 [from value]
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='24'] index: 1 [from value]
+ Found item [ifType='6'] index: 2 [from value]
+ Found item [ifType='6'] index: 3 [from value]
+ Found item [ifType='6'] index: 4 [from value]
+ Found item [ifType='131'] index: 5 [from value]
+ Found item [ifType='131'] index: 6 [from value]
+ Found item [ifType='131'] index: 7 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='0'] index: 2 [from value]
+ Found item [ifSpeed='0'] index: 3 [from value]
+ Found item [ifSpeed='100000000'] index: 4 [from value]
+ Found item [ifSpeed='0'] index: 5 [from value]
+ Found item [ifSpeed='0'] index: 6 [from value]
+ Found item [ifSpeed='0'] index: 7 [from value]
+ Located input field 'ifHighSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.15'
+ Found item [ifHighSpeed='10'] index: 1 [from value]
+ Found item [ifHighSpeed='0'] index: 2 [from value]
+ Found item [ifHighSpeed='0'] index: 3 [from value]
+ Found item [ifHighSpeed='100'] index: 4 [from value]
+ Found item [ifHighSpeed='0'] index: 5 [from value]
+ Found item [ifHighSpeed='0'] index: 6 [from value]
+ Found item [ifHighSpeed='0'] index: 7 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='2E:42:E0:E3:4D:E5'] index: 2 [from value]
+ Found item [ifHwAddr='4A:69:A5:F1:95:5A'] index: 3 [from value]
+ Found item [ifHwAddr='00:22:4D:99:14:F1'] index: 4 [from value]
+ Found item [ifHwAddr=''] index: 5 [from value]
+ Found item [ifHwAddr=''] index: 6 [from value]
+ Found item [ifHwAddr=''] index: 7 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='5.135.152.119'] index: 4 [from regexp oid parse]
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
Data Source Debug

Code: Select all

/usr/bin/rrdtool create \
/var/lib/cacti/rra/kimi6_traffic_in_16.rrd \
--step 300  \
DS:traffic_in:COUNTER:600:0:U \
DS:traffic_out:COUNTER:600:0:U \
RRA:AVERAGE:0.5:1:500 \
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:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

Code: Select all

	

    /var/lib/cacti$ sudo ls -al rra/
    total 692
    drwxrwx--- 2 root     www-data   4096 Oct 19 23:55 .
    drwxr-xr-x 3 root     root       4096 Oct 19 19:45 ..
    -rw-r--r-- 1 www-data www-data 111392 Oct 20 00:20 kimi6_traffic_in_16.rrd
    -rw-r--r-- 1 www-data www-data 141640 Oct 20 00:20 localhost_load_1min_5.rrd
    -rw-r--r-- 1 www-data www-data  47992 Oct 20 00:20 localhost_mem_buffers_3.rrd
    -rw-r--r-- 1 www-data www-data  47992 Oct 20 00:20 localhost_mem_swap_4.rrd
    -rw-r--r-- 1 www-data www-data  47992 Oct 20 00:20 localhost_proc_7.rrd
    -rw-r--r-- 1 www-data www-data 111392 Oct 19 23:25 localhost_traffic_in_14.rrd
    -rw-r--r-- 1 www-data www-data 111392 Oct 20 00:20 localhost_traffic_in_15.rrd
    -rw-r--r-- 1 www-data www-data  47992 Oct 20 00:20 localhost_users_6.rrd
Cacti Log File

Code: Select all

10/20/2013 12:50:02 AM - SYSTEM STATS: Time:0.4965 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:13 RRDsProcessed:9
10/20/2013 12:55:02 AM - SYSTEM STATS: Time:0.4281 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:13 RRDsProcessed:9
10/20/2013 01:00:01 AM - SYSTEM STATS: Time:0.4051 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:13 RRDsProcessed:9
Image

Any ideas what to do next?
I waited 1hour+ but no data...
8fmu58wu598v3m
Posts: 4
Joined: Sat Oct 19, 2013 1:04 pm

Re: Graph stats not updating on eth0

Post by 8fmu58wu598v3m »

If I run cmd.php manually:

Code: Select all

sudo php cmd.php
PHP Strict Standards:  Only variables should be passed by reference in /usr/share/cacti/site/lib/ping.php on line 382
PHP Strict Standards:  Only variables should be passed by reference in /usr/share/cacti/site/lib/ping.php on line 382
PHP Strict Standards:  Only variables should be passed by reference in /usr/share/cacti/site/lib/ping.php on line 382
10/20/2013 01:18:11 AM - CMDPHP: Poller[0] Time: 0.1666 s, Theads: N/A, Hosts: 2
I would really appreciate it if someone could help me!
I'm trying to provide as much information as possible.
8fmu58wu598v3m
Posts: 4
Joined: Sat Oct 19, 2013 1:04 pm

Re: Graph stats not updating on eth0

Post by 8fmu58wu598v3m »

Debug Log File:

Code: Select all

10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /usr/share/cacti/site/scripts/linux_memory.pl SwapFree:, output: 469656
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /usr/share/cacti/site/scripts/loadavg_multi.pl, output: 1min:0.08 5min:0.18 10min:0.25
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /usr/share/cacti/site/scripts/unix_users.pl , output: 2
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /usr/share/cacti/site/scripts/unix_processes.pl, output: 149
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[15] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 222926531
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[15] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 2459351678
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] PING: UDP Ping Success (0.34 ms)
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] RECACHE: Processing 1 items in the auto reindex cache for '127.0.0.1'.
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0, output: 866711
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] DS[16] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 222926531
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] DS[16] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 2459351678
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] PING: UDP Ping Success (0.27 ms)
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] RECACHE: Processing 1 items in the auto reindex cache for '127.0.0.1'.
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0, output: 866712
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] DS[18] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 62462831
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] DS[18] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 62462831
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] DS[19] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 222926531
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] DS[19] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 2459351678
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Time: 0.1665 s, Theads: N/A, Hosts: 3
10/20/2013 01:18:11 AM - CMDPHP: Poller[0] Time: 0.1666 s, Theads: N/A, Hosts: 2
antd@ks3296538:/usr/share/cacti/site$ sudo cat /var/log/cacti/cacti.log
10/20/2013 01:13:14 AM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
10/20/2013 01:13:14 AM - CMDPHP: Poller[0] Host[1] RECACHE: Processing 1 items in the auto reindex cache for '127.0.0.1'.
10/20/2013 01:13:14 AM - CMDPHP: Poller[0] Host[1] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0
10/20/2013 01:13:14 AM - CMDPHP: Poller[0] Host[1] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0, output: 866698
10/20/2013 01:13:14 AM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /usr/share/cacti/site/scripts/linux_memory.pl MemFree:, output: 65828
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /usr/share/cacti/site/scripts/linux_memory.pl SwapFree:, output: 469656
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /usr/share/cacti/site/scripts/loadavg_multi.pl, output: 1min:0.08 5min:0.18 10min:0.25
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /usr/share/cacti/site/scripts/unix_users.pl , output: 2
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /usr/share/cacti/site/scripts/unix_processes.pl, output: 149
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[15] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 222926531
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[1] DS[15] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 2459351678
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] PING: UDP Ping Success (0.34 ms)
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] RECACHE: Processing 1 items in the auto reindex cache for '127.0.0.1'.
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0, output: 866711
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] DS[16] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 222926531
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[4] DS[16] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 2459351678
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] PING: UDP Ping Success (0.27 ms)
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] RECACHE: Processing 1 items in the auto reindex cache for '127.0.0.1'.
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] RECACHE DQ[1] OID: .1.3.6.1.2.1.1.3.0, output: 866712
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] DS[18] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 62462831
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] DS[18] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 62462831
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] DS[19] SNMP: v1: 127.0.0.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, output: 222926531
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Host[5] DS[19] SNMP: v1: 127.0.0.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, output: 2459351678
10/20/2013 01:13:15 AM - CMDPHP: Poller[0] Time: 0.1665 s, Theads: N/A, Hosts: 3
10/20/2013 01:18:11 AM - CMDPHP: Poller[0] Time: 0.1666 s, Theads: N/A, Hosts: 2
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest