Code: Select all
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Ping Latencies" \
--base=1000 \
--height=120 \
--width=800 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/hosts_ping.rrd":ping_mail_ru:MAX \
DEF:b="/var/lib/cacti/rra/hosts_ping.rrd":ping_orangle_nl:MAX \
DEF:c="/var/lib/cacti/rra/hosts_ping.rrd":ping_rapidshare_com:MAX \
LINE2:#0000FFFF:"mail.ru" \
GPRINT:a:LAST:" Last\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:a:MAX:"Max\:%8.2lf %s\n" \
LINE2:#FF0000FF:"orange.nl" \
GPRINT:b:LAST:" Last\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:b:MAX:"Max\:%8.2lf %s\n" \
LINE2:#00FF00FF:"rapidshare.com" \
GPRINT:c:LAST:"Last\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Avg\:%8.2lf %s" \
GPRINT:c:MAX:"Max\:%8.2lf %s\n"
RRDTool Says:
ERROR: parameter '#0000FFFF' does not represent a number in line LINE2:#0000FFFF:mail.ru
Code: Select all
LINE2:a#0000FFFF:"mail.ru" \
LINE2:b#FF0000FF:"orange.nl" \
LINE2:c#00FF00FF:"rapidshare.com" \
I've found similar cases here and here. The advice to remove and add Data Sources is not perfect, and I have already removed and created new graph.
Additional information:
Cacti Version: 0.8.7b
Cacti OS: unix
RRDTool Version: RRDTool 1.2.x