node 'nagios.h1.int.pdp7.net' { class {'nagios': otel_host => 'clickhouse.h1.int.pdp7.net', } class {'nagios::k8s':} $k8s_hosts = lookup("groups.k8s") $k8s_hosts.each |String $k8s_host| { nagios_host {$k8s_host: use => 'generic-host', max_check_attempts => 5, contact_groups => 'admins', hostgroups => 'k8s', check_command => 'check-host-alive', } } nagios_host {"shellyplusplugs-b0b21c1329b4.mad.int.pdp7.net": use => 'generic-host', max_check_attempts => 5, contact_groups => 'admins', check_command => 'check-host-alive', } nagios_host {"shellyhtg3-54320453c804.mad.int.pdp7.net": use => 'generic-host', max_check_attempts => 5, contact_groups => 'admins', check_command => 'check-host-alive', } nagios_host {"archerc7.bcn.int.pdp7.net": use => 'generic-host', max_check_attempts => 5, contact_groups => 'admins', check_command => 'check-host-alive', } nagios_host {"router4g.bcn.int.pdp7.net": use => 'generic-host', max_check_attempts => 5, contact_groups => 'admins', check_command => 'check-host-alive', } nagios_service {'alex.corcoles.net-gemini-cert': use => 'generic-service', service_description => 'alex.corcoles.net-gemini-cert', host_name => 'k8s-prod.h1.int.pdp7.net', check_command => 'check_alex.corcoles.net-gemini-cert', require => Package['nagios'], notify => Service['nagios'], owner => 'nagios', } nagios_command {'check_alex.corcoles.net-gemini-cert': command_name => 'check_alex.corcoles.net-gemini-cert', command_line => '/usr/lib64/nagios/plugins/check_http -H alex.corcoles.net -C 10,5 -p 1965', require => Package['nagios'], notify => Service['nagios'], owner => 'nagios', } 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