From: alex Date: Mon, 13 Nov 2023 22:32:19 +0000 (+0100) Subject: Parse nagios.log and send notifications to clickhouse.h1 X-Git-Tag: 20240214-emacs~95 X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=aa7b9fd9c65de8ef30bfd63e23c7e47420aa8053;p=alex.git Parse nagios.log and send notifications to clickhouse.h1 --- diff --git a/personal_infra/puppet/site/nagios.h1.int.pdp7.net.pp b/personal_infra/puppet/site/nagios.h1.int.pdp7.net.pp index 262b802..4010d3c 100644 --- a/personal_infra/puppet/site/nagios.h1.int.pdp7.net.pp +++ b/personal_infra/puppet/site/nagios.h1.int.pdp7.net.pp @@ -17,4 +17,48 @@ node 'nagios.h1.int.pdp7.net' { } package {'nagios-plugins-pgsql':} + + class {'otel': + version => '0.88.0', + } + + # TODO: add otelcol-contrib user to nagios group + file {'/etc/otelcol-contrib/config.yaml': + content => @("EOT") + exporters: + otlp: + endpoint: clickhouse.h1.int.pdp7.net:4317 + tls: + insecure: true + + receivers: + filelog: + include: [ /var/log/nagios/nagios.log ] + operators: + - type: regex_parser + regex: '^\[(?P