Host Pingtest set warning from 100ms to 1XX ms

Hello,
I have a host that only responds to ping after 105 ms, what do I have to do to increase the warning threshold for this host?

Hallo,
ich habe einen Host der erst nach 105 ms auf Ping antwortet, was muss ich tun um den warning Schwellwert für diesen Host zu erhöhen?

https://icinga.com/docs/icinga-2/latest/doc/10-icinga-template-library/#ping4

Du musst ping_wrta erhöhen, und wahrscheinlich auch ping_crta.

You need to increase ping_wrta, and probably also ping_crta.

Antony.

Danke für den Hinweis,nur wie geht das?
hatte so ein Beispiel im Netz gefunden und meinen Host entsprechend angepasse, auch gefühlt 5 andere Schreibweisen der Variablen, alles leider bis jetzt alles ohne Erfolg.

object Host "host.example.tld" {
  address = "1.2.3.4"
  check_command = "hostalive4"
  vars.ping_latency = {
    latency = {
      warning = 120,    // Warning bei Latenz über 120 ms
      critical = 150    // Critical bei Latenz über 150 ms
    }
  }
}

keine Wirkung die 100 ms wie im bild bleiben :frowning:

Try this:

object Host "example" {
	address = 1.2.3.4
	check_command = "hostalive4"
	vars.ping_wrta = "120"
	vars.ping_crta = "150"
}

Wenn das nicht funktioniert, bitte die Ausgabe von:

icinga2 object list --name "example" --type Host

prüfen - unter “vars” solltest du “vars” sehen, und darunter (hoffentlich)
irgendwas über “ping” sehen…

English: If that doesn’t work, please check the output of the above command;
you should see “vars” and then underneath it something about “ping”…

Antony.

1 Like

vars.ping_wrta = 120 hat es gelöst / now it works

object Host "host.example.tld" {
  address = "1.2.3.4"
  check_command = "hostalive4"
  vars.ping_wrta = 120
}

image
vielen Dank @Pooh