summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-12-31 18:13:02 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-01-01 13:12:25 +0000
commitf110fc61334a2d6a13a87f782a84c4c79ff7ccb2 (patch)
treec6dbef86716ba14b5f7d58e70791b67968124047
parentReleasing debian version 1.11.1+dfsg-2. (diff)
downloadnetdata-f110fc61334a2d6a13a87f782a84c4c79ff7ccb2.tar.xz
netdata-f110fc61334a2d6a13a87f782a84c4c79ff7ccb2.zip
Readding debconf-handling of health_alarm_notify.conf (Reopens: #904459).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/netdata.config20
-rw-r--r--debian/netdata.postinst.in26
-rw-r--r--debian/netdata.templates14
-rw-r--r--debian/po/POTFILES.in1
-rw-r--r--debian/po/de.po54
-rw-r--r--debian/po/fr.po52
-rw-r--r--debian/po/nl.po52
-rw-r--r--debian/po/pt.po50
-rw-r--r--debian/po/ru.po52
-rw-r--r--debian/po/templates.pot50
10 files changed, 371 insertions, 0 deletions
diff --git a/debian/netdata.config b/debian/netdata.config
new file mode 100644
index 00000000..eb2796f4
--- /dev/null
+++ b/debian/netdata.config
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+set -e
+
+CONFFILE="/etc/netdata/health_alarm_notify.conf"
+
+. /usr/share/debconf/confmodule
+
+if [ -e "${CONFFILE}" ]; then
+ # contains bashisms
+ . ${CONFFILE} || true
+
+ db_set netdata/send_email "${SEND_EMAIL}"
+fi
+
+db_settitle netdata/title
+db_input low netdata/send_email || true
+db_go
+
+db_stop
diff --git a/debian/netdata.postinst.in b/debian/netdata.postinst.in
index d4fe0171..49ed6495 100644
--- a/debian/netdata.postinst.in
+++ b/debian/netdata.postinst.in
@@ -2,8 +2,34 @@
set -e
+CONFFILE="/etc/netdata/health_alarm_notify.conf"
+
+. /usr/share/debconf/confmodule
+
case "$1" in
configure)
+ db_get netdata/send_email
+ SEND_EMAIL="${RET:-true}" # boolean
+
+ db_stop
+
+ case "${SEND_EMAIL}" in
+ true)
+ SEND_EMAIL="YES"
+ ;;
+
+ *)
+ SEND_EMAIL="NO"
+ ;;
+ esac
+
+ if [ -e "${CONFFILE}" ]; then
+ sed -e "s|^ *SEND_EMAIL=.*|SEND_EMAIL=\"${SEND_EMAIL}\"|" \
+ < "${CONFFILE}" > "${CONFFILE}.tmp"
+
+ mv -f "${CONFFILE}.tmp" "${CONFFILE}"
+ fi
+
if [ -z "$2" ]; then
if ! getent group netdata >/dev/null; then
addgroup --quiet --system netdata
diff --git a/debian/netdata.templates b/debian/netdata.templates
new file mode 100644
index 00000000..b21b81e3
--- /dev/null
+++ b/debian/netdata.templates
@@ -0,0 +1,14 @@
+Template: netdata/title
+Type: title
+_Description: netdata: Configuration
+
+Template: netdata/send_email
+Type: boolean
+Default: true
+_Description: send emails:
+ netdata sends emails for warnings and alerts to root@localhost for
+ monitoring purposes. Potentially this can trigger a lot of emails.
+ .
+ Please choose to enable or disable sending emails.
+ .
+ If unsure, allow it to send emails (default).
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644
index 00000000..e4039025
--- /dev/null
+++ b/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] netdata.templates
diff --git a/debian/po/de.po b/debian/po/de.po
new file mode 100644
index 00000000..1333b088
--- /dev/null
+++ b/debian/po/de.po
@@ -0,0 +1,54 @@
+# German debconf translation of netdata
+# Copyright (C) 2018 Helge Kreutzmann <debian@helgefjell.de>
+# This file is distributed under the same license as the netdata package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: netdata 1.10.0+dfsg-1\n"
+"Report-Msgid-Bugs-To: netdata@packages.debian.org\n"
+"POT-Creation-Date: 2018-02-27 10:30+0100\n"
+"PO-Revision-Date: 2018-08-18 13:32+0200\n"
+"Last-Translator: Helge Kreutzmann <debian@helgefjell.de>\n"
+"Language-Team: german <debian-l10n-german@lists.debian.org>\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: title
+#. Description
+#: ../netdata.templates:1001
+msgid "netdata: Configuration"
+msgstr "netdata: Konfiguration"
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "send emails:"
+msgstr "E-Mails versenden:"
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid ""
+"netdata sends emails for warnings and alerts to root@localhost for "
+"monitoring purposes. Potentially this can trigger a lot of emails."
+msgstr ""
+"Netdata sendet zu Überwachungszwecken E-Mails mit Warnungen und Alarmen an "
+"root@localhost. Dies kann ein hohes E-Mailaufkommen nach sich ziehen."
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "Please choose to enable or disable sending emails."
+msgstr ""
+"Bitte wählen Sie aus, ob Sie das Senden von E-Mails aktivieren oder "
+"deaktivieren möchten."
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "If unsure, allow it to send emails (default)."
+msgstr ""
+"Wenn Sie unsicher sind, erlauben Sie das (voreingestellte) Versenden von E-"
+"Mails."
diff --git a/debian/po/fr.po b/debian/po/fr.po
new file mode 100644
index 00000000..38701833
--- /dev/null
+++ b/debian/po/fr.po
@@ -0,0 +1,52 @@
+# French debconf translation of netdata
+# Copyright (C) 2018 Alban Vidal <alban.vidal@zordhak.fr>
+# This file is distributed under the same license as the netdata package.
+msgid ""
+msgstr ""
+"Project-Id-Version: netdata 1.10.0\n"
+"Report-Msgid-Bugs-To: netdata@packages.debian.org\n"
+"POT-Creation-Date: 2018-02-27 10:30+0100\n"
+"PO-Revision-Date: 2018-05-12 22:25+0100\n"
+"Last-Translator: Alban Vidal <alban.vidal@zordhak.fr>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"Language: fr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+
+#. Type: title
+#. Description
+#: ../netdata.templates:1001
+msgid "netdata: Configuration"
+msgstr "netdata : configuration"
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "send emails:"
+msgstr "Envoi des courriels :"
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid ""
+"netdata sends emails for warnings and alerts to root@localhost for "
+"monitoring purposes. Potentially this can trigger a lot of emails."
+msgstr ""
+"netdata envoie des courriels d'avertissement et d'alerte à root@localhost "
+"à des fins de surveillance. Potentiellement, cela peut produire l'envoi de "
+"beaucoup de courriels."
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "Please choose to enable or disable sending emails."
+msgstr ""
+"Veuillez choisir si vous souhaitez activer ou non l'envoi des courriels."
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "If unsure, allow it to send emails (default)."
+msgstr "Si vous n'êtes pas sûr, autorisez l'envoi des courriels (par défaut)."
diff --git a/debian/po/nl.po b/debian/po/nl.po
new file mode 100644
index 00000000..1b00501d
--- /dev/null
+++ b/debian/po/nl.po
@@ -0,0 +1,52 @@
+# Dutch debconf translation of netdata
+# Copyright (C) 2018 Frans Spiesschaert <Frans.Spiesschaert@yucom.be>
+# This file is distributed under the same license as the netdata package.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: netdata 1.10.0+dfsg-1\n"
+"Report-Msgid-Bugs-To: netdata@packages.debian.org\n"
+"POT-Creation-Date: 2018-02-27 10:30+0100\n"
+"PO-Revision-Date: 2018-05-08 15:18+0200\n"
+"Last-Translator: Frans Spiesschaert <Frans.Spiesschaert@yucom.be>\n"
+"Language-Team: Debian Dutch l10n Team <debian-l10n-dutch@lists.debian.org>\n"
+"Language: nl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: title
+#. Description
+#: ../netdata.templates:1001
+msgid "netdata: Configuration"
+msgstr "netdata: configuratie"
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "send emails:"
+msgstr "e-mails sturen:"
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid ""
+"netdata sends emails for warnings and alerts to root@localhost for "
+"monitoring purposes. Potentially this can trigger a lot of emails."
+msgstr ""
+"In functie van toezicht stuurt netdata bij waarschuwingen en problemen een e-"
+"mail naar root@localhost. Mogelijk kan dit om veel e-mails gaan."
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "Please choose to enable or disable sending emails."
+msgstr ""
+"Kies of het sturen van e-mails geactiveerd of uitgeschakeld moet worden."
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "If unsure, allow it to send emails (default)."
+msgstr "Laat bij twijfel het sturen van e-mails toe (standaard)."
diff --git a/debian/po/pt.po b/debian/po/pt.po
new file mode 100644
index 00000000..42f64fbf
--- /dev/null
+++ b/debian/po/pt.po
@@ -0,0 +1,50 @@
+# Portuguese debconf translation of netdata
+# Copyright (C) 2018 Rui Branco <ruipb@debianpt.org>
+# This file is distributed under the same license as the netdata package.
+msgid ""
+msgstr ""
+"Project-Id-Version: netdata\n"
+"Report-Msgid-Bugs-To: netdata@packages.debian.org\n"
+"POT-Creation-Date: 2018-02-27 10:30+0100\n"
+"PO-Revision-Date: 2018-05-09 20:33+0000\n"
+"Last-Translator: Rui Branco - DebianPT <ruipb@debianpt.org>\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"Language: pt\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#. Type: title
+#. Description
+#: ../netdata.templates:1001
+msgid "netdata: Configuration"
+msgstr "netdata: Configuração"
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "send emails:"
+msgstr "enviar emails:"
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid ""
+"netdata sends emails for warnings and alerts to root@localhost for "
+"monitoring purposes. Potentially this can trigger a lot of emails."
+msgstr ""
+"O netdata envia emails de avisos e alertas para root@localhost "
+"com objectivos de monitorização. Podem ser gerados muitos emails."
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "Please choose to enable or disable sending emails."
+msgstr "Por favor escolha activar ou desactivar o envio de emails."
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "If unsure, allow it to send emails (default)."
+msgstr "Na dúvida, permita o envio de emails (predefinição)."
diff --git a/debian/po/ru.po b/debian/po/ru.po
new file mode 100644
index 00000000..e0dbf7ce
--- /dev/null
+++ b/debian/po/ru.po
@@ -0,0 +1,52 @@
+# Russian debconf translation of netdata
+# Copyright (C) 2018 Lev Lamberov <dogsleg@debian.org>
+# This file is distributed under the same license as the netdata package.
+msgid ""
+msgstr ""
+"Project-Id-Version: netdata\n"
+"Report-Msgid-Bugs-To: netdata@packages.debian.org\n"
+"POT-Creation-Date: 2018-02-27 10:30+0100\n"
+"PO-Revision-Date: 2018-05-06 12:23+0500\n"
+"Last-Translator: Lev Lamberov <dogsleg@debian.org>\n"
+"Language-Team: Debian L10n Russian <debian-l10n-russian@lists.debian.org>\n"
+"Language: ru\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. Type: title
+#. Description
+#: ../netdata.templates:1001
+msgid "netdata: Configuration"
+msgstr "netdata: Настройка"
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "send emails:"
+msgstr "отправка электронной почты:"
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid ""
+"netdata sends emails for warnings and alerts to root@localhost for "
+"monitoring purposes. Potentially this can trigger a lot of emails."
+msgstr ""
+"Утилита netdata с целью мониторинга отправляет электронную почту с "
+"предупреждениями и оповещениями об опасной ситуации по адресу "
+"root@localhost. Это может привести к отправке большого количества сообщений."
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "Please choose to enable or disable sending emails."
+msgstr "Выберите, включить или отключить отправку сообщений."
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "If unsure, allow it to send emails (default)."
+msgstr "Если вы не уверены, то разрешите отправку сообщений (по умолчанию)."
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644
index 00000000..ca5f41a0
--- /dev/null
+++ b/debian/po/templates.pot
@@ -0,0 +1,50 @@
+# Messages for netdata email configuration
+# Copyright (C) 2018
+# This file is distributed under the same license as the netdata package.
+# Daniel Baumann <daniel.baumann@progress-linux.org>
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: netdata\n"
+"Report-Msgid-Bugs-To: netdata@packages.debian.org\n"
+"POT-Creation-Date: 2018-02-27 10:30+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: title
+#. Description
+#: ../netdata.templates:1001
+msgid "netdata: Configuration"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "send emails:"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid ""
+"netdata sends emails for warnings and alerts to root@localhost for "
+"monitoring purposes. Potentially this can trigger a lot of emails."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "Please choose to enable or disable sending emails."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../netdata.templates:2001
+msgid "If unsure, allow it to send emails (default)."
+msgstr ""