<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div dir="ltr">Thanks Deepak,<br>
<br>
unfortunately that won't help as I need the file with the present
date in its name. I did now:<br>
`ls -tr /home/mypath/log/update_out_*.txt|tail -1` <br>
This workaround helped. But I'm still curious if there is a
solution for first expanding the date and second the whole
expression<br>
`find /home/mypath/log/update_out_$(date +%Y%m%d).txt` (sorry, I
dropped the find in my first posting)<br>
<br>
kind regards<br>
Rolf<br>
<br>
<br>
Looks like your analysis.cfg entry is wrong.Try this.
<div><br>
</div>
<div><span style="font-family:arial,sans-serif;font-size:13px">FILE
/home/mypath/log/update_out_</span><font face="arial,
sans-serif">[0-9]*-[0-9]*-[0-9]*\.txt MTIME<600 red</font><br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Sep 26, 2013 at 1:04 PM, Rolf
Schrittenlocher <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:schritte@ub.uni-frankfurt.de" target="_blank">schritte@ub.uni-frankfurt.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Dear xymon
users,<br>
<br>
I got stuck while trying to monitor a file which should be
updated regularly and which has got a timestamp in its name.<br>
"files" on the server remains clear, no data . Could someone
tell me what is wrong with these settings or what have i
forgotten?<br>
<br>
On the server we have in<br>
analysis.cfg<br>
HOST=myserver<br>
FILE `/home/mypath/log/update_out_$(date +%Y%m%d).txt`
MTIME<600 red<br>
<br>
in client-local.cfg:<br>
[myserver]<br>
file:`find /mypath/log/update_out_$(date +%Y%m%d).txt`<br>
<br>
<br>
I see an entry for this file on the client<br>
in tmp logfetch.myserver.cfg<br>
file:`find /mypath/log/update_out_$(date +%Y%m%d).txt`<br>
<br>
but there is nothing for this file in msg.myserver.txt<br>
<br>
File exists and is readable:<br>
find /home/mypath/log/update_out_$(date +%Y%m%d).txt
-exec ls -l {} \;<br>
-rw-rw-r-- 1 ... 2467070 Sep 26 08:43
/home/mypath/log/update_out_20130926.txt<br>
<br>
In xymonclient.log I see an entry<br>
sh: syntax error at line 1: `(' unexpected<br>
but I don't know if it is related to the file problem or to
anything else.<br>
I know that sh can't deal with $(xy), I tried as well<br>
FILE /home/mypath/log/update_out_`date +%Y%m%d`.txt
MTIME<600 red<br>
but in vain.<br>
<br>
Any help appreciated,<br>
kind regards<br>
Rolf<br>
<br>
<br>
-- <br>
Mit freundlichen Gruessen<br>
Rolf Schrittenlocher<br>
<br>
Lokales Bibliothekssystem Frankfurt<br>
Senckenberganlage 31, 60054 Frankfurt<br>
Tel: (49) 69 - 798 28908 Fax: (49) 69 798 28817<br>
LBS: <a moz-do-not-send="true"
href="mailto:lbs-f@mlist.uni-frankfurt.de" target="_blank">lbs-f@mlist.uni-frankfurt.de</a><br>
Persoenlich: <a moz-do-not-send="true"
href="mailto:schritte@ub.uni-frankfurt.de" target="_blank">schritte@ub.uni-frankfurt.de</a><br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a moz-do-not-send="true" href="mailto:Xymon@xymon.com"
target="_blank">Xymon@xymon.com</a><br>
<a moz-do-not-send="true"
href="http://lists.xymon.com/mailman/listinfo/xymon"
target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote>
</div>
<br>
</div>
</div>
<blockquote
cite="mid:CABpN7iSKJ7XZuxd9-L3xVb5EfXbEbSCVhq5gL5HWox9N1_HY6g@mail.gmail.com"
type="cite">
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Mit freundlichen Gruessen
Rolf Schrittenlocher
Lokales Bibliothekssystem Frankfurt
Senckenberganlage 31, 60054 Frankfurt
Tel: (49) 69 - 798 28908 Fax: (49) 69 798 28817
LBS: <a class="moz-txt-link-abbreviated" href="mailto:lbs-f@mlist.uni-frankfurt.de">lbs-f@mlist.uni-frankfurt.de</a>
Persoenlich: <a class="moz-txt-link-abbreviated" href="mailto:schritte@ub.uni-frankfurt.de">schritte@ub.uni-frankfurt.de</a> </pre>
</body>
</html>