Passive Check no timeout to status unknown

I have a passive check. In this passive check there come API calls with status very unregular and only if status changed. Now in my config is a problem so after i think 10 Min Status changed automatical to Unknown if no new API Call with status came. But i want only that API Call can Change Status. Here are Attribute List:

Object ‘bgu-ZsvaPlaner!website_medorus_new’ of type ‘Service’:
% declared in ‘/etc/icinga2/conf.d/services.conf’, lines 188:1-188:35

  • __name = “bgu-ZsvaPlaner!website_medorus_new”
  • action_url = “”
  • check_command = “passive”
    % = modified in ‘/etc/icinga2/conf.d/templates.conf’, lines 197:5-197:29
  • check_interval = 300
  • check_period = “”
  • check_timeout = null
  • command_endpoint = “”
    % = modified in ‘/etc/icinga2/conf.d/templates.conf’, lines 198:5-198:48
  • display_name = “website_medorus_new”
  • enable_active_checks = true
  • enable_event_handler = true
  • enable_flapping = false
  • enable_notifications = true
  • enable_passive_checks = true
    % = modified in ‘/etc/icinga2/conf.d/templates.conf’, lines 200:5-200:32
  • enable_perfdata = true
  • event_command = “”
  • flapping_ignore_states = null
  • flapping_threshold = 0
  • flapping_threshold_high = 30
  • flapping_threshold_low = 25
  • groups = [ ]
  • host_name = “bgu-ZsvaPlaner”
    % = modified in ‘/etc/icinga2/conf.d/services.conf’, lines 188:1-188:35
  • icon_image = “”
  • icon_image_alt = “”
  • max_check_attempts = 3
  • name = “website_medorus_new”
    % = modified in ‘/etc/icinga2/conf.d/services.conf’, lines 188:1-188:35
  • notes = “”
  • notes_url = “”
  • package = “_etc”
    % = modified in ‘/etc/icinga2/conf.d/services.conf’, lines 188:1-188:35
  • retry_interval = 60
  • source_location
    • first_column = 1
    • first_line = 188
    • last_column = 35
    • last_line = 188
    • path = “/etc/icinga2/conf.d/services.conf”
  • templates = [ “website_medorus_new”, “checker_new” ]
    % = modified in ‘/etc/icinga2/conf.d/services.conf’, lines 188:1-188:35
    % = modified in ‘/etc/icinga2/conf.d/templates.conf’, lines 195:1-195:30
  • type = “Service”
  • vars = null
  • volatile = false
  • zone = “master”
    % = modified in ‘/etc/icinga2/conf.d/services.conf’, lines 188:1-188:35

Hi & welcome,

We have defined these parameters long time ago, so I can’t remember exactly why we have chosen them:

   check_interval = 1d
   enable_active_checks = false
   enable_flapping = false
   enable_passive_checks = true
   max_check_attempts = 1
   volatile = true

thats the right option for disabling the passive check

but consider the passive command option. If your passive check result is reported in time there might be another problem on the machine which you should consider to fix, (restart cron, or any other scheduler)

if you set the check interval to 10m and send a passive result every 5m, there should never be any change to unknown, excepts your script fails to deliver the result on time

the command “passive” returns unknown everytime it’s not a bug its a feature.
the command “dummy” returns OK everytime

1 Like

The so called “Freshness Check” is enabled by default, what (I think) also applies on passive checks. It is described here: Advanced Topics - Icinga 2

1 Like

Yeah it works. Thank you very much