I have configured passive check on a host, and I also want to be notified when those checks are not executed (via cronjob). But I want to do this without active checks. I want the state to go to Critical on the host when the passive check is not received. How can this be possible?
remove alle the dummy_ you dont need the for the passive command
enable active checks
this will trigger the passive command which returns unknown on execution.
add a proper notification rule
you check interval is 4m you could send your passive result every minute or every two minutes.
as long as your passive check result arrives, the check execution of the passive check is delayed it
I think there is a misunderstanding:
the command check passive gets only actively executed on the master/satellite responsible for the host. it does not send anything to the host. the only prurpose of the active check is so the master/satellite can decide when there is a state change from the check result not beeing delivered
and the passive command is only a cleaner way that to write:
check_command = "dummy"
vars.dummy_state = 2
vars.dummy_text = "No Passive Check Result Received."
I have a script that is running on one host and it sends the result to Icinga2 using the REST API via cronjob every 5 minutes. If this script is stopped and not running I do not get an alert. It stays in green state in Icinga. I want to receive an alert when this script is not executed. I want the state to go to CRITICAL and receive an alert. Is that possible without active checks?