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 ???
Values seem to be incorrect
Moderators: Developers, Moderators
Also, I am assuming that executing the following command returns 2235?
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
Code: Select all
php /usr/local/httpd/htdocs/cacti/scripts/acton_ivr_stats.php | tail -n 1
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
Who is online
Users browsing this forum: No registered users and 4 guests