function nagios_check_session_auth in Nagios Monitoring 8
Same name and namespace in other branches
- 5 nagios.module \nagios_check_session_auth()
- 6 nagios.module \nagios_check_session_auth()
- 7 nagios.module \nagios_check_session_auth()
Report the number of logged in sessions.
Return value
array with performance data
File
- ./
nagios.module, line 695 - Main file for Nagios service monitoring.
Code
function nagios_check_session_auth() {
$interval = Drupal::time()
->getRequestTime() - 900;
// Last 15 minutes
$count = nagios_session_count($interval, FALSE);
$data = [
'status' => NAGIOS_STATUS_OK,
'type' => 'perf',
'text' => $count,
];
return [
'key' => 'SAU',
'data' => $data,
];
}