View Single Post
  #1   (View Single Post)  
Old 4th August 2008
beandip beandip is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Default Crontab not working

I am running FreeBSD 6.3 STABLE.

Everything seems to running fine however a while back my cacti scripts stopped working. I just now have had time to look into it and it appears that nothing that I have in my /etc/crontab is executing.
Code:
# ps aux|grep cron
root       1575  0.0  0.1  4720  1380  ??  Is    9:23AM   0:00.07 /usr/sbin/cron -s
root      10357  0.0  0.0   452   364  p0  R+    2:31PM   0:00.00 grep cron
I am not sure where to troubleshoot next. Any advice?

my crontab file has this
Code:
# /etc/crontab - root's crontab for FreeBSD
#
# $FreeBSD: src/etc/crontab,v 1.32 2002/11/22 16:13:39 tom Exp $
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute hour    mday    month   wday    who     command
#
*/5     *       *       *       *       root    /usr/libexec/atrun
#
# Save some entropy so that /dev/random can re-seed on boot.
*/11    *       *       *       *       operator /usr/libexec/save-entropy
#
# Rotate log files every hour, if necessary.
0       *       *       *       *       root    newsyslog
#
# Perform daily/weekly/monthly maintenance.
1       3       *       *       *       root    periodic daily
15      4       *       *       6       root    periodic weekly
30      5       1       *       *       root    periodic monthly
#
# Adjust the time zone if the CMOS clock keeps local time, as opposed to
# UTC time.  See adjkerntz(8) for details.
1,31    0-5     *       *       *       root    adjkerntz -a
*/5     *       *       *       *       cactiuser       /usr/local/bin/php /usr/local/share/cacti/poller.php > /usr/local/share/cacti/log/poller.log 2>&1
02      0       *       *       *       root    /usr/local/etc/awstats/cgi-bin/awstats.pl -update -config=my.intranet.com
*/10    *       *       *       *       root    /usr/local/bin/php /root/cronzweather /usr/local/www/html/joomla
*/5     *       *       *       *       root    /usr/local/libexec/nagios/nagios_stats.pl > /dev/null 2>&1
*/45    *       *       *       *       root    /usr/local/bin/php -f /usr/local/www/html/joomla/components/com_gallery2/cron/g2CronJob.php

Last edited by beandip; 4th August 2008 at 08:37 PM.
Reply With Quote