Louis, I have been following your progress on this topic here, Logwatch for Windows custom logfiles, using the pre-compiled exe file downloaded from here, mk_logwatch.exe :: Icinga Exchange. This is what I have done so far,
mk_logwatch.exe → C:\ProgramData\checkmk\agent\plugins
logwatch.cfg → C:\check_logfiles (it was complaining about the path when running check_mk_agent.exe test under C:\Program Files (x86)\checkmk\service, so I have set it here, for now), containing the following,
C:\tmp\checkmk.log
I a
W world
C test
checkmk.log → C:\tmp (my test log file) containing the following,
hello
there
world
this
is
a
test
I am not sure what I’m doing wrong, but I have re-scanned the services under the host in question, multiple times, but cannot get it to work, I mean the service for monitoring the log file is not appearing.
When I now run check_mk_agent.exe test under C:\Program Files (x86)\checkmk\service I get,
<<<>>>
<<<win_logfiles>>>
[[[C:\tmp\checkmk.log]]]
Also got the logwatch.state file generated, containing,
C:\tmp\checkmk.log|38|0
Any thoughts please? Thanks in advance.