mirror of https://github.com/Icinga/icinga2.git
25 lines
752 B
Plaintext
25 lines
752 B
Plaintext
/* Icinga 2 | (c) 2022 Icinga GmbH | GPLv2+ */
|
|
|
|
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")
|