function nagios_check_session_auth in Nagios Monitoring 6
Same name and namespace in other branches
- 8 nagios.module \nagios_check_session_auth()
- 5 nagios.module \nagios_check_session_auth()
- 7 nagios.module \nagios_check_session_auth()
Report the number of logged in sessions.
Return value
Array
File
- ./
nagios.module, line 722
Code
function nagios_check_session_auth() {
$interval = time() - 900;
// Last 15 minutes
$count = (int) sess_count($interval, FALSE);
$data = array(
'status' => NAGIOS_STATUS_OK,
'type' => 'perf',
'text' => $count,
);
return array(
'key' => 'SAU',
'data' => $data,
);
}