mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Icinga DB Check: rename variables from takes to duration
Sounds more natural in my opinion and I doubt that many users would get that due to the difference between takes/took, this refers to ongoing dumps.
This commit is contained in:
parent
782139995c
commit
81aef690d6
@ -109,17 +109,17 @@ Check command for the built-in `icingadb` check.
|
||||
|
||||
Custom variables passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
|
||||
|
||||
Name | Description
|
||||
------------------------------------------|-----------------------------
|
||||
icingadb\_name | **Required.** The name of the Icinga DB connection object. Defaults to `icingadb`.
|
||||
icingadb\_redis\_dump\_takes\_warning | **Optional.** Warning threshold for ongoing Redis dump duration. Applies if the value is higher than the threshold. Defaults to 5 minutes.
|
||||
icingadb\_redis\_dump\_takes\_critical | **Optional.** Critical threshold for ongoing Redis dump duration. Applies if the value is higher than the threshold. Defaults to 10 minutes.
|
||||
icingadb\_database\_sync\_takes\_warning | **Optional.** Warning threshold for ongoing database sync duration. Applies if the value is higher than the threshold. Defaults to 5 minutes.
|
||||
icingadb\_database\_sync\_takes\_critical | **Optional.** Critical threshold for ongoing database sync duration. Applies if the value is higher than the threshold. Defaults to 10 minutes.
|
||||
icingadb\_redis\_backlog\_warning | **Optional.** Warning threshold for Redis write backlog. Applies if the value is higher than the threshold. Defaults to 5 minutes.
|
||||
icingadb\_redis\_backlog\_critical | **Optional.** Critical threshold for Redis write backlog. Applies if the value is higher than the threshold. Defaults to 15 minutes.
|
||||
icingadb\_database\_backlog\_warning | **Optional.** Warning threshold for database sync backlog. Applies if the value is higher than the threshold. Defaults to 5 minutes.
|
||||
icingadb\_database\_backlog\_critical | **Optional.** Critical threshold for database sync backlog. Applies if the value is higher than the threshold. Defaults to 15 minutes.
|
||||
Name | Description
|
||||
-----------------------------------------|-----------------------------
|
||||
icingadb\_name | **Required.** The name of the Icinga DB connection object. Defaults to `icingadb`.
|
||||
icingadb\_full\_dump\_duration\_warning | **Optional.** Warning threshold for ongoing Redis dump duration. Applies if the value is higher than the threshold. Defaults to 5 minutes.
|
||||
icingadb\_full\_dump\_duration\_critical | **Optional.** Critical threshold for ongoing Redis dump duration. Applies if the value is higher than the threshold. Defaults to 10 minutes.
|
||||
icingadb\_full\_sync\_duration\_warning | **Optional.** Warning threshold for ongoing database sync duration. Applies if the value is higher than the threshold. Defaults to 5 minutes.
|
||||
icingadb\_full\_sync\_duration\_critical | **Optional.** Critical threshold for ongoing database sync duration. Applies if the value is higher than the threshold. Defaults to 10 minutes.
|
||||
icingadb\_redis\_backlog\_warning | **Optional.** Warning threshold for Redis write backlog. Applies if the value is higher than the threshold. Defaults to 5 minutes.
|
||||
icingadb\_redis\_backlog\_critical | **Optional.** Critical threshold for Redis write backlog. Applies if the value is higher than the threshold. Defaults to 15 minutes.
|
||||
icingadb\_database\_backlog\_warning | **Optional.** Warning threshold for database sync backlog. Applies if the value is higher than the threshold. Defaults to 5 minutes.
|
||||
icingadb\_database\_backlog\_critical | **Optional.** Critical threshold for database sync backlog. Applies if the value is higher than the threshold. Defaults to 15 minutes.
|
||||
|
||||
### ido <a id="itl-icinga-ido"></a>
|
||||
|
||||
|
@ -10,10 +10,10 @@ System.assert(Internal.run_with_activation_context(function() {
|
||||
|
||||
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_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
|
||||
|
@ -79,8 +79,8 @@ void IcingadbCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckR
|
||||
|
||||
String icingadbName = resolve("$icingadb_name$");
|
||||
|
||||
auto dumpTakesThresholds (resolveThresholds("$icingadb_redis_dump_takes_warning$", "$icingadb_redis_dump_takes_critical$"));
|
||||
auto syncTakesThresholds (resolveThresholds("$icingadb_database_sync_takes_warning$", "$icingadb_database_sync_takes_critical$"));
|
||||
auto dumpTakesThresholds (resolveThresholds("$icingadb_full_dump_duration_warning$", "$icingadb_full_dump_duration_critical$"));
|
||||
auto syncTakesThresholds (resolveThresholds("$icingadb_full_sync_duration_warning$", "$icingadb_full_sync_duration_critical$"));
|
||||
auto icingaBacklogThresholds (resolveThresholds("$icingadb_redis_backlog_warning$", "$icingadb_redis_backlog_critical$"));
|
||||
auto icingadbBacklogThresholds (resolveThresholds("$icingadb_database_backlog_warning$", "$icingadb_database_backlog_critical$"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user