[Check_mk (english)] log file path

Hi Guru’s,

I am attempting to monitor log files on a Linux host which seems to work if I include the entire path. I have about 20 lines, one for each log file. I am adding them daily.

/opt/tibco/bw/6.2/domains/TIBCO-US-LM-01/appnodes/CorporateEmailTrackAppspace/CorporateEmailTrackAppnode-1/log/bwappnode.log

/opt/tibco/bw/6.2/domains/TIBCO-US-LM-01/appnodes/DataAgentDBTimerAppSpace/DataAgentDBTimerAppNode-1/log/bwappnode.log

/opt/tibco/bw/6.2/domains/TIBCO-US-LM-01/appnodes/EnrichmentProcessAppspace/EnrichmentProcessAppnode-1/log/bwappnode.log

What I would rather have is something similar to what is listed here. In section 2.6

https://mathias-kettner.de/checkmk_logfiles.html#Logwatch%20on%20Linux%20and%20UNIX

Every time we deploy a new application I have to manually change the logwatch.cfg file. I want to have all log files in the path included without a manual change.

Here is what I have, am I even close?

/opt/tibco/bw/6.2/domains/.log regex=/[a-z]+[A-Z]+[0-9]-.log$

Thanks, Greg

Hi Greg,

I don’t use this myself but maybe the path is not searched recursively. At least your regex matches this:

one or more lower letters, followed by one or more upper letters, followed by one digit, followed by no or more dashes, followed by any character, ending in “log”

If the provided path is searched recursively (I don’t think so) your regex should be this:

/opt/tibco/bw/6.2/domains/*.log regex=/[A-Z0-9-]+/appnodes/[A-Za-z]+/[A-Za-z]±[0-9]/log/bwappnode.log$

If I’m right and it’s not recursive you could try one of these:

/opt/tibco/bw/6.2/domains//appnodes//*/log/bwappnode.log

/opt/tibco/bw/6.2/domains/////*/bwappnode.log regex=/[A-Z0-9-]+/[a-z]+/[A-Za-z]+/[A-Za-z]±[0-9]/log/bwappnode.log$

Of course, you can also use another regex. Just play with it until you have “your” solution.

HTH,
Marcel

Hi Guru’s,

I am attempting to monitor log files on a Linux host which seems to work if I include the entire path. I have about 20 lines, one for each log file. I am adding them daily.

/opt/tibco/bw/6.2/domains/TIBCO-US-LM-01/appnodes/CorporateEmailTrackAppspace/CorporateEmailTrackAppnode-1/log/bwappnode.log

/opt/tibco/bw/6.2/domains/TIBCO-US-LM-01/appnodes/DataAgentDBTimerAppSpace/DataAgentDBTimerAppNode-1/log/bwappnode.log

/opt/tibco/bw/6.2/domains/TIBCO-US-LM-01/appnodes/EnrichmentProcessAppspace/EnrichmentProcessAppnode-1/log/bwappnode.log

What I would rather have is something similar to what is listed here. In section 2.6

https://mathias-kettner.de/checkmk_logfiles.html#Logwatch%20on%20Linux%20and%20UNIX

Every time we deploy a new application I have to manually change the logwatch.cfg file. I want to have all log files in the path included without a manual change.

Here is what I have, am I even close?

/opt/tibco/bw/6.2/domains/.log regex=/[a-z]+[A-Z]+[0-9]-.log$

Thanks, Greg

···

checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi Marcel,

This one worked perfectly.

/opt/tibco/bw/6.2/domains//appnodes//*/log/bwappnode.log

Thanks, Greg

···

Hi Guru’s,

I am attempting to monitor log files on a Linux host which seems to work if I include the entire path. I have about 20 lines, one for each log file. I am adding them daily.

/opt/tibco/bw/6.2/domains/TIBCO-US-LM-01/appnodes/CorporateEmailTrackAppspace/CorporateEmailTrackAppnode-1/log/bwappnode.log

/opt/tibco/bw/6.2/domains/TIBCO-US-LM-01/appnodes/DataAgentDBTimerAppSpace/DataAgentDBTimerAppNode-1/log/bwappnode.log

/opt/tibco/bw/6.2/domains/TIBCO-US-LM-01/appnodes/EnrichmentProcessAppspace/EnrichmentProcessAppnode-1/log/bwappnode.log

What I would rather have is something similar to what is listed here. In section 2.6

https://mathias-kettner.de/checkmk_logfiles.html#Logwatch%20on%20Linux%20and%20UNIX

Every time we deploy a new application I have to manually change the logwatch.cfg file. I want to have all log files in the path included without a manual change.

Here is what I have, am I even close?

/opt/tibco/bw/6.2/domains/.log regex=/[a-z]+[A-Z]+[0-9]-.log$

Thanks, Greg


checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en