Xymon Mailing List Archive search

clientlaunch.cfg: CRONDATE problem / error?

list Becker Christian
Thu, 14 Jun 2012 07:13:34 +0000
Message-Id: <E6B86B09BF9C1E43B3CB4A78CC1BA7B639CE054D@w2k8-ex-mb-1>

Hello,

Thank you for this information.

Unfortunately I don't know how to apply a patch or to re-compile xymonlaunch - can you point me to the right way to do this?

Best regards
Christian


CHRISTIAN BECKER
System Engineer
CSC

August-Horch-Strasse 28, 56070 Koblenz, Germany
Global Outsourcing Services Central Region  | www.csc.com

-----Ursprüngliche Nachricht-----
Von: user-87556346d4af@xymon.invalid [mailto:user-87556346d4af@xymon.invalid]
Gesendet: Mittwoch, 13. Juni 2012 19:14
An: Becker Christian
Cc: xymon at xymon.com
Betreff: Re: [Xymon] clientlaunch.cfg: CRONDATE problem / error?

This is fixed in trunk and the 4.3.7 branch, but isn't in the tarball.

http://xymon.svn.sourceforge.net/viewvc/xymon?view=revision&revision=6906
http://xymon.svn.sourceforge.net/viewvc/xymon?view=revision&revision=6899


This specific patch should fix it:
http://xymon.svn.sourceforge.net/viewvc/xymon/trunk/common/xymonlaunch.c?r1=6906&r2=6905&view=patch&sortby=rev&sortdir=down&pathrev=6906

-jc

Hello out there,

we are using Xymon 4.3.7 as xymon server. There is a particular client
running Ubuntu 9.04 as operating system and Xymon 4.3.7 as client,
reporting successfully to the Xymon server.
I have been in the need to write a script that is running on a fixed time
of a day. Therefore I configured the script in the clientlaunch.cfg on the
client as follows:

[xymoncheckscript-custom]
           ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg
           CMD $XYMONCLIENTHOME/ext/xymoncheckscript-custom.sh
           LOGFILE $XYMONCLIENTHOME/logs/ xymoncheckscript-custom.log
           CRONDATE 0 11 * * *

When restarting the xymon services on the client I get the following entry
in clientlaunch.log:

2012-06-13 10:58:53 Can't parse cron date: xymoncheckscript-custom->0 11 *
* *

The man page of tasks.cfg has the section:
===============================================================

 [monthlyreport]

          ENVFILE /usr/local/xymon/server/etc/xymonserver.cfg

          CMD /usr/local/xymon/server/ext/monthlyreport.sh

          CRONDATE 30 4 1 * *
:
:

The CRONDATE keyword is used for tasks that must run at regular intervals
or at a specific time. The time specification is identical to the one used
by cron in
crontab<http://xymon.mrv.de/xymon/help/manpages/man5/crontab.5.html>;(5)
entries, i.e. a sequence of numbers for minute, hour, day-of-month, month
and day-of-week. Three-letter abbreviations in english can be used for the
month and day-of-week fields. An asterisk is a wildcard. So in the example
above, this job would run once a month, at 4:30 AM on the 1st day of the
month.
===============================================================

For my understanding everything I've set up should work, but it doesn't.

Where's my fault? I would really like to fire this check-script from
clientlaunch.cfg instead of an crontab entry.

Regards
Christian


CHRISTIAN BECKER
System Engineer
CSC

August-Horch-Strasse 28, 56070 Koblenz, Germany
Global Outsourcing Services Central Region  |  www.csc.com


CSC * This is a PRIVATE message. If you are not the intended recipient,
please delete without copying and kindly advise us by e-mail of the
mistake in delivery. NOTE: Regardless of content, this e-mail shall not
operate to bind CSC to any order or other contract unless pursuant to
explicit written agreement or government initiative expressly permitting
the use of e-mail for such purpose * CSC Deutschland Services GmbH *
Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany *
Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt *
Registered in Germany: HRB 7574, Wiesbaden

CSC • This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose • CSC Deutschland Services GmbH • Registered Office: Abraham-Lincoln-Park 1, 65189 Wiesbaden, Germany • Board of Directors: Gerhard Fercho (Chairman),Thomas Nebe, Peter Schmidt • Registered in Germany: HRB 7574, Wiesbaden