- Nagios Network Monitoring
- General Information and TidBits
- Installation Tips & Tricks
- Addons, Plugins, Tweaks & Customizations
- Checking Drupal Status with Nagios and WebInject
- AddOn - NRPE / NSClient
- AddOn - Nagios Event Log aka NagEventLog
- Addon - Nagios Passive Checks with NSCA
- Nagios Custom Object Variables
- Nagios Event Handler - Restart Remote Service
- Nagios Event Handler - Restarting a Local Service
- Plugin: check_dns_secondary - Checking NS Servers
- Plugin: check_http_requisites - Page Size, Files, and Loadtime
- Plugin: check_mem - Linux Memory Usage
- Plugin: check_sql - Check MSSQL and MYSQL servers
- Plugin: check_svn - Check Subversion
- Tweak - Nagios Jabber / XMPP Notifications
- Tweak - Nagios SMS Messaging
- Tweak - check_file_age to check_file_modified
- Tweak: Using NagiosGraph's SHOW.CGI
- Tweak: check_sql - Allow decimal values
- Common Errors & Fixes
Tweak - check_file_age to check_file_modified
Out of the box the Nagios Plugins package has a check_file_age plugin. Well, that only checks to see if the file has been modified in the last specified time period and alerts if the file has NOT changed recently. I needed the exact opposite, to check to see if the file has been modified.
The "reversal" can be accomplished by changing two ">" symbols to "<" in the comparisons of the function. Of course, I changed the few name occurances of the plugin to a new name as well. This is a good sanity check for when any critical config file that I designate is changed, it will alert the IT team. Great for developers with sudo access touching key config files they should not be, such as the http.conf file.
- MWalker's blog
- Printer-friendly version
- Login or register to post comments
-

Recent comments
7 weeks 4 days ago
25 weeks 3 hours ago
28 weeks 20 hours ago
38 weeks 2 hours ago
45 weeks 3 days ago
45 weeks 5 days ago
50 weeks 1 day ago
1 year 1 week ago