Crontab issue

Michael RISBY michael.risby at ap.equinix.com
Mon Sep 22 14:03:50 UTC 2008


Hi All,

I have a slight issue with regards to a crontab & cacti. I'm relatively
novice with regards to linux but I can work my head around it pretty
well, and I'd like to consider myself half knowledgeable but i've struck
a dead end and not sure what other troubleshooting I am able to do.

Below is my current /etc/crontab

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

17 *	* * *	root    cd / && run-parts --report /etc/cron.hourly
25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.daily )
47 6	* * 7	root	test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.weekly )
52 6	1 * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts
--report /etc/cron.monthly )
* /5 * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null
2>/var/log/cacti/poller-error.log
* /5 * * * * root ls -al /home/risbo/public_html/ >
/var/log/testingcron.log

Before this, the first 'non-default' crontab was located in /etc/cron.d/
under the file 'cacti'. The second cron is purely testing that cron is
actually working which in fact it is since it generates the log. When I
execute the php via CLI, cacti poll's the said devices and it works fine
however it's just not budging when done via a cron. Is there any other
server side testing I can do or would it appear to be a issue where I
would have to talk to the cacti developers about?

Additional thing to note is that early today the machine was powered
down for 2 hours, which on power restoration it just simply stopped
graphing.

Appreciate any help!

Cheers,

Michael




More information about the ubuntu-server mailing list