I've been trying to get cacti working for a few days now. I've installed it on Fedora 18 and have followed as many debugging steps as I could find in this forum and the documentation.
I've added a device and created graphs. The device shows as up and there is clearly data being gathered when I do a verbose query on the device.
The poller is running every 5 minutes as shown in the cron log:
Mar 7 15:05:01 cacti CROND[1895]: (cactiuser) CMD (php /usr/share/lib/cacti/poller.php > /dev/null 2>&1)
Mar 7 15:10:01 cacti CROND[2062]: (cactiuser) CMD (php /usr/share/lib/cacti/poller.php > /dev/null 2>&1)
Mar 7 15:15:01 cacti CROND[2109]: (cactiuser) CMD (php /usr/share/lib/cacti/poller.php > /dev/null 2>&1)
The cacti.log is set to DEBUG and shows:
03/07/2013 03:37:37 PM - WEBLOG: Poller[0] CACTI2RRD: /bin/rrdtool graph - --imgformat=PNG --start=1362632400 --end=1362718799 --title='Closet #6 - Traffic - Gi4/1/1' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2013/03/07 00\:00\:00 To 2013/03/07 23\:59\:59\c" COMMENT:" \n" --vertical-label='bits per second' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/rra/closet_6_traffic_in_16.rrd":'traffic_in':AVERAGE DEF:b="/usr/share/cacti/rra/closet_6_traffic_in_16.rrd":'traffic_out':AVERAGE CDEF:cdefa='a,8,*' CDEF:cdefe='b,8,*' AREA:cdefa#00CF00FF:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97FF:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
03/07/2013 03:37:37 PM - WEBLOG: Poller[0] CACTI2RRD: /bin/rrdtool graph - --imgformat=PNG --start=1362632400 --end=1362718799 --title='Closet #6 - Traffic - Gi1/1/1' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2013/03/07 00\:00\:00 To 2013/03/07 23\:59\:59\c" COMMENT:" \n" --vertical-label='bits per second' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/rra/closet_6_traffic_in_13.rrd":'traffic_in':AVERAGE DEF:b="/usr/share/cacti/rra/closet_6_traffic_in_13.rrd":'traffic_out':AVERAGE CDEF:cdefa='a,8,*' CDEF:cdefe='b,8,*' AREA:cdefa#00CF00FF:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97FF:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
03/07/2013 03:37:37 PM - WEBLOG: Poller[0] CACTI2RRD: /bin/rrdtool graph - --imgformat=PNG --start=1362632400 --end=1362718799 --title='Closet #6 - Traffic - Gi2/1/1' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2013/03/07 00\:00\:00 To 2013/03/07 23\:59\:59\c" COMMENT:" \n" --vertical-label='bits per second' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/rra/closet_6_traffic_in_14.rrd":'traffic_in':AVERAGE DEF:b="/usr/share/cacti/rra/closet_6_traffic_in_14.rrd":'traffic_out':AVERAGE CDEF:cdefa='a,8,*' CDEF:cdefe='b,8,*' AREA:cdefa#00CF00FF:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97FF:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
03/07/2013 03:37:37 PM - WEBLOG: Poller[0] CACTI2RRD: /bin/rrdtool graph - --imgformat=PNG --start=1362632400 --end=1362718799 --title='Closet #6 - Traffic - Gi3/1/1' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2013/03/07 00\:00\:00 To 2013/03/07 23\:59\:59\c" COMMENT:" \n" --vertical-label='bits per second' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/rra/closet_6_traffic_in_15.rrd":'traffic_in':AVERAGE DEF:b="/usr/share/cacti/rra/closet_6_traffic_in_15.rrd":'traffic_out':AVERAGE CDEF:cdefa='a,8,*' CDEF:cdefe='b,8,*' AREA:cdefa#00CF00FF:"Inbound" GPRINT:cdefa:LAST:" Current\:%8.2lf %s" GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" LINE1:cdefe#002A97FF:"Outbound" GPRINT:cdefe:LAST:"Current\:%8.2lf %s" GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
03/07/2013 03:37:39 PM - WEBLOG: Poller[0] CACTI2RRD: /bin/rrdtool graph - --imgformat=PNG --start=1362632400 --end=1362718799 --title='Localhost - Memory Usage' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2013/03/07 00\:00\:00 To 2013/03/07 23\:59\:59\c" COMMENT:" \n" --vertical-label='kilobytes' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/rra/localhost_mem_buffers_3.rrd":'mem_buffers':AVERAGE DEF:b="/usr/share/cacti/rra/localhost_mem_swap_4.rrd":'mem_swap':AVERAGE AREA:a#FF4105FF:"Free" GPRINTLAST:"Current\:%8.2lf %s" GPRINTAVERAGE:"Average\:%8.2lf %s" GPRINTMAX:"Maximum\:%8.2lf %s\n" AREA:b#FFC73BFF:"Swap":STACK GPRINTLAST:"Current\:%8.2lf %s" GPRINTAVERAGE:"Average\:%8.2lf %s" GPRINTMAX:"Maximum\:%8.2lf %s\n"
03/07/2013 03:37:39 PM - WEBLOG: Poller[0] CACTI2RRD: /bin/rrdtool graph - --imgformat=PNG --start=1362632400 --end=1362718799 --title='Localhost - Logged in Users' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2013/03/07 00\:00\:00 To 2013/03/07 23\:59\:59\c" COMMENT:" \n" --vertical-label='users' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/rra/localhost_users_6.rrd":'users':AVERAGE AREA:a#4668E4FF:"Users" GPRINTLAST:"Current\:%8.0lf" GPRINTAVERAGE:"Average\:%8.0lf" GPRINTMAX:"Maximum\:%8.0lf\n"
03/07/2013 03:37:39 PM - WEBLOG: Poller[0] CACTI2RRD: /bin/rrdtool graph - --imgformat=PNG --start=1362632400 --end=1362718799 --title='Localhost - Processes' --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2013/03/07 00\:00\:00 To 2013/03/07 23\:59\:59\c" COMMENT:" \n" --vertical-label='processes' --slope-mode --font TITLE:10: --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a="/usr/share/cacti/rra/localhost_proc_7.rrd":'proc':AVERAGE AREA:a#F51D30FF:"Running Processes" GPRINTLAST:"Current\:%8.0lf" GPRINTAVERAGE:"Average\:%8.0lf" GPRINTMAX:"Maximum\:%8.0lf\n"
03/07/2013 03:37:39 PM - WEBLOG: Poller[0] CACTI2RRD: /bin/rrdtool graph - --imgformat=PNG --start=1362632400 --end=1362718799 --title='Localhost - Load Average' --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' --units-exponent='0' COMMENT:"From 2013/03/07 00\:00\:00 To 2013/03/07 23\:59\:59\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="/usr/share/cacti/rra/localhost_load_1min_5.rrd":'load_1min':AVERAGE DEF:b="/usr/share/cacti/rra/localhost_load_1min_5.rrd":'load_5min':AVERAGE DEF:c="/usr/share/cacti/rra/localhost_load_1min_5.rrd":'load_15min':AVERAGE CDEF:cdefg='TIME,1362688359,GT,a,a,UN,0,a,IF,IF,TIME,1362688359,GT,b,b,UN,0,b,IF,IF,TIME,1362688359,GT,c,c,UN,0,c,IF,IF,+,+' AREA:a#EACC00FF:"1 Minute Average" GPRINTLAST:" Current\:%8.2lf\n" AREA:b#EA8F00FF:"5 Minute Average":STACK GPRINTLAST:" Current\:%8.2lf\n" AREA:c#FF0000FF:"15 Minute Average":STACK GPRINT:c:LAST:"Current\:%8.2lf\n" LINE1:cdefg#000000FF:""
SELINUX has been set to permissive
The /rra directory is empty
I've tried both SPINE and CMD.PHP
The default 'localhost' graphs are also not created
Unable to view graphs, no RRD files being created
Moderators: Developers, Moderators
Re: Unable to view graphs, no RRD files being created
I've made some progress. I figured out that (per the installation instructions) my entry in the crontab was running as cactiuser, but the scripts it was trying to run were owned by root. When I changed the ownership of:
/etc/cacti/db.php
/usr/share/cacti/poller.php
/usr/share/cacti/include/global.php
to cactiuser, then I can now see red files being created and some graphs appear.
This appears to have fixed the issue, although I don't see much indication of traffic in the graphs. Likely I need to wait a while before the graphs have anything to display.
/etc/cacti/db.php
/usr/share/cacti/poller.php
/usr/share/cacti/include/global.php
to cactiuser, then I can now see red files being created and some graphs appear.
This appears to have fixed the issue, although I don't see much indication of traffic in the graphs. Likely I need to wait a while before the graphs have anything to display.
Who is online
Users browsing this forum: No registered users and 1 guest