joltmann
(Joern Oltmann)
July 3, 2019, 5:46pm
1
Hi,
I would like to monitor my java proc on serveral Servers, but Icinga shows allways green.
The ammount of java procs are shown on the GUI but it also if there is now java proc everything looks fine ???
Here are my service file:
apply Service “FrontApp” {
import “generic-service”
check_command = “procs”
vars.procs_command = “java”
assign where (host.vars.host_group == “ep-prod-front” || host.vars.host_group == “ep-staging-front” || host.vars.host_group == “ep-dev-front”)
}
And the HOST entry
object Host “devfront1.xxxxxx” {
import “generic-host”
address = “xxx”
check_command = “hostalive”
vars.stage = “ep-develop”
vars.host_group = “ep-dev-front”
vars.nginx_status[“nginx_status”] = {
nginx_status_servername = “$hostname$”
}
vars.load[“load”] = {}
vars.notification[“mail”] = {
groups = [ “icingaadmins” ]
}
}
Would be great if someone can give me a hint.
Thx
Joern
dflach
(crunsher)
July 4, 2019, 9:12am
2
Thresholds!
I don’t know how your “procs” check command looks like but you probably missed to set the right thresholds for your service.
dnsmichi
(Michael Friedrich)
July 4, 2019, 9:36am
3
Hi,
I’d assume that you want to run these checks on the remote agent. As such, you need to install Icinga 2 over there and connect it, e.g. via command endpoint checks.
Cheers,
Michael
joltmann
(Joern Oltmann)
July 4, 2019, 9:40am
4
The proc check is the default proc check from icinga2. But yes I think there is the threshold missing. But how can I set the threshold?
joltmann
(Joern Oltmann)
July 4, 2019, 9:42am
5
Hm think I have to install only the nrpe agent on the remote machine, not icinga2 it self.
dnsmichi
(Michael Friedrich)
July 4, 2019, 9:57am
6
NRPE is something we highly discourage for security reasons. The preferred way is using the Icinga 2 agent/client.
1 Like