This is my nagios config:
define host {
_ADDRESSES_4 8.8.8.8 9.9.9.9
_ADDRESSES_6 2001:4860:4860::8888 2620:fe::fe
_ADDRESS_4 1.1.1.1
_ADDRESS_4_1 8.8.8.8
_ADDRESS_4_2 9.9.9.9
_ADDRESS_6 2606:4700:4700::1112
_ADDRESS_6_1 2001:4860:4860::8888
_ADDRESS_6_2 2620:fe::fe
...
check_command check-mk-host-ping!-w 200.00,80.00% -c 500.00,100.00%
...
define service {
active_checks_enabled 1
check_command check_mk_active-icmp!'-m' '1' '-w' '200.00,80%' '-c' '500.00,100%' '$_HOSTADDRESSES_4$' '$_HOSTADDRESS_4$'
check_interval 1.0
host_name internet
max_check_attempts 3
process_perf_data 1
service_description Internet connection v4
use check_mk_perf,check_mk_default
}
I see as only difference the “-m 1” option in my config.
Test from command line:
./check_icmp -m 1 -w 200.00,80% -c 500.00,100% 1.1.1.1 8.8.8.8 9.9.9.9
OK - 1.1.1.1: rta 22.910ms, lost 0% :: 8.8.8.8: rta 9.563ms, lost 0% :: 9.9.9.9: rta 11.268ms, lost 0%|1.1.1.1rta=22.910ms;200.000;500.000;0; 1.1.1.1pl=0%;80;100;; 1.1.1.1rtmax=27.487ms;;;; 1.1.1.1rtmin=21.240ms;;;; 8.8.8.8rta=9.563ms;200.000;500.000;0; 8.8.8.8pl=0%;80;100;; 8.8.8.8rtmax=12.278ms;;;; 8.8.8.8rtmin=8.499ms;;;; 9.9.9.9rta=11.268ms;200.000;500.000;0; 9.9.9.9pl=0%;80;100;; 9.9.9.9rtmax=17.039ms;;;; 9.9.9.9rtmin=9.546ms;;;;