hi,

i' ve installed icinga2 2.1.1 from ubuntu ppa (https://launchpad.net/~formorer/+archive/ubuntu/icinga) on trusty.

i have problems with passive checks: when active checks disabled and no checks arrived service go in stale and not execute the chek_command.
 however the documantation said that:

"Passive check freshness is calculated from the check_interval attribute if set.
 threshold = last check result time + check interval
If the freshness checks are invalid, a new check is executed defined by the check_command attribute."

 this is relevant configuration:

 template Service "passive-service" {
        max_check_attempts = 3
        retry_interval = 1m
        check_interval = 2m

        enable_active_checks = false

        check_command = "dummy"

        vars.dummy_state = 3
        vars.dummy_text = "No Passive Check Result Received."
 }

 apply Service "apt" {
  import "passive-service"

  vars.sla = "24x7"

  assign where host.vars.check_apt == true
 }

 could anybody help me resolv this?

You have disabled the very part of the check you want to invalidate the stale state with.

http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/monitoring-basics#check-result-freshness

Enable active checks in order to allow the check_command to be invoked.

thanks your answer.

i tried it, but if enable active checks, at the moment of reload/restart icinga2 service it will check random passive services with check_dummy command and that do mess with availability, cause it return with unknown.

in icinga1 and nagios if no passive check arrive the check_command executed however only passive checks enabled and i think this is the right functionality.

regards,
attila
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to