You are here

function nagios_check_session_auth in Nagios Monitoring 5

Same name and namespace in other branches
  1. 8 nagios.module \nagios_check_session_auth()
  2. 6 nagios.module \nagios_check_session_auth()
  3. 7 nagios.module \nagios_check_session_auth()

File

./nagios.module, line 371

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,
  );
}