Cacti Stopped Logging...

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
tsolaaa
Posts: 4
Joined: Tue Dec 16, 2014 5:37 am

Cacti Stopped Logging...

Post by tsolaaa »

Hi Guys,

I am running CentOS 6.6, MySQL 5.1.73, Cacti 0.8.8b - All fresh install, no upgrading.

php.ini file is set at 128MB.

The box was running fine but I stupidly left debug on when I was troubleshooting a problem and the box filled up last night.

I cleared the log file and restored the missing space and did a restart but none of the graphs were graphing.

I ran:

rebuild_poller_cache
repair_database
repair_templates

restarted and started to enable each graph one by one to see what could be causing the issue.

The weird thing is that the logs don't seem complete.

Regardless of which log setting I put in the settings in the Cacti GUI, it still spits out the same-ish information when the poller runs every five minutes.

I am looking for an example of what I used to see with Debug on but for example, I used to see text that would tell me that the polling finished successfully. (This is how I was able to track down which graph was causing the poller to hang)

On the debug level, I used to get way more information than what is shown.

Right now I have one device enabled (it is graphing successfully) and here is all the output from one poll.

Code: Select all

01/09/2015 12:15:43 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start='1420715742'  --end='1420802142'  --title='NAS02 - CPU Utilization - CPU0'  --rigid  --base='1000'  --height='120'  --width='500'  --alt-autoscale-max  --lower-limit='0'  COMMENT:"From 2015/01/08 12\:15\:42 To 2015/01/09 12\:15\:42\c"  COMMENT:"  \n"  --vertical-label='percent'  --slope-mode  --font TITLE:10:  --font AXIS:7:  --font LEGEND:8:  --font UNIT:7:  DEF:a='/usr/share/cacti/rra/nas02_cpu_273.rrd':'cpu':AVERAGE  AREA:a#FF0000FF:'CPU Utilization'   GPRINT:a:LAST:'Current\:%8.0lf'   GPRINT:a:AVERAGE:'Average\:%8.0lf'   GPRINT:a:MAX:'Maximum\:%8.0lf\n' 
01/09/2015 12:15:43 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start='1420715742'  --end='1420802142'  --title='NAS02 - CPU Utilization - CPU1'  --rigid  --base='1000'  --height='120'  --width='500'  --alt-autoscale-max  --lower-limit='0'  COMMENT:"From 2015/01/08 12\:15\:42 To 2015/01/09 12\:15\:42\c"  COMMENT:"  \n"  --vertical-label='percent'  --slope-mode  --font TITLE:10:  --font AXIS:7:  --font LEGEND:8:  --font UNIT:7:  DEF:a='/usr/share/cacti/rra/nas02_cpu_274.rrd':'cpu':AVERAGE  AREA:a#FF0000FF:'CPU Utilization'   GPRINT:a:LAST:'Current\:%8.0lf'   GPRINT:a:AVERAGE:'Average\:%8.0lf'   GPRINT:a:MAX:'Maximum\:%8.0lf\n' 
01/09/2015 12:15:43 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start='1420715742'  --end='1420802142'  --title='NAS02 - CPU Utilization - CPU2'  --rigid  --base='1000'  --height='120'  --width='500'  --alt-autoscale-max  --lower-limit='0'  COMMENT:"From 2015/01/08 12\:15\:42 To 2015/01/09 12\:15\:42\c"  COMMENT:"  \n"  --vertical-label='percent'  --slope-mode  --font TITLE:10:  --font AXIS:7:  --font LEGEND:8:  --font UNIT:7:  DEF:a='/usr/share/cacti/rra/nas02_cpu_275.rrd':'cpu':AVERAGE  AREA:a#FF0000FF:'CPU Utilization'   GPRINT:a:LAST:'Current\:%8.0lf'   GPRINT:a:AVERAGE:'Average\:%8.0lf'   GPRINT:a:MAX:'Maximum\:%8.0lf\n' 
01/09/2015 12:15:43 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start='1420715742'  --end='1420802142'  --title='NAS02 - CPU Utilization - CPU3'  --rigid  --base='1000'  --height='120'  --width='500'  --alt-autoscale-max  --lower-limit='0'  COMMENT:"From 2015/01/08 12\:15\:42 To 2015/01/09 12\:15\:42\c"  COMMENT:"  \n"  --vertical-label='percent'  --slope-mode  --font TITLE:10:  --font AXIS:7:  --font LEGEND:8:  --font UNIT:7:  DEF:a='/usr/share/cacti/rra/nas02_cpu_276.rrd':'cpu':AVERAGE  AREA:a#FF0000FF:'CPU Utilization'   GPRINT:a:LAST:'Current\:%8.0lf'   GPRINT:a:AVERAGE:'Average\:%8.0lf'   GPRINT:a:MAX:'Maximum\:%8.0lf\n' 
01/09/2015 12:15:43 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start='1420715742'  --end='1420802142'  --title='NAS02 - Processes'  --base='1000'  --height='120'  --width='500'  --alt-autoscale-max  --lower-limit='0'  COMMENT:"From 2015/01/08 12\:15\:42 To 2015/01/09 12\:15\:42\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/nas02_proc_263.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' 
01/09/2015 12:15:43 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start='1420715742'  --end='1420802142'  --title='NAS02 - Logged in Users'  --rigid  --base='1000'  --height='120'  --width='500'  --alt-autoscale-max  --lower-limit='0'  COMMENT:"From 2015/01/08 12\:15\:42 To 2015/01/09 12\:15\:42\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/nas02_users_262.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' 
01/09/2015 12:15:43 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start='1420715742'  --end='1420802142'  --title='NAS02 - Traffic - eth0'  --rigid  --base='1000'  --height='120'  --width='500'  --alt-autoscale-max  --lower-limit='0'  COMMENT:"From 2015/01/08 12\:15\:42 To 2015/01/09 12\:15\:42\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/nas02_traffic_in_279.rrd':'traffic_in':AVERAGE  DEF:b='/usr/share/cacti/rra/nas02_traffic_in_279.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' 
01/09/2015 12:15:43 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start='1420715742'  --end='1420802142'  --title='NAS02 - Traffic - eth1'  --rigid  --base='1000'  --height='120'  --width='500'  --alt-autoscale-max  --lower-limit='0'  COMMENT:"From 2015/01/08 12\:15\:42 To 2015/01/09 12\:15\:42\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/nas02_traffic_in_278.rrd':'traffic_in':AVERAGE  DEF:b='/usr/share/cacti/rra/nas02_traffic_in_278.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' 
01/09/2015 12:15:43 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start='1420715742'  --end='1420802142'  --title='NAS02 - Traffic - lo'  --rigid  --base='1000'  --height='120'  --width='500'  --alt-autoscale-max  --lower-limit='0'  COMMENT:"From 2015/01/08 12\:15\:42 To 2015/01/09 12\:15\:42\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/nas02_traffic_in_277.rrd':'traffic_in':AVERAGE  DEF:b='/usr/share/cacti/rra/nas02_traffic_in_277.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' 
01/09/2015 12:15:44 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/bin/rrdtool graph -  --imgformat=PNG  --start='1420715742'  --end='1420802142'  --title='NAS02 - Used Space - /mnt/ext'  --rigid  --base='1024'  --height='120'  --width='500'  --alt-autoscale-max  --lower-limit='0'  COMMENT:"From 2015/01/08 12\:15\:42 To 2015/01/09 12\:15\:42\c"  COMMENT:"  \n"  --vertical-label='bytes'  --slope-mode  --font TITLE:10:  --font AXIS:7:  --font LEGEND:8:  --font UNIT:7:  DEF:a='/usr/share/cacti/rra/nas02_hdd_used_270.rrd':'hdd_total':AVERAGE  DEF:b='/usr/share/cacti/rra/nas02_hdd_used_270.rrd':'hdd_used':AVERAGE  AREA:a#002A97FF:'Total'   GPRINT:a:LAST:'Current\:%8.2lf %s'   GPRINT:a:AVERAGE:'Average\:%8.2lf %s'   GPRINT:a:MAX:'Maximum\:%8.2lf %s\n'   AREA:b#F51D30FF:'Used'   GPRINT:b:LAST:' Current\:%8.2lf %s'   GPRINT:b:AVERAGE:'Average\:%8.2lf %s'   GPRINT:b:MAX:'Maximum\:%8.2lf %s\n' 
Since there doesn't seem to be proper logging, I can't start troubleshooting the graphing problems.

Any ideas?
tsolaaa
Posts: 4
Joined: Tue Dec 16, 2014 5:37 am

Re: Cacti Stopped Logging...

Post by tsolaaa »

Looks like I was able to get Cacti to start logging again by reinstalling.

I used YUM originally.

Code: Select all

rpm -e --justdb --nodeps cacti
yum install cacti
Did a quick restart and all seemed fine again.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest