You are here

function nagios_nagios in Nagios Monitoring 5

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

Implementation of hook_nagios

File

./nagios.module, line 259

Code

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