Skip to content

Nagios plugin, pulls the most recently created file in each specified directory, and checks its created time against the current time.

License

Notifications You must be signed in to change notification settings

thehunmonkgroup/nagios-plugin-newest-file-age

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

This plugin pulls the most recently created file in each specified directory, and checks its created time against the current time. If the maximum age of the file is exceeded, a warning/critical message is returned as appropriate.

This is useful for examining backup directories for freshness.

Tested to work on

  • Linux
    • GNU stat needed.
  • FreeBSD
  • OS X.

Usage

Run the plugin with the --help argument for a full description of all arguments, example usage, and caveats.

The included utils.sh script is required for this plugin to run properly, and must be placed in the same directory as the plugin. On RHEL/CentOS systems, it is provided by the nagios-plugins package, and is provided here for other use cases.

Alpine Linux support

Alpine Linux by default uses Busybox stat. Install apk add coreutils package to install GNU stat.

Support

The issue tracker for this project is provided to file bug reports, feature requests, and project tasks -- support requests are not accepted via the issue tracker. For all support-related issues, including configuration, usage, and training, consider hiring a competent consultant.

About

Nagios plugin, pulls the most recently created file in each specified directory, and checks its created time against the current time.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages