cacti not respecting upper-limit

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
JustinHoMi
Posts: 17
Joined: Mon Oct 07, 2002 3:42 pm

cacti not respecting upper-limit

Post by JustinHoMi »

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" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Max\:%8.2lf %s" \
GPRINT:a:LAST:"Current\:%8.2lf %s\n" \
AREA:b#F5F800:"Minimum Ping" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Max\:%8.2lf %s" \
GPRINT:b:LAST:"Current\:%8.2lf %s"

And here's the graph:

Image

Shouldn't it cut the image off at 200? Any ideas?

Justin
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

As the documentation says:
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."
So this should solve your problem.

- bulek
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests