From 533e3c292d559c49e7102bf5be6ffc0ebce56cb9 Mon Sep 17 00:00:00 2001 From: Johan Wassberg Date: Fri, 9 Mar 2018 11:59:47 +0100 Subject: [PATCH] Adjust to new requirements in Icinga 2.8.x. --- lib/Thruk/Controller/api_conf.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Thruk/Controller/api_conf.pm b/lib/Thruk/Controller/api_conf.pm index 755dcef..18bf7d5 100644 --- a/lib/Thruk/Controller/api_conf.pm +++ b/lib/Thruk/Controller/api_conf.pm @@ -996,6 +996,7 @@ sub get_defaults { $to_json{"attrs"}{"groups"} = [ "Example group1", "Example groups2" ]; $to_json{"attrs"}{"period"} = "24x7"; $to_json{"attrs"}{"states"} = [ "Critical", "Unknown" ]; + $to_json{"attrs"}{"max_check_attempts"} = 11; } elsif ( $page_type eq "hostdependencies" ) { @@ -1024,6 +1025,7 @@ sub get_defaults { $to_json{"attrs"}{"zone"} = "master"; $to_json{"attrs"}{"groups"} = [ "hdbe", "surveillance" ]; $to_json{"attrs"}{"retry_interval"} = 30; + $to_json{"attrs"}{"max_check_attempts"} = 10; } elsif ( $page_type eq "servicedependencies" ) {