Hi,
I have defined a service that needs to send the last service.state and service.state_id to the checkcommand
object CheckCommand "some-command" {
command = [ "python", CustomPluginDir + "monitor_this.py"]
arguments += {
.....
"--service_name" = {
value = "$service_name$"
}
"--last_state" = {
value = "$service.state$"
}
"--last_state_id" = {
value = "$service.state_id$"
}
}
I have noticed, that when the service is changed to a different zone, the check is executed with the default values:
(from the api: https://localhost:5665/v1/objects/services )
"last_check_result": {
"active": true,
"check_source": "icinga",
"command": [
"python",
"/.../monitor_this.py",
...
"--last_state",
"UNKNOWN",
"--last_state_id",
"3",
...
Can you tell me where are the values for this runtime objects are stored ?
are they local to the icinga-satellite node?
are they shared among the two icinga-satellites in the zone?
are they pooled from the “master” zone ?
Thanks in advance,