Security

check_file_md5s

Description:

Simple file integrity checker.

Current Version

1.0

Last Release Date

2009-11-09

Compatible With

  • Nagios 3.x

Owner


Project Files
Project Notes
Very simplistic NRPE plugin that will check md5sum's of system files against a stored list. Steps to install: 1. Generate the stored /etc/nagios/md5s by running: - /usr/bin/md5sum [Fully Qualified Filename] >> /etc/nagios/md5s - Do that for each file you wish to monitor. 2. Put the check_file_md5s script in your plugins directory, define the command on the NRPE client config and restart NRPE: - command[check_file_md5s]=/usr/lib64/nagios/plugins/check_file_md5s 3. Define the command and service in Nagios. define service{ use linux-service host_name service_description NRPE_file_md5 check_command check_nrpe!check_file_md5s } - Reload nagios configuration NRPE will then compare the current md5sum's for each file against that stored list. If differences are found it will issue a Warning back to Nagios. Tested on Fedora and Scientific Linux with a Nagios 3 server. 30 Nov 2009: Added a script that copies the md5s file to a new filename with a datestamp and then rebuilds the file with current md5sum's. Makes it easy to update the file when any of the monitored files are modified.
Reviews (0) Add a Review
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
0 (0)
Favorites
0
Views
100,966