On Mon, 22 Sep 2008 16:03:50 +0200 Michael RISBY <[EMAIL PROTECTED]> wrote:
> 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 Hi Michael, the last two entries don't work, because you have - most likely by accident - too many columns in it. Just remove on star in each line and it should work. Kind regards, Kay > 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 > [email protected] > https://lists.ubuntu.com/mailman/listinfo/ubuntu-server > More info: https://wiki.ubuntu.com/ServerTeam -- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
