Values seem to be incorrect

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

Moderators: Developers, Moderators

Post Reply
Bovril

Values seem to be incorrect

Post by Bovril »

I've installed cacti on my machine, all is well except the line graphs I have set up don't appear to be accurate.

e.g. The (only) value being passed from my script is 2235 however it appears on the graph as 7.5. I suspect i'm being stupid.

The cron output is ...

php /usr/local/httpd/htdocs/cacti/scripts/acton_ivr_stats.php | tail -n 1 2235

My settings are ...

rrdtool Data Source Configuration

/usr/local/rrdtool-1.0.37/bin/rrdtool create \
/usr/local/httpd/htdocs/cacti/rra/ivr_stats.rrd \
--step 300 \
DS:ivr_stats:GAUGE:600:0:10000000 \
RRA:LAST:0.5:1:600 \

Graph Settings

Upper Limit = 0
Lower Limit = 0
Base Value = 1000
Unit_value = NULL
Unit_exponent_value = NULL


The output of the graph is




/usr/local/rrdtool-1.0.37/bin/rrdtool graph - \
--imgformat=GIF \
--start="-86400" \
--title="act-vru-ap" \
--base=1000 \
--height=480 \
--width=640 \
--upper-limit=4000 \
--lower-limit=0 \
--units-exponent=1 \
--vertical-label="" \
DEF:a="/usr/local/httpd/htdocs/cacti/rra/ivr_stats.rrd":ivr_stats:AVERAGE \
LINE1:a#FF0000:""

I'm totally stumped

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

Post by bulek »

This probably does not solve your problem but check Unit Exponent Value. In your port first you mention it is NULL, then on graph output it is displayed as a 1.

- bulek
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Also, I am assuming that executing the following command returns 2235?

Code: Select all

php /usr/local/httpd/htdocs/cacti/scripts/acton_ivr_stats.php | tail -n 1
Otherwise, I do not see why passing '2235' to 'tail' would do anything.

Another way to check what value your script is returning is the check cacti's log at 'log/rrd.log', that way you can see if cacti is even getting the correct value.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests