Home Directory Plugins Security check_file_md5

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_file_md5

Rating
0 votes
Favoured:
0
Current Version
0.1
Last Release Date
2012-01-05
Compatible With
  • Nagios 2.x
Hits
85439
Files:
FileDescription
check_file_md5check_file_md5
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Script to arbitrarily monitor the md5 checksums of any given file and throw a warning when a file is changed. Script is self-maintaining, in that it will update its own cache of checksums after a mismatch - this way, you don't have to remember to update the cache when you change a file yourself.
Modeled after check_file_md5s, this script performs the following functions:

- Permits arbitrary md5sum checking of a filename passed in on a parameter
- Builds a list of files with every md5 check - warns when file isn't in the list and adds the file
- Critical alert when a file is not present
- Critical alert, followed by a refresh of the list of checksums when an md5 checksum doesn't match

Default location of temporary list of md5 checksums is /usr/local/nagios/ - modify this line of the script if you wish to change.

Tested and currently running on an array of CentOS 4.x and 5.x servers, but this should work on any UNIX/Linux server with which & md5sum installed.

Planned for future development (and encouraged from the community):
- Would be nice to store cache of md5sums on nagios instead of local server
- Also would be nice to make use of additional parameters to activate or suppress cache-auto-updates