How to create a script to check logfile
Solution 1:
Well this depends on the contents of your logfiles, but here are some suggestions, which might help you:
If you just want to see if a process is running, you can use the nagios plugin "check_procs".
To check if a logfile is beeing written to, you can use the nagios plugin "check_file_age".
If you want to check for certain expressions, this is a great plugin: https://labs.consol.de/nagios/check_logfiles