Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_apple_time_machine
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
NRPE configuration example:
command[check_apple_time_machine]=/usr/local/scripts/check_apple_time_machine -w 10800 -c 21600
Tested with Mac OS X 10.7 and 10.8.
command[check_apple_time_machine]=/usr/local/scripts/check_apple_time_machine -w 10800 -c 21600
Tested with Mac OS X 10.7 and 10.8.
Reviews (1)
bysfrazer, August 27, 2013
1 of 1 people found this review helpful
Nice clean perl, easy to understand what it's doing, but the check for critical time never gets executed:
if ($completed ed now - $critical_age)) {
exit_critical("Backup is older than $critical_age seconds ($fmtcompleted)");
} else {
exit_ok("Backup finished at " . ctime($completed));
}
should be:
if ($completed conds ($fmtcompleted)");
} else {
exit_ok("Backup finished at " . ctime($completed));
}
Once that's fixed the plugin works as expected.
if ($completed ed now - $critical_age)) {
exit_critical("Backup is older than $critical_age seconds ($fmtcompleted)");
} else {
exit_ok("Backup finished at " . ctime($completed));
}
should be:
if ($completed conds ($fmtcompleted)");
} else {
exit_ok("Backup finished at " . ctime($completed));
}
Once that's fixed the plugin works as expected.
Owner's reply
Thank you for your positive review! Despite the website's bad mangling of your comment I was able to reproduce and fix the issue your reported. Version 0.1.1 now reports critical errors properly.