Monitor a log file following a service or server restart

Viewed 0

Here is what I want to achieve:

We have a server that hosts tomcat services. I want to monitor a service, and if that service, or server restarts then I want to montior a log file (always same name - but changes at midnight). If a particular string is not found after 5 minutes, I need it to email service not started. If the string is found I need it to email service started correctly. After this time, I do not need to monitor the log file.

Shaun Scott

3 Answers

I would make a Log File Monitor, set it to alert if your text is not found, and schedule it to run at 12:05 am.

Hi there. Thanks for the response.

I don't think your suggested answer will do what I need since the string only appears if the service is restarted, which could be at any time of the day.

Shaun

Related