function nagios_nagios_check in Nagios Monitoring 7
Same name and namespace in other branches
- 8 nagios.module \nagios_nagios_check()
- 6 nagios.module \nagios_nagios_check()
Implements hook_nagios_check().
File
- ./
nagios.module, line 1165
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.
/** @var callable $func */
$func = 'nagios_check_' . $function;
$result = $func();
$status[$result['key']] = $result['data'];
return $status;
}