mirror of https://github.com/Icinga/icinga2.git
25 lines
750 B
Plaintext
25 lines
750 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_redis_dump_takes_warning = 5m
|
||
|
vars.icingadb_redis_dump_takes_critical = 10m
|
||
|
vars.icingadb_database_sync_takes_warning = 5m
|
||
|
vars.icingadb_database_sync_takes_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")
|