Cacti is version 0.8.7i, the poller I'm using is spine.
I'm trying to use the following templates: http://forums.cacti.net/about26458.html
Those perl scripts work from the commandline so the server reports its data and the scripts are correct, but it seems I'm still missing something to make them work in Cacti.
What I do have noticed is that they don't have their own rrd's being generated/filled, so I guess it can't collect data at all then.
Another error I've noticed is that in the Debug Mode of the Graphs Management it states the following:
For the Client statistics:
Code: Select all
[b]RRDTool Command:[/b]
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Localhost - Nginx Clients Stat' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
LINE1:#005D57FF:"Active" \
GPRINT::LAST:" Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Max\:%8.2lf %s\n" \
LINE1:#4444FFFF:"Reading" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Max\:%8.2lf %s\n" \
LINE1:#F24AC8FF:"Waiting" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Max\:%8.2lf %s\n" \
LINE1:#00CF00FF:"Writing" \
GPRINT::LAST:"Current\:%8.2lf %s" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Max\:%8.2lf %s"
[b]RRDTool Says:[/b]
ERROR: parameter '#005D57FF' does not represent a number in line LINE1:#005D57FF:Active
Code: Select all
[b]RRDTool Command:[/b]
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Localhost - Nginx Sockets Stat' \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
LINE1:#008A6DFF:"Accepts" \
GPRINT::LAST:" Current\:%8.0lf" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Max\:%8.2lf %s\n" \
LINE1:#0000FFFF:"Handled" \
GPRINT::LAST:" Current\:%8.0lf" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Max\:%8.2lf %s\n" \
LINE1:#6EA100FF:"Requests" \
GPRINT::LAST:"Current\:%8.0lf" \
GPRINT::AVERAGE:"Average\:%8.2lf %s" \
GPRINT::MAX:"Max\:%8.2lf %s"
[b]RRDTool Says:[/b]
ERROR: parameter '#008A6DFF' does not represent a number in line LINE1:#008A6DFF:Accepts
Code: Select all
02/11/2013 04:30:52 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1360510252 --end=1360596652 --title='Localhost - Load Average' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --units-exponent='0' COMMENT:"From 2013/02/10 16\:30\:52 To 2013/02/11 16\:30\:52\c" COMMENT:" \n" --vertical-label='processes in the run queue' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/lib/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE DEF:b="/var/lib/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE DEF:c="/var/lib/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE CDEF:cdefg=TIME,1360596352,GT,a,a,UN,0,a,IF,IF,TIME,1360596352,GT,b,b,UN,0,b,IF,IF,TIME,1360596352,GT,c,c,UN,0,c,IF,IF,+,+ AREA:a#EACC00FF:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n" AREA:b#EA8F00FF:"5 Minute Average":STACK GPRINT:b:LAST:" Current\:%8.2lf\n" AREA:c#FF0000FF:"15 Minute Average":STACK GPRINT:c:LAST:"Current\:%8.2lf\n" LINE1:cdefg#000000FF:""
02/11/2013 04:30:52 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1360510252 --end=1360596652 --title='Localhost - Logged in Users' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2013/02/10 16\:30\:52 To 2013/02/11 16\:30\:52\c" COMMENT:" \n" --vertical-label='users' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/lib/cacti/rra/localhost_users_6.rrd":users:AVERAGE AREA:a#4668E4FF:"Users" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf\n"
02/11/2013 04:30:52 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1360510252 --end=1360596652 --title='Localhost - Processes' --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2013/02/10 16\:30\:52 To 2013/02/11 16\:30\:52\c" COMMENT:" \n" --vertical-label='processes' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/lib/cacti/rra/localhost_proc_7.rrd":proc:AVERAGE AREA:a#F51D30FF:"Running Processes" GPRINT:a:LAST:"Current\:%8.0lf" GPRINT:a:AVERAGE:"Average\:%8.0lf" GPRINT:a:MAX:"Maximum\:%8.0lf\n"
02/11/2013 04:30:52 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1360510252 --end=1360596652 --title='Localhost - Nginx Clients Stat' --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2013/02/10 16\:30\:52 To 2013/02/11 16\:30\:52\c" COMMENT:" \n" --vertical-label='' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: LINE1:#005D57FF:"Active" GPRINT::LAST:" Current\:%8.2lf %s" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Max\:%8.2lf %s\n" LINE1:#4444FFFF:"Reading" GPRINT::LAST:"Current\:%8.2lf %s" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Max\:%8.2lf %s\n" LINE1:#F24AC8FF:"Waiting" GPRINT::LAST:"Current\:%8.2lf %s" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Max\:%8.2lf %s\n" LINE1:#00CF00FF:"Writing" GPRINT::LAST:"Current\:%8.2lf %s" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Max\:%8.2lf %s"
02/11/2013 04:30:52 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1360510252 --end=1360596652 --title='Localhost - Nginx Sockets Stat' --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2013/02/10 16\:30\:52 To 2013/02/11 16\:30\:52\c" COMMENT:" \n" --vertical-label='' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: LINE1:#008A6DFF:"Accepts" GPRINT::LAST:" Current\:%8.0lf" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Max\:%8.2lf %s\n" LINE1:#0000FFFF:"Handled" GPRINT::LAST:" Current\:%8.0lf" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Max\:%8.2lf %s\n" LINE1:#6EA100FF:"Requests" GPRINT::LAST:"Current\:%8.0lf" GPRINT::AVERAGE:"Average\:%8.2lf %s" GPRINT::MAX:"Max\:%8.2lf %s"
02/11/2013 04:30:52 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph - --imgformat=PNG --start=1360510252 --end=1360596652 --title='Localhost - Memory Usage' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 COMMENT:"From 2013/02/10 16\:30\:52 To 2013/02/11 16\:30\:52\c" COMMENT:" \n" --vertical-label='kilobytes' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/var/lib/cacti/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE DEF:b="/var/lib/cacti/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE AREA:a#FF4105FF:"Free" GPRINT:a:LAST:"Current\:%8.2lf %s" GPRINT:a:AVERAGE:"Average\:%8.2lf %s" GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" AREA:b#FFC73BFF:"Swap":STACK GPRINT:b:LAST:"Current\:%8.2lf %s" GPRINT:b:AVERAGE:"Average\:%8.2lf %s" GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"02/11/2013 04:30:01 PM - SYSTEM STATS: Time:0.3121 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
02/11/2013 04:30:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers 1360596601:174512
02/11/2013 04:30:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap 1360596601:530108
02/11/2013 04:30:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/localhost_load_1min_5.rrd --template load_1min:load_5min:load_15min 1360596601:0.00:0.01:0.05
02/11/2013 04:30:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/localhost_users_6.rrd --template users 1360596601:1
02/11/2013 04:30:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/localhost_proc_7.rrd --template proc 1360596601:95
02/11/2013 04:30:01 PM - POLLER: Poller[0] Parsed MULTI output field '10min:0.05' [map 10min->load_15min]
02/11/2013 04:30:01 PM - POLLER: Poller[0] Parsed MULTI output field '5min:0.01' [map 5min->load_5min]
02/11/2013 04:30:01 PM - POLLER: Poller[0] Parsed MULTI output field '1min:0.00' [map 1min->load_1min]
02/11/2013 04:30:01 PM - SPINE: Poller[0] Time: 0.2937 s, Threads: 1, Hosts: 2
What am I missing here? If any other information is required, feel free to say so!
Solution: An analogy to this http://bugs.cacti.net/view.php?id=1265, in short, the DEF statements aren't created through the "Add" dialog, I had to create them through Device > Localhost > Create Graphs for this device