You are here

function nagios_check_session_anon in Nagios Monitoring 6

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

Report the number of anonymous sessions.

Return value

Array

File

./nagios.module, line 701

Code

function nagios_check_session_anon() {
  $interval = time() - 900;

  // Last 15 minutes
  $count = (int) sess_count($interval, TRUE);
  $data = array(
    'status' => NAGIOS_STATUS_OK,
    'type' => 'perf',
    'text' => $count,
  );
  return array(
    'key' => 'SAN',
    'data' => $data,
  );
}