Puppet Class: cd_apache::monitoring::target
+-
+
- Inherits: +
- cd_apache::params +
-
+
- Defined in: +
- + manifests/monitoring/target.pp + +
Summary
+ class manages exports for nagios monitoring + +Overview
+cd_apache::monitoring::target.pp +Module name: cd_apache +Author: Arne Teuke +(arne_teuke@puppetsoft.com) +License: + This file is part of cd_apache.
+ +cd_apache is used for providing automatic configuration of + <service / +purpose> + Copyright (C) 2014 PuppetSoft (copyright@puppetsoft.com) + This +program is free software: you can redistribute it and/or modify + it under +the terms of the GNU General Public License as published by + the Free +Software Foundation, either version 3 of the License, or + (at your option) +any later version.
+ +This program is distributed in the hope that it will be useful, + but +WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License +for more details.
+ +You should have received a copy of the GNU General Public License + along +with this program. If not, see www.gnu.org/licenses/.
+ +
+ + + +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47+ |
+
+ # File 'manifests/monitoring/target.pp', line 24
+
+class cd_apache::monitoring::target (
+
+) inherits cd_apache::params {
+
+ case $ae_incl_target {
+
+ false: { notify {'Nagios Service target for check_httpd has been disabled via parameters / ENC override': }
+ }
+ default: {
+ @@nagios_service { "check_http_${::hostname}":
+ check_command => 'check_http',
+ use => 'generic-service',
+ host_name => $::fqdn,
+ notification_period => '24x7',
+ service_description => "${::hostname}_check_http",
+ target => $ae_target_service,
+ owner => 'nagios',
+ group => 'nagios',
+ mode => '6640',
+ contacts => 'ops',
+ }
+ }
+ }
+}
+ |
+