i would like to monitor many files that are dynamic generated…
i could use Regex to say so, but logwatch ist creating for every file a new service.
a solution to monitor a specific or more folders with one service and show in the details of that service the files found with the specific pattern or string… like filestat does but in logwatch.
Just to be clear: Do you want to monitor the content of dynamically generated log files, or do you want to monitor a lot of dynamically generated files for size, age and so on?
what i want to do is:
monitor the content (Strings like : "error or “failed”) of dynamically generated files… a lot of files, maybe hunderts or more…in diffrent paths…
for example : /roo/DB2*.txt and /root/DB/*.log and so one… it should be only one check and should show in the datails the exact path of the file he found the string (“error”) in. same as the above shown picture (from filestat plugin output)
we would like to test all the buit-in possiblities that checkmk offers… before going that path of local checks scripting chaos… thats why we are testing the Enterprise checkmk version in first place… we want it clean and centralized in checkmk before copying bash and powershell scripts from a to b on more than 400 linux and windows systems…a local check is not a difficult task but this will be our last solution if there is no possiblity at all doing it centralized in checkmk.
many thanks to you. I could made it… and received every log file as an event in EC.
But that was not really satisfying because for every file there is a check… or an event that is created…
Your screenshots are not very helpful. Better show the rules used.
I am not sure what you did but if you successful forward the logwatch messages to EC with the rule “Logwatch Event Console Forwarding” then you should see it in EC.
In the EC rules you can rewrite the application in section Rewrite:
With a unique Application then you can configure the rule “Check event state in Event Console”
all this is not satisfying me - because i wanted in the details of the check all the log files found sorted by their fullname … i wanted all the hunderts logfiles unter /root/path/* in one check showed in the details…
and i could made this only with my own created bash script as a locat check.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.