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