How to configure ping monitoring alerts to be sent out only when the packet loss above 80%

Hello,

  • Icinga Web 2 version – 2.9.0
  • Used modules and their versions (System - About) - Monitoring 2.9.0
  • Web browser used – Firefox 90.0.2
  • Icinga 2 version used (icinga2 --version) – 2.12.4-1
  • PHP version used (php --version) – PHP Version 7.1.30
  • Server operating system and version – Red Hat Enterprise Linux Server release 7.9 (Maipo)

We primarily use icinga web 2 for ping monitoring, Is there a way to configure ping monitor alerts to be sent out only when the packet loss 80% and above?

Thanks in advance!

Best regards,
Balaji Sankaran

1 Like

Can you share your command and service definitions for your ping check?

Attached is the command.conf(untouched since the installation), I have commented out all the lines in services.conf file, the following is the one of the hosts configuration from the hosts.conf…

object Host “hostname” {
import “generic-host”
address = “IP-address”
check_command = “ping4”
check_interval = 1m
retry_interval = 1m
vars.os = “Linux VM”

Best regards,
Balaji Sankaran
command.conf.txt (5.4 KB)

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

Set either ping_wpl or ping_cpl (depending on whether you want a warning or a
critical alert) to 80.

If you really are not concerned about RTT, set ping_wrta and ping_crta to
something very high (for example 30000).

Antony.

Will try the configuration and update you.

Best regards,
Balaji Sankaran

Yep, that should be the guiding light! We don’t use the default and for some reason I thought that the default had the vars already present :sweat_smile:

That worked, thank you for the help.

Best regards,
Balaji Sankaran

Thank you for the help.

Best regards,
Balaji Sankaran