As an update, after leaving the graph running overnight, it does produce some data, but only sporadically. It appears to be during the slower periods of our forum, so perhaps this is all somehow load related?
Turning on debug mode produced:
Code: Select all
11/18/2005 02:45:30 PM - CACTID: Poller[0] Host[46] DS[848] SCRIPT: /usr/bin/perl /path/to/files/cacti/scripts/phpbb2users.pl, output: guests:244 registered:89
So that appears to be working. Later in the log, I see:
Code: Select all
11/18/2005 02:45:31 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /path/to/files/cacti/rra/dove_guests_848.rrd --template guests:registered 1132325101:244:89
11/18/2005 02:46:21 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1132238780 --end=1132325180 --title="dove - phpBB2 - Users Online" --base=1000 --height=120 --width=750 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2005/11/17 14\:46\:20 To 2005/11/18 14\:46\:20\c" COMMENT:" \n" --vertical-label="Users Online" --slope-mode DEF:a="/path/to/files/cacti/rra/dove_guests_848.rrd":registered:AVERAGE DEF:b="/path/to/files/cacti/rra/dove_guests_848.rrd":guests:AVERAGE CDEF:cdefba=TIME,1132324881,GT,a,a,UN,0,a,IF,IF,TIME,1132324881,GT,b,b,UN,0,b,IF,IF,+ AREA:a#9FA4EE:"Registered" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:MIN:"Minimum\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf\n" AREA:b#FF897C:"Guests":STACK GPRINT:b:LAST:" Current\:%8.0lf" GPRINT:b:MIN:"Minimum\:%8.0lf" GPRINT:b:MAX:"Maximum\:%8.0lf" GPRINT:b:AVERAGE:"Average\:%8.0lf\n" LINE1:cdefba#000000:"Total" GPRINT:cdefba:LAST:" Current\:%8.0lf" GPRINT:cdefba:MIN:"Minimum\:%8.0lf" GPRINT:cdefba:MAX:"Maximum\:%8.0lf" GPRINT:cdefba:AVERAGE:"Average\:%8.0lf\n"
Which I don't know if that's accurate or not...
The wrench shows:
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1132238780 \
--end=1132325180 \
--title="dove - phpBB2 - Users Online" \
--base=1000 \
--height=120 \
--width=750 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2005/11/17 14\:46\:20 To 2005/11/18 14\:46\:20\c" \
COMMENT:" \n" \
--vertical-label="Users Online" \
--slope-mode \
DEF:a="/path/to/files/cacti/rra/dove_guests_848.rrd":registered:AVERAGE \
DEF:b="/path/to/files/cacti/rra/dove_guests_848.rrd":guests:AVERAGE \
CDEF:cdefba=TIME,1132325026,GT,a,a,UN,0,a,IF,IF,TIME,1132325026,GT,b,b,UN,0,b,IF,IF,+ \
AREA:a#9FA4EE:"Registered" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:MIN:"Minimum\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf\n" \
AREA:b#FF897C:"Guests":STACK \
GPRINT:b:LAST:" Current\:%8.0lf" \
GPRINT:b:MIN:"Minimum\:%8.0lf" \
GPRINT:b:MAX:"Maximum\:%8.0lf" \
GPRINT:b:AVERAGE:"Average\:%8.0lf\n" \
LINE1:cdefba#000000:"Total" \
GPRINT:cdefba:LAST:" Current\:%8.0lf" \
GPRINT:cdefba:MIN:"Minimum\:%8.0lf" \
GPRINT:cdefba:MAX:"Maximum\:%8.0lf" \
GPRINT:cdefba:AVERAGE:"Average\:%8.0lf\n"
I don't know enough about RRDTool to make much sense of the above. Any help is appreciated.