Home > OS >  ERROR: eth0. RRD: expected 2 data source readings (got 1) from 1381467942
ERROR: eth0. RRD: expected 2 data source readings (got 1) from 1381467942

Time:10-10

Create the database file command is as follows:
Sudo rrdtool create eth0. RRD \ ~ @ BMC/rrdtool - 1.7.2/XXX
- start $(date - d "now" + % s) \
300 - step \
DS: eth0_in: the GAUGE: 600:00 0:50 \
DS: eth0_out: the GAUGE: 600:00 0:50 \
RRA: business: 0.5:1:6 00 \
RRA: business: 0.5: "00 \
RRA: business: 0.5:75 persuaded \
The RRA: business: 0.5:288-797 \
The RRA: MAX: 0.5:1:6 00 \
RRA: MAX: 0.5: "00 \
RRA: MAX: 0.5:75 persuaded \
The RRA: MAX: 0.5:444-797 \
The RRA: MIN: 0.5:1:6 00 \
The RRA: MIN: 0.5: "00 \
The RRA: MIN: 0.5:75 persuaded \
The RRA: MIN: 0.5:444-797

Update the database, the test script. Sh content is as follows:
Starttime=` ` date + % s
The endtime=` echo "$starttime + 3153" | BC `
While true
Do
Sleep 3
Rrdtool update eth0. RRD starttime: $$endtime RANDOM: $RANDOM
The done

Results:
Sudo./test. Sh ~ @ BMC/rrdtool - 1.7.2/XXX
ERROR: eth0. RRD: expected 2 data source readings (1) got from 1602294963
ERROR: eth0. RRD: expected 2 data source readings (1) got from 1602294963
ERROR: eth0. RRD: expected 2 data source readings (1) got from 1602294963
ERROR: eth0. RRD: expected 2 data source readings (1) got from 1602294963
^ C


Internet information:


Test results:
Sudo rrdtool update eth0. RRD ~ 1381467942-60723022/rrdtool - 1.7.2/XXX @ BMC
ERROR: eth0. RRD: expected 2 data source readings (1) got from 1381467942


Could you tell me this how to solve the problem?

CodePudding user response:

His post, find a solution, here is full, thank the author gausing

https://blog.csdn.net/gausing/article/details/2963595? Utm_medium=distribute. Pc_relevant_bbs_down. None - task - blog - baidujs - 1. Nonecase& Depth_1 - utm_source=distribute. Pc_relevant_bbs_down. None - task - blog - baidujs - 1. Nonecase
  • Related