Logwatch plugin not discovered in my checkmk console

ihave checkmk 1.0.6.p13

i tried to monitor logfile /var/log/auth.log on one of my host
i have put mk_logwatch file in host machine in this path /usr/lib/check_mk_agent/plugins and give it 755 permissions with root user as owner

also added logwatch.cfg in /etc/check_mk/

here is auth.log file content which is a default example

/var/log/auth.log
W sshd.*Corrupted MAC on input

after scanning the host machine in checkmk host interface , the service is not discovered

please help

Hello @hexus !

I would suggest updating to a newer supported version of Checkmk, as 1.x version is no longer maintained and in the newer versions there are many improvements and fixes for possible bugs.

Run /usr/lib/check_mk_agent/plugins/mk_logwatch manually on CLI. Check whether it returns correct data or not.

Also this video might help you. This should work on the 1.6 version also.

thank you harjit for your reply

can you tell me how to run plugin manually step by step?

when i test agent in the machine where i added the plugin, logwatch isnt shown in the output

there is something wrong with the plugin

Login as root and run it on command line like you run a shell or any other scripts:

/usr/lib/check_mk_agent/plugins/mk_logwatch

got this output

/usr/bin/env: ‘python’: No such file or directory

i solved python issue but now i have this problem

error on this line 172

except Exception, e:

SyntaxError: invalid syntax

you need to install python first then as plugin is written in python language.

you need to change the plugin to make it compatible with python3. you can do the changes as:

except Exception as e: