Closed de1m closed 4 years ago
set state of they through icinga2 api.
I assume that a new check result is being pushed via API action. If you're manually modifying the state
attribute somehow, this won't trigger any runtime updates towards backends (IDO, etc.).
okay, but after I've reload the icinga2 its working correctly. Can I do somephing, for debug or testing?
So you're modifying the state attribute in your library? This is not supported by design.
What do you mean with "state attribute"? "Custom Variables" in Icinga2 webgui? or the "vars" in config file?
object Host "k8s-ext-pods-monitoring" {
import "passive-host"
display_name = "k8s-ext-pods-monitoring"
vars["group"] = "adito"
vars["server"] = "k8s"
version = 1559720645.693325
zone = "30b5d7050d6f"
}
hm... I've changed my Script, that create now this object
object Host "k8s-ext-pods-monitoring" {
import "passive-host"
display_name = "k8s-ext-pods-monitoring"
version = 1560243611.427802
zone = "30b5d7050d6f"
}
but I get the same error
Hm, I think I misunderstood the meaning of "set a state", which is done via the process-check-result action. The host object and its changed state is visible via REST API, right?
Then I'd point to IDO activation bugs collected in #6012.
Hi @de1m,
If you still have this problem, please open a new issue. I close this one in the meantime.
For the records, I doubt that it is a good idea to add version
and zone
to the configuration.
But that is just a blind guess.
All the best, Eric
Describe the bug
The error happens only on first start of my container. The container start without any errors und icinga2 can receive data through NSCA (from Windows Server) without errors. I've a cuple of scripts, written in nodejs (icinga2 modul). This scripts create icinga2 objects (hosts and services) and set state of they through icinga2 api. The error is, that the state of this object will be seeable(in icinga2 webgui) after I run the command "service icinga2 reload"
To Reproduce
Your Environment
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
): version: r2.10.5-1icinga2 feature list
):icinga2 daemon -C
):zones.conf
file (oricinga2 object list --type Endpoint
andicinga2 object list --type Zone
) from all affected nodes.