You are here

function nagios_nagios in Nagios Monitoring 6

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

Implementation of hook_nagios

File

./nagios.module, line 379

Code

function nagios_nagios() {
  $status = array();
  foreach (nagios_functions() as $function => $description) {
    if (variable_get('nagios_func_' . $function, TRUE)) {
      $func = 'nagios_check_' . $function;
      $result = $func();
      $status[$result['key']] = $result['data'];
    }
  }
  return $status;
}