[Xymon] File monitoring with `date` in filename

deepak deore deepakdeore2004 at gmail.com
Thu Sep 26 11:04:28 CEST 2013


Looks like your analysis.cfg entry is wrong.Try this.

FILE    /home/mypath/log/update_out_[0-9]*-[0-9]*-[0-9]*\.txt MTIME<600 red


On Thu, Sep 26, 2013 at 1:04 PM, Rolf Schrittenlocher <
schritte at ub.uni-frankfurt.de> wrote:

> Dear xymon users,
>
> I got stuck while trying to monitor a file which should be updated
> regularly and which has got a timestamp in its name.
> "files" on the server remains clear, no data . Could someone tell me what
> is wrong with these settings or what have i forgotten?
>
> On the server we have in
> analysis.cfg
> HOST=myserver
>  FILE    `/home/mypath/log/update_out_$**(date +%Y%m%d).txt` MTIME<600 red
>
> in client-local.cfg:
> [myserver]
>   file:`find /mypath/log/update_out_$(date +%Y%m%d).txt`
>
>
> I see an entry for this file on the client
> in tmp logfetch.myserver.cfg
>   file:`find /mypath/log/update_out_$(date +%Y%m%d).txt`
>
> but there is nothing for this file in msg.myserver.txt
>
> File exists and is readable:
>   find /home/mypath/log/update_out_$(**date +%Y%m%d).txt   -exec ls -l {}
> \;
>   -rw-rw-r--   1 ...      2467070 Sep 26 08:43 /home/mypath/log/update_out_
> **20130926.txt
>
> In xymonclient.log I see an entry
> sh: syntax error at line 1: `(' unexpected
> but I don't know if it is related to the file problem or to anything else.
> I know that sh can't deal with $(xy), I tried as well
> FILE    /home/mypath/log/update_out_`**date +%Y%m%d`.txt MTIME<600 red
> but in vain.
>
> Any help appreciated,
> kind regards
> Rolf
>
>
> --
> Mit freundlichen Gruessen
> Rolf Schrittenlocher
>
> Lokales Bibliothekssystem Frankfurt
> Senckenberganlage 31, 60054 Frankfurt
> Tel: (49) 69 - 798 28908   Fax: (49) 69 798 28817
> LBS: lbs-f at mlist.uni-frankfurt.de
> Persoenlich: schritte at ub.uni-frankfurt.de
>
> ______________________________**_________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/**mailman/listinfo/xymon<http://lists.xymon.com/mailman/listinfo/xymon>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130926/3b3513ae/attachment.html>


More information about the Xymon mailing list