[Check_mk (english)] Problem with text logfiles (linux) rule

Marcel Schulte schulte.marcel at gmail.com
Fri Jul 15 17:43:34 CEST 2016


Hi Radoslaw,

the baklet (agent bakery module) does not support (i)regex yet.

Till now nobody else asked for it but feel free to be the first one ;)

Regards,
Marcel

Radosław Bąk <radoslaw.bak at ipopema.pl> schrieb am Fr., 15. Juli 2016 um
16:14 Uhr:

> Hi All,
>
> How to use below configuration from /etc/check_mk/logwatch.cfg in to Agent
> Backery Rule -> Text logfiles (Linux) ?
> ...
> /opt/test/logs/*.log iregex=/[A-Z]+\.log$
>  C CRITICAL
> ...
>
> When i try copy this line to logfiles rule in "Agent Backery" I have an
> error: "File patterns must begin with / and must not contain spaces."
>
> This should read all logs names with letters but without numbers for
> example:
> Should read those:
> /opt/test/logs/test.log
> /opt/test/logs/ttt.log
> /opt/test/logs/ddd.log
> /opt/test/logs/fff*.log
> but shouldn't read those:
> /opt/test/logs/test1.log
> /opt/test/logs/ddd_20160715.log
> /opt/test/logs/ddd-3.log
>
> Pozdrawiam,
> Radosław Bąk
> _______________________________________________
> checkmk-en mailing list
> checkmk-en at lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/checkmk-en/attachments/20160715/38cbbb74/attachment.html>


More information about the checkmk-en mailing list