diff --git a/doc/_index.html b/doc/_index.html
index 11f83e1..dfccf3e 100644
--- a/doc/_index.html
+++ b/doc/_index.html
@@ -98,6 +98,11 @@
+
+ confdroid_fail2ban::monitoring::target
+
+
+
confdroid_fail2ban::params
diff --git a/doc/file.README.html b/doc/file.README.html
index 52975b3..8116c35 100644
--- a/doc/file.README.html
+++ b/doc/file.README.html
@@ -135,6 +135,8 @@
manage service status
+Sometimes it is required to have the service on a host stopped for some reason, i.e. for troubleshooting fail2ban. In that case you can simply set fn_enable_serviceto stopped via ENC.
+
Dependencies
All dependencies must be included in the catalogue.
diff --git a/doc/index.html b/doc/index.html
index 3fea7d4..7218daf 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -135,6 +135,8 @@
manage service status
+Sometimes it is required to have the service on a host stopped for some reason, i.e. for troubleshooting fail2ban. In that case you can simply set fn_enable_serviceto stopped via ENC.
+
Dependencies
All dependencies must be included in the catalogue.
diff --git a/doc/puppet_class_list.html b/doc/puppet_class_list.html
index 8dad68f..6fc4bc4 100644
--- a/doc/puppet_class_list.html
+++ b/doc/puppet_class_list.html
@@ -78,7 +78,14 @@
-
+
+
+
+
+
+
diff --git a/doc/puppet_classes/confdroid_fail2ban_3A_3Amonitoring_3A_3Atarget.html b/doc/puppet_classes/confdroid_fail2ban_3A_3Amonitoring_3A_3Atarget.html
new file mode 100644
index 0000000..66a312c
--- /dev/null
+++ b/doc/puppet_classes/confdroid_fail2ban_3A_3Amonitoring_3A_3Atarget.html
@@ -0,0 +1,156 @@
+
+
+
+
+
+
+ Puppet Class: confdroid_fail2ban::monitoring::target
+
+ — Documentation by YARD 0.9.36
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Puppet Class: confdroid_fail2ban::monitoring::target
+
+
+
Summary
+ class manages exports for nagios monitoring
+
+
Overview
+
+
+
+
confdroid_fail2ban::monitoring::target.pp Module name: confdroid_fail2ban Author: 12ww1160 (12ww1160@puppetsoft.com)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+
+
+ # File 'manifests/monitoring/target.pp', line 6
+
+class confdroid_fail2ban::monitoring::target (
+
+) inherits confdroid_fail2ban::params {
+ if $fn_incl_target == true {
+ @@nagios_service { "check_fail2ban_${fqdn}":
+ check_command => 'check_procs -c 1:1 -a fail2ban-server',
+ use => 'generic-service',
+ host_name => $fqdn,
+ notification_period => '24x7',
+ service_description => "${fqdn}_check_fail2ban",
+ target => $fn_target_service,
+ owner => 'nagios',
+ group => 'nagios',
+ mode => '0640',
+ contacts => $fn_target_contacts,
+ }
+ }
+}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/doc/puppet_classes/confdroid_fail2ban_3A_3Aparams.html b/doc/puppet_classes/confdroid_fail2ban_3A_3Aparams.html
index fd380eb..d5b02b5 100644
--- a/doc/puppet_classes/confdroid_fail2ban_3A_3Aparams.html
+++ b/doc/puppet_classes/confdroid_fail2ban_3A_3Aparams.html
@@ -77,6 +77,8 @@
confdroid_fail2ban::main::service
+ confdroid_fail2ban::monitoring::target
+
@@ -813,6 +815,60 @@
—
the fail path. defaults to fedora.
+
+
+
+
+
+
+ fn_incl_target
+
+
+ (Boolean )
+
+
+ (defaults to: false )
+
+
+ —
+
+
Whether to include monitoring targets for nagios. If set to true, monitoring targets will be included for the service.
+
+
+
+
+
+
+ fn_target_service
+
+
+ (String )
+
+
+ (defaults to: '/etc/nagios/conf.d/fail2ban_service.cfg' )
+
+
+ —
+
+
The path to the nagios service configuration file to be created if fn_incl_target is set to true.
+
+
+
+
+
+
+ fn_target_contacts
+
+
+ (String )
+
+
+ (defaults to: 'nagiosadmin' )
+
+
+ —
+
+
The nagios contacts to be notified for the service if fn_incl_target is set to true.
@@ -828,12 +884,6 @@
-104
-105
-106
-107
-108
-109
110
111
112
@@ -915,10 +965,21 @@
188
189
190
-191
+191
+192
+193
+194
+195
+196
+197
+198
+199
+200
+201
+202
- # File 'manifests/params.pp', line 104
+ # File 'manifests/params.pp', line 110
class confdroid_fail2ban::params (
@@ -974,6 +1035,11 @@ class confdroid_fail2ban::params (
String $fn_default_action = 'action_',
String $fn_jail_paths = 'fedora',
+# nagios
+ Boolean $fn_incl_target = false,
+ String $fn_target_service = '/etc/nagios/conf.d/fail2ban_service.cfg',
+ String $fn_target_contacts = 'nagiosadmin',
+
) {
# shortcuts
$fqdn = $facts['networking']['fqdn']