Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Simple file integrity checker.
Current Version
1.0
Last Release Date
2009-11-09
Owner
Stephen Berg
Compatible With
NRPE script to verify files against a stored md5sum
Example of the md5s file.
Shell script to rebuild the /etc/nagios/md5s file automatically. Saves a dated filename copy.
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 <client 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.
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!