Monitor the age of a file

Can I use Icinga to monitor the last-modified date of a specific file, and send an alert if it reaches a defined value?

  1. You can use Icinga to monitor anything which can be measured. If you can’t
    find a service check command which already does what you want, you can easily
    write your own.

https://icinga.com/docs/icinga-2/latest/doc/05-service-monitoring/
#service-monitoring-plugin-new

  1. https://icinga.com/docs/icinga-2/latest/doc/10-icinga-template-
    library/#file_age

Antony.

1 Like