<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
p
{margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif"}
span.E-MailFormatvorlage17
{font-family:"Calibri","sans-serif";
color:windowtext}
span.SpellE
{}
.MsoChpDefault
{}
@page WordSection1
{margin:70.85pt 70.85pt 2.0cm 70.85pt}
div.WordSection1
{}
-->
</style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="">
<div class="WordSection1">
<p class="MsoNormal">Hello out there,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">we are using <span class="SpellE">Xymon</span> 4.3.7 as <span class="SpellE">
xymon</span> server. There is a particular client running <span class="SpellE">Ubuntu</span> 9.04 as operating system and
<span class="SpellE">Xymon</span> 4.3.7 as client, reporting successfully to the <span class="SpellE">
Xymon</span> server.</p>
<p class="MsoNormal">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:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="text-indent:36.0pt"><span style="font-family:"Courier New"">[<span class="SpellE">xymoncheckscript</span>-custom]</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><span style=""> </span>
<span style=""> </span>ENVFILE $XYMONCLIENTHOME/etc/xymonclient.cfg</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><span style="">
</span><span style=""> </span>CMD $XYMONCLIENTHOME/ext/xymoncheckscript-custom.sh</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><span style="">
</span><span style=""> </span>LOGFILE $XYMONCLIENTHOME/logs/ xymoncheckscript-custom.log</span></p>
<p class="MsoNormal"><span style="font-family:"Courier New""><span style="">
</span><span style=""> </span>CRONDATE 0 11 * * *</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">When restarting the <span class="SpellE">xymon</span> services on the client I get the following entry in clientlaunch.log:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-left:36.0pt; text-indent:36.0pt"><span style="font-family:"Courier New"">2012-06-13 10:58:53 Can't parse
<span class="SpellE">cron</span> date: <span class="SpellE">xymoncheckscript</span>-custom->0 11 * * *</span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The man page of tasks.cfg has the section:</p>
<p class="MsoNormal">===============================================================</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> [<span class="SpellE">monthlyreport</span>] <br>
<br>
ENVFILE /<span class="SpellE">usr</span>/local/<span class="SpellE">xymon</span>/server/etc/xymonserver.cfg
<br>
<br>
CMD /<span class="SpellE">usr</span>/local/<span class="SpellE">xymon</span>/server/ext/monthlyreport.sh
<br>
<br>
CRONDATE 30 4 1 * *</p>
<p class="MsoNormal">:</p>
<p class="MsoNormal">:</p>
<p>The <b>CRONDATE</b> 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
<span class="SpellE">cron</span> in <i><a href="http://xymon.mrv.de/xymon/help/manpages/man5/crontab.5.html"><span class="SpellE">crontab</span></a>(5)</i> entries, i.e. a sequence of numbers for minute, hour, day-of-month, month and day-of-week. Three-letter
abbreviations in <span class="SpellE">english</span> 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.
</p>
<p class="MsoNormal">===============================================================</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">For my understanding everything I’ve set up should work, but it doesn’t.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Where’s my fault? I would really like to fire this check-script from clientlaunch.cfg instead of an
<span class="SpellE">crontab</span> entry.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Regards</p>
<p class="MsoNormal">Christian</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="line-height:12.0pt"><b style=""><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black">CHRISTIAN BECKER</span></b></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black">System Engineer</span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black">CSC</span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black"> </span></p>
<p class="MsoNormal" style="line-height:12.0pt"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black">August-Horch-Strasse 28, 56070 Koblenz, Germany</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:"Arial","sans-serif"; color:black">Global Outsourcing Services Central Region<span style="">
</span>|<span style=""> </span>www.csc.com</span><span style="font-family:"Arial","sans-serif""></span></p>
<p class="MsoNormal"> </p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="2"><br>
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<br>
</font>
</body>
</html>