Error in the warning/critical logic

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.