FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 09-22-2008, 02:03 PM
"Michael RISBY"
 
Default 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@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 09-22-2008, 02:19 PM
"Michael RISBY"
 
Default Crontab issue

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@lists.ubuntu.com
[mailto:ubuntu-server-bounces@lists.ubuntu.com] On Behalf Of Michael
RISBY
Sent: Tuesday, 23 September 2008 12:04 AM
To: ubuntu-server@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@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 09-22-2008, 02:28 PM
Kay Abendroth
 
Default Crontab issue

On Mon, 22 Sep 2008 16:03:50 +0200
Michael RISBY <michael.risby@ap.equinix.com> 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
> ubuntu-server@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
> More info: https://wiki.ubuntu.com/ServerTeam

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

Thread Tools




All times are GMT. The time now is 01:09 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org