function nagios_check_nodes in Nagios Monitoring 5
Same name and namespace in other branches
- 8 nagios.module \nagios_check_nodes()
- 6 nagios.module \nagios_check_nodes()
- 7 nagios.module \nagios_check_nodes()
File
- ./
nagios.module, line 387
Code
function nagios_check_nodes() {
// Include number of active nodes in the report
$count = (int) db_result(db_query("SELECT COUNT(*) FROM {node} WHERE status = 1"));
$data = array(
'status' => NAGIOS_STATUS_OK,
'type' => 'perf',
'text' => $count,
);
return array(
'key' => 'NOD',
'data' => $data,
);
}