歡迎您光臨本站 註冊首頁

cacti無法取得流量數據!

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

cacti無法取得流量數據!

一直獲取不到流量數據,rra目錄下能生成文件,但都是NON 請大夥幫我看看,先謝謝!
日誌如下:
Log File

10/28/2008 11:16:37 AM - SYSTEM STATS: Time:1.1207 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:17 RRDsProcessed:11  
10/28/2008 11:16:36 AM - CMDPHP: Poller WARNING: sockets support not enabled in PHP, falling back to SNMP ping  
10/28/2008 11:16:36 AM - POLLER: Poller WARNING: Poller Host Ping Time was not numeric  
10/28/2008 11:16:36 AM - CMDPHP: Poller WARNING: sockets support not enabled in PHP, falling back to SNMP ping  
10/28/2008 11:16:36 AM - POLLER: Poller WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 505 seconds have passed since the last poll!  
10/28/2008 11:08:12 AM - SYSTEM STATS: Time:0.1129 Method:spine Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:13 RRDsProcessed:9  
10/28/2008 11:08:11 AM - POLLER: Poller WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 527 seconds have passed since the last poll!  
10/28/2008 10:59:25 AM - RECACHE STATS: RecacheTime:0.4642 HostsRecached:1  
10/28/2008 10:59:25 AM - PCOMMAND: Poller Host WARNING: Recache Event Detected for Host  
10/28/2008 10:59:25 AM - SYSTEM STATS: Time:1.1368 Method:spine Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:13 RRDsProcessed:9  

Host: Localhost , SNMP Query: Unix - Get Mounted Partitions  
Index: /dev/sda2 , Field Name: dskMount , Field Value: /boot  
OID:  
Host: localhost-2 , SNMP Query: SNMP - Interface Statistics  
Index: 4 , Field Name: ifAlias , Field Value:  
OID: .1.3.6.1.2.1.31.1.1.1.18.4  
Host: localhost-2 , SNMP Query: SNMP - Interface Statistics  
Index: 3 , Field Name: ifAlias , Field Value:  
OID: .1.3.6.1.2.1.31.1.1.1.18.3  
Host: localhost-2 , SNMP Query: SNMP - Interface Statistics  
Index: 2 , Field Name: ifAlias , Field Value:  
OID: .1.3.6.1.2.1.31.1.1.1

我的Snmp.conf如下:
com2sec notConfigUser  127.0.0.1       public
com2sec notConfigUser  218.206.92.8      public
group   notConfigGroup v1           notConfigUser
group   notConfigGroup v2c           notConfigUser
view    systemview    included   .1.3.6.1.2.1.1
view    systemview    included   .1.3.6.1.2.1.25.1.1
access  notConfigGroup ""      any       noauth    exact  all  none none
view all    included  .1                               80.18.2
《解決方案》

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=1225088939 \
--end=1225175039 \
--title="localhost-2 - Traffic - eth0" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2008/10/27 14\:28\:59 To 2008/10/28 14\:23\:59\c" \
COMMENT:"  \n" \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/localhost-2_traffic_in_16.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/cacti/rra/localhost-2_traffic_in_16.rrd":traffic_in:MAX \
DEF:c="/var/www/cacti/rra/localhost-2_traffic_in_16.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/cacti/rra/localhost-2_traffic_in_16.rrd":traffic_out:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdefd=b,8,* \
CDEF:cdeff=c,8,* \
CDEF:cdefi=d,8,* \
AREA:cdefa#00CF00FF:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %s"  \
COMMENT:"Total In\:  0 bytes\n"  \
LINE1:cdeff#002A97FF:"Outbound"  \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s"  \
COMMENT:"Total Out\: 0 bytes"
《解決方案》

啥沒有問津呢,我頂頂
《解決方案》

你的OS是什麼?你是如何安裝的?請詳細說明 謝謝
《解決方案》

我的cacti也出現了,類似的情況,一直都沒有解決,你大家幫我一下,我的QQ是:415263416 十分感激~~!!!
《解決方案》

呵呵,本人這段時間也在研究cacti。對於這個問題,我覺得是php編譯時的問題。你看到日誌最上面的warning了嗎??沒有socket的支持!在編譯php時應加上--enable-sockets。不確定有沒有s,你看一下php的選項吧。互相學習!
《解決方案》

cacti獲取不到圖像 無非是 snmp配置問題!
《解決方案》

10/28/2008 11:16:36 AM - CMDPHP: Poller WARNING: sockets support not enabled in PHP, falling back to SNMP ping
看報錯,好像是php編譯安裝的時候沒有支持sockets,試一下重新編譯,增加這個參數試試 --enable-sockets        Enable sockets support

[火星人 ] cacti無法取得流量數據!已經有1900次圍觀

http://coctec.com/docs/service/show-post-24450.html