diff options
Diffstat (limited to 'plugins-root/check_icmp.d/check_icmp_helpers.c')
-rw-r--r-- | plugins-root/check_icmp.d/check_icmp_helpers.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/plugins-root/check_icmp.d/check_icmp_helpers.c b/plugins-root/check_icmp.d/check_icmp_helpers.c index 58e13581..a2b54c6a 100644 --- a/plugins-root/check_icmp.d/check_icmp_helpers.c +++ b/plugins-root/check_icmp.d/check_icmp_helpers.c | |||
@@ -10,12 +10,15 @@ unsigned int timeout = DEFAULT_TIMEOUT; | |||
10 | 10 | ||
11 | check_icmp_config check_icmp_config_init() { | 11 | check_icmp_config check_icmp_config_init() { |
12 | check_icmp_config tmp = { | 12 | check_icmp_config tmp = { |
13 | .order_mode = false, | 13 | .modes = |
14 | .mos_mode = false, | 14 | { |
15 | .rta_mode = false, | 15 | .order_mode = false, |
16 | .pl_mode = false, | 16 | .mos_mode = false, |
17 | .jitter_mode = false, | 17 | .rta_mode = false, |
18 | .score_mode = false, | 18 | .pl_mode = false, |
19 | .jitter_mode = false, | ||
20 | .score_mode = false, | ||
21 | }, | ||
19 | 22 | ||
20 | .min_hosts_alive = -1, | 23 | .min_hosts_alive = -1, |
21 | .crit = {.pl = DEFAULT_CRIT_PL, | 24 | .crit = {.pl = DEFAULT_CRIT_PL, |
@@ -56,12 +59,7 @@ ping_target ping_target_init() { | |||
56 | 59 | ||
57 | .jitter_min = INFINITY, | 60 | .jitter_min = INFINITY, |
58 | 61 | ||
59 | .rta_status = STATE_OK, | 62 | .found_out_of_order_packets = false, |
60 | .jitter_status = STATE_OK, | ||
61 | .mos_status = STATE_OK, | ||
62 | .score_status = STATE_OK, | ||
63 | .pl_status = STATE_OK, | ||
64 | .order_status = STATE_OK, | ||
65 | }; | 63 | }; |
66 | 64 | ||
67 | return tmp; | 65 | return tmp; |