function nagios_check_modules in Nagios Monitoring 5
Same name and namespace in other branches
- 8 nagios.module \nagios_check_modules()
- 6 nagios.module \nagios_check_modules()
- 7 nagios.module \nagios_check_modules()
File
- ./
nagios.module, line 417
Code
function nagios_check_modules() {
$count = (int) db_result(db_query("SELECT COUNT(*) FROM {system} WHERE status = 1 AND type = 'module'"));
$data = array(
'status' => NAGIOS_STATUS_OK,
'type' => 'perf',
'text' => $count,
);
return array(
'key' => 'MOD',
'data' => $data,
);
}