diff --git a/utils.php.orig b/utils.php index df5e6e0..368b0f9 100644 --- a/utils.php.orig +++ b/utils.php @@ -238,9 +238,9 @@ class NagdashHelpers { "duration" => timeago($host_detail['last_state_change']), "detail" => $host_detail['plugin_output'], "current_attempt" => $host_detail['current_attempt'], - "max_check_attempts" => $host_detail['max_check_attempts'], + "max_attempts" => $host_detail['max_attempts'], "tag" => $host_detail['tag'], - "is_hard" => ($host_detail['current_attempt'] >= $host_detail['max_check_attempts']) ? true : false, + "is_hard" => ($host_detail['current_attempt'] >= $host_detail['max_attempts']) ? true : false, "is_downtime" => (isset($host_detail['scheduled_downtime_depth']) && $host_detail['scheduled_downtime_depth'] > 0) ? true : false, "is_ack" => ($host_detail[$api_cols['ack']] > 0) ? true : false, "is_enabled" => ($host_detail['notifications_enabled'] > 0) ? true : false,