[Xymon] tasks.cfg - strange CRONDATE behaviour

Andy Smith abs at shadymint.com
Mon Jun 2 14:00:53 CEST 2014


Hi,

Can anyone else confirm this.  I have in tasks.cfg, something like so :-

[xxx_refresh]
        ENVFILE /apps/xymon/server/etc/xymonserver.cfg
        CMD /apps/scripts/xxx_refresh.sh
        LOGFILE $XYMONSERVERLOGS/xxx_refresh.log
        CRONDATE 15 8-18 * * 1-5

What I deduce by adding echo statements to xxx_refresh.sh, is that if this
shell script completes in less than 60 seconds, xymonlaunch runs it a
second time :-

grep Running xxx_refresh.log
Running as pid 10044 at Mon Jun  2 08:15:03 BST 2014
Running as pid 29168 at Mon Jun  2 09:15:04 BST 2014
Running as pid 15931 at Mon Jun  2 10:15:03 BST 2014
Running as pid 17089 at Mon Jun  2 10:15:59 BST 2014
Running as pid 2805 at Mon Jun  2 11:15:02 BST 2014
Running as pid 4021 at Mon Jun  2 11:15:59 BST 2014
Running as pid 22545 at Mon Jun  2 12:15:00 BST 2014
Running as pid 23730 at Mon Jun  2 12:15:57 BST 2014

I have added a (redundant?) INTERVAL keyword, I have also played around
with GROUP, but i cant stop it running twice.  Presumably adding a sleep at
the end of the script would be a workaround, I'll try that next.
-- 
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20140602/73d08629/attachment.html>


More information about the Xymon mailing list