[ZendTo] Re: illegal attempt to update using time #######
Brad Beckenhauer
bbecken at aafp.org
Fri Aug 27 19:23:39 BST 2010
Hi Julian
I'm running the Zendto-Centos-64-3.61 VM and noticed that there are two cron jobs. I re-installed Zendto 3.61 this morning and before making any changes, I verified that both cron jobs are in the default vm image.
There are the two cron jobs.
a) /etc/cron.d/zendto
5 0 * * * root /usr/bin/php /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php
2 10 * * * root /usr/bin/php /opt/zendto/sbin/rrdInit.php /opt/zendto/config/preferences.php
2 12 * * * root /usr/bin/php /opt/zendto/sbin/rrdUpdate.php /opt/zendto/config/preferences.php
b) /var/spool/cron/root
5 0 * * * /usr/bin/php /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php
2 0 * * * /usr/bin/php /opt/zendto/sbin/rrdInit.php /opt/zendto/config/preferences.php ; /usr/bin/php /opt/zendto/sbin/rrdUpdate.php /opt/zendto/config/preferences.php
Since the cron job in Option A is the preferred one, the cron job for the root user (b) should be removed from default download image.
thanks
Brad
>>> On 8/6/2010 at 7:49 AM, in message <4C5C04ED.3040303 at ZendTo.com>, Jules <Jules at zendto.com> wrote:
It happens when you call the 2 rrd scripts too close to each other.
Your root crontab should say this, so they stay well apart from each other (they were on the same command-line in earlier releases by mistake):
5 0 * * * root /usr/bin/php /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php
2 10 * * * root /usr/bin/php /opt/zendto/sbin/rrdInit.php /opt/zendto/config/preferences.php
2 12 * * * root /usr/bin/php /opt/zendto/sbin/rrdUpdate.php /opt/zendto/config/preferences.php
Jules.
On 06/08/2010 13:25, Gavin Silver wrote:
whats this business? i truncated a lot as it all looks pretty similar
----
/usr/bin/rrdtool update /var/zendto/rrd/zendto.rrd 1280275200:1:1:6774.8
ERROR: /var/zendto/rrd/zendto.rrd: illegal attempt to update using time 1280275200 when last update time is 1280966400 (minimum one second step)
11,12,13
/usr/bin/rrdtool update /var/zendto/rrd/zendto.rrd 1280361600:3:3:9512.0
ERROR: /var/zendto/rrd/zendto.rrd: illegal attempt to update using time 1280361600 when last update time is 1280966400 (minimum one second step)
14,15,16
/usr/bin/rrdtool update /var/zendto/rrd/zendto.rrd 1280793600:3:1:11.0
------
_______________________________________________
ZendTo mailing listZendTo at zendto.comhttp://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto
Jules
--
Julian Field MEng CITP CEngwww.ZendTo.com
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20100827/318ca897/attachment.html
More information about the ZendTo
mailing list