Hiya. I'm having trouble with cacti not respecting the upper-limit in graphs. I specifically disable auto-scaling, and I set an upper-limit, yet it still scales to beyond the limit.
Here's an example of a line I'm using:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start="-86400" \
--title="Texas.MoD Player Ping" \
--base=1000 \
--height=150 \
--width=500 \
--upper-limit=200 \
--lower-limit=0 \
--vertical-label="Time (in ms)" \
DEF:a="/usr/local/www/justinmitchell.net/cacti/rra/texas_pub_ping.rrd":avgping:AVERAGE \
DEF:b="/usr/local/www/justinmitchell.net/cacti/rra/texas_pub_ping.rrd":minping:AVERAGE \
AREA:a#002A97:"Average Ping" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Max\:%8.2lf %s" \
GPRINTLAST:"Current\:%8.2lf %s\n" \
AREA:b#F5F800:"Minimum Ping" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Max\:%8.2lf %s" \
GPRINTLAST:"Current\:%8.2lf %s"
And here's the graph:
Shouldn't it cut the image off at 200? Any ideas?
Justin
cacti not respecting upper-limit
Moderators: Developers, Moderators
As the documentation says:
- bulek
So this should solve your problem.Use Rigid Boundaries Mode (--rigid) - From the rrdtool manual "Normally rrdgraph will automatically expand the lower and upper limit if the graph contains a value outside the valid range. With this option you can disable this behavior."
- bulek
Who is online
Users browsing this forum: No registered users and 5 guests