Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I need help. I was looking in to Monit documentation and I need help. I could not find my answer there. I need to monitor a log file of a service, if that log file stops to increase in size or even better something in the log file stops coming in (the log file gets around 20 new messages in a second. It has rotation) then monit will alert me via e-mail. This is really needed!

Thank you!

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Have you considered a timestamp change? If the file is older then N minutes, then things are broken?

 check file stored.per with path /msg-foo/config/stored.per
   if timestamp > 1 hour then alert
share|improve this answer
    
Thank you :) This will help me a lot :) –  mYzk Feb 19 '13 at 19:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.