我从 2 天开始就被困在这个问题上。我之前成功地使用了 rrdtool。
这是我目前无法修复的。
我创建了一个rrd文件,
rrdtool create /var/www/cacti/rra/LUN372.rrd \
-s 300 \
DS:hlwanspeed:GAUGE:1200:0:120000 \
DS:sanspeed:GAUGE:1200:0:120000 \
DS:wanspeed:GAUGE:1200:0:120000 \
RRA:AVERAGE:0.5:1:1500
然后我运行一个 cron 作业来更新它
*/5 * * * * /root/rpa/ted.sh
但我得到了所有的 NaN 值
last_update = 1405442886
header_size = 1208
ds[hlwanspeed].index = 0
ds[hlwanspeed].type = "GAUGE"
ds[hlwanspeed].minimal_heartbeat = 1200
ds[hlwanspeed].min = 0.0000000000e+00
ds[hlwanspeed].max = 1.2000000000e+05
ds[hlwanspeed].last_ds = "0"
ds[hlwanspeed].value = 0.0000000000e+00
ds[hlwanspeed].unknown_sec = 0
ds[sanspeed].index = 1
ds[sanspeed].type = "GAUGE"
ds[sanspeed].minimal_heartbeat = 1200
ds[sanspeed].min = 0.0000000000e+00
ds[sanspeed].max = 1.2000000000e+05
ds[sanspeed].last_ds = "0"
ds[sanspeed].value = 0.0000000000e+00
ds[sanspeed].unknown_sec = 0
ds[wanspeed].index = 2
ds[wanspeed].type = "GAUGE"
ds[wanspeed].minimal_heartbeat = 1200
ds[wanspeed].min = 0.0000000000e+00
ds[wanspeed].max = 1.2000000000e+05
ds[wanspeed].last_ds = "981976"
ds[wanspeed].value = NaN
在这里需要帮助。
此致,
W