4

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!

cr0c
  • 1,116
  • 3
  • 15
  • 32

1 Answers1

8

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
Zoredache
  • 128,755
  • 40
  • 271
  • 413