You are here

function nagios_nagios_check in Nagios Monitoring 6

Same name and namespace in other branches
  1. 8 nagios.module \nagios_nagios_check()
  2. 7 nagios.module \nagios_nagios_check()

Implementation of drush hook_nagios_check().

File

./nagios.module, line 807

Code

function nagios_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 = 'nagios_check_' . $function;
  $result = $func();
  $status[$result['key']] = $result['data'];
  return $status;
}