- Nagios - Switch Interface Traffic
- How To - Linux Server Performance
- Notes - Building New ESXi Host for iSCSI with Jumbo Frames
- Microsoft Office Version Numbers (XP, 2003, 2007, 2010)
- ESXi Custom Welcome Screen Text
- PHP - Read Data from a CSV file
- PHP - Input Variables from URL
- Fix - WMI Error EventID 10
- Fix - EventID 4007 DNS Server Error
- FIX - CHECK_ESX3.PL Script
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 to post comments
-
