From 9d2155cc018de5f45cda89e79d9840463e8e0153 Mon Sep 17 00:00:00 2001 From: Simone Mainardi Date: Mon, 6 Dec 2021 16:38:55 +0100 Subject: [PATCH] Adds localization for the implemented ClickHouse monitor --- scripts/locales/en.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/locales/en.lua b/scripts/locales/en.lua index 8050793656..d5d9023f13 100644 --- a/scripts/locales/en.lua +++ b/scripts/locales/en.lua @@ -640,6 +640,7 @@ local lang = { ["ngi_trust_event"] = "Abnormal activity detected for device %{mac} at %{time}. [Last state: %{last_state}][Unchanged since: %{state_unchanged_since}][Abnormality grade: %{abnormality_grade}]", ["ngi_trust_event_released"] = "Device %{mac} state is back to normal at %{time}. [Last state: %{last_state}][Unchanged since: %{state_unchanged_since}][Abnormality grade: %{abnormality_grade}]", ["no_influxdb"] = "Please enable timeseries dump to InfluxDB and then reload this page", + ["no_clickhouse"] = "ClickHouse not enabled.", ["ntopng_anomalous_termination"] = "Started after anomalous termination (bug report)", ["ntopng_start"] = "Started", ["ntopng_stop"] = "Stopped", @@ -777,6 +778,8 @@ local lang = { ["influxdb_export_failure"] = "InfluxDB Export Failure", ["influxdb_monitor"] = "InfluxDB monitor", ["influxdb_monitor_description"] = "Monitor the InfluxDB health", + ["clickhouse_monitor"] = "ClickHouse monitor", + ["clickhouse_monitor_description"] = "Monitor the ClickHouse health", ["info"] = "Info", ["internal_issues"] = "Internal Issues", ["involving_msg"] = "Flow Alerts Involving", @@ -5489,6 +5492,23 @@ local lang = { ["top_redis_commands"] = "Top Commands Calls", ["tot_calls"] = "Total Calls", }, + ["clickhouse"] = { + ["command_hits"] = "%{cmd} Calls", + ["commands"] = "Commands", + ["clickhouse_health_green"] = "OK", + ["clickhouse_health_green_descr"] = "ClickHouse is working OK.", + ["clickhouse_health_red"] = "Persistence Issues", + ["clickhouse_health_red_descr"] = "Unable to query ClickHouse. Expect %{product} to malfunction.", + ["clickhouse_flows_size"] = "Flows Table Size", + ["clickhouse_alert_size"] = "Alert Tables Size", + ["clickhouse_monitor"] = "ClickHouse Monitor", + ["clickhouse_monitor_description"] = "Monitor the ClickHouse health", + ["short_desc_clickhouse_health"] = "Current ClickHouse health.", + ["short_desc_clickhouse_alert_size"] = "Total size of the ClickHouse alert tables.", + ["short_desc_clickhouse_flows_size"] = "Total size of the ClickHouse flows table.", + ["top_clickhouse_commands"] = "Top Commands Calls", + ["tot_calls"] = "Total Calls", + }, }, ["tags"] = { ["acknowledged"] = "Acknowledged",