You are here

function nagios_nagios_check in Nagios Monitoring 8

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

Implements hook_nagios_check().

Parameters

string $function:

Return value

array with performance information

File

./nagios.module, line 815
Main file for Nagios service monitoring.

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;
}