/* This file has been automatically generated
   from the input file "icingadb-itl.conf". */

#include "config/configfragment.hpp"

namespace {

const char *fragment = R"CONFIG_FRAGMENT(// SPDX-FileCopyrightText: 2022 Icinga GmbH <https://icinga.com>
// SPDX-License-Identifier: GPL-2.0-or-later

System.assert(Internal.run_with_activation_context(function() {
	template CheckCommand "icingadb-check-command" use (checkFunc = Internal.IcingadbCheck) {
		execute = checkFunc
	}

	object CheckCommand "icingadb" {
		import "icingadb-check-command"

		vars.icingadb_name = "icingadb"

		vars.icingadb_full_dump_duration_warning = 5m
		vars.icingadb_full_dump_duration_critical = 10m
		vars.icingadb_full_sync_duration_warning = 5m
		vars.icingadb_full_sync_duration_critical = 10m
		vars.icingadb_redis_backlog_warning = 5m
		vars.icingadb_redis_backlog_critical = 15m
		vars.icingadb_database_backlog_warning = 5m
		vars.icingadb_database_backlog_critical = 15m
	}
}))

Internal.remove("IcingadbCheck")
)CONFIG_FRAGMENT";

REGISTER_CONFIG_FRAGMENT("icingadb-itl.conf", fragment);

}