Crontab issue

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


Please disregard this. Probably a bad idea to run the cacti cron as
root, however the machine is secure. It's simply lan only!! :)

Cheers..

-----Original Message-----
From: ubuntu-server-bounces at lists.ubuntu.com
[mailto:ubuntu-server-bounces at lists.ubuntu.com] On Behalf Of Michael
RISBY
Sent: Tuesday, 23 September 2008 12:04 AM
To: ubuntu-server at lists.ubuntu.com
Subject: Crontab issue

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

-- 
ubuntu-server mailing list
ubuntu-server at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam




More information about the ubuntu-server mailing list