From c3e2e77f2e498ae716cd395755e1aa3beaf8f423 Mon Sep 17 00:00:00 2001 From: Maria Haider Date: Tue, 17 Apr 2018 15:33:49 +0200 Subject: [PATCH] Created a class for a special check only for nic.komreg.net --- global/overlay/etc/puppet/cosmos-rules.yaml | 1 + global/overlay/etc/puppet/manifests/cosmos-site.pp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/global/overlay/etc/puppet/cosmos-rules.yaml b/global/overlay/etc/puppet/cosmos-rules.yaml index 47448751..c2fb9c3f 100644 --- a/global/overlay/etc/puppet/cosmos-rules.yaml +++ b/global/overlay/etc/puppet/cosmos-rules.yaml @@ -25,6 +25,7 @@ nic.komreg.net: autoupdate: konsulter: nagios_monitor: + nic_checks: r1.komreg.net: sunet_iaas_cloud: diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index 04e2806a..ce297582 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -675,4 +675,8 @@ class nagios_monitor { # description => 'check https certificate validity on port 443', # contact_groups => ['alerts'] #} + +class nic_checks { + sunet::nagios::nrpe_check_nagios { 'nagios': } +} }