You are here

function ultimate_cron_nagios_check in Ultimate Cron 8

Same name and namespace in other branches
  1. 8.2 ultimate_cron.nagios.inc \ultimate_cron_nagios_check()
  2. 6 ultimate_cron.nagios.inc \ultimate_cron_nagios_check()
  3. 7 ultimate_cron.nagios.inc \ultimate_cron_nagios_check()

Implementation of drush hook_nagios_check().

File

./ultimate_cron.nagios.inc, line 87

Code

function ultimate_cron_nagios_check($function) {

  // We don't bother to check if the function has been enabled by the user.
  // Since this runs via drush, web security is not an issue.
  $func = $function . '_check';
  $result = $func();
  $status[$result['key']] = $result['data'];
  return $status;
}