Compare commits
4 Commits
de7a6f2c8b
...
79899c86ee
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
79899c86ee | ||
|
|
9b3960cb28 | ||
|
|
53c785c25d | ||
| 65f6189906 |
@@ -29,6 +29,7 @@
|
|||||||
- manage required files and directories including selinux context
|
- manage required files and directories including selinux context
|
||||||
- manage service
|
- manage service
|
||||||
- (optional) manage firewall
|
- (optional) manage firewall
|
||||||
|
- (optional) manage nagios monitoring for `sshd`
|
||||||
|
|
||||||
## Adding custom configurations
|
## Adding custom configurations
|
||||||
|
|
||||||
|
|||||||
@@ -104,6 +104,8 @@
|
|||||||
<p>manage service</p>
|
<p>manage service</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>(optional) manage firewall</p>
|
<p>(optional) manage firewall</p>
|
||||||
|
</li><li>
|
||||||
|
<p>(optional) manage nagios monitoring for <code>sshd</code></p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<h2 id="label-Adding+custom+configurations">Adding custom configurations</h2>
|
<h2 id="label-Adding+custom+configurations">Adding custom configurations</h2>
|
||||||
|
|||||||
@@ -104,6 +104,8 @@
|
|||||||
<p>manage service</p>
|
<p>manage service</p>
|
||||||
</li><li>
|
</li><li>
|
||||||
<p>(optional) manage firewall</p>
|
<p>(optional) manage firewall</p>
|
||||||
|
</li><li>
|
||||||
|
<p>(optional) manage nagios monitoring for <code>sshd</code></p>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
|
|
||||||
<h2 id="label-Adding+custom+configurations">Adding custom configurations</h2>
|
<h2 id="label-Adding+custom+configurations">Adding custom configurations</h2>
|
||||||
|
|||||||
@@ -125,12 +125,12 @@
|
|||||||
class confdroid_ssh::monitoring::target (
|
class confdroid_ssh::monitoring::target (
|
||||||
) inherits confdroid_ssh::params {
|
) inherits confdroid_ssh::params {
|
||||||
if $ssh_manage_nagios == true {
|
if $ssh_manage_nagios == true {
|
||||||
@@nagios_service { "check_ssh_${fqdn}":
|
@@nagios_service { "check_sshd_${fqdn}":
|
||||||
check_command => "check_nrpe!check_ssh!${ssh_procs_allowed}!sshd",
|
check_command => "check_nrpe!check_sshd!${ssh_procs_allowed}!sshd",
|
||||||
use => 'generic-service',
|
use => 'generic-service',
|
||||||
host_name => $fqdn,
|
host_name => $fqdn,
|
||||||
notification_period => '24x7',
|
notification_period => '24x7',
|
||||||
service_description => "${fqdn}_check_ssh",
|
service_description => "${fqdn}_check_sshd",
|
||||||
target => $ssh_target_service,
|
target => $ssh_target_service,
|
||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
|
|||||||
@@ -6,12 +6,12 @@
|
|||||||
class confdroid_ssh::monitoring::target (
|
class confdroid_ssh::monitoring::target (
|
||||||
) inherits confdroid_ssh::params {
|
) inherits confdroid_ssh::params {
|
||||||
if $ssh_manage_nagios == true {
|
if $ssh_manage_nagios == true {
|
||||||
@@nagios_service { "check_ssh_${fqdn}":
|
@@nagios_service { "check_sshd_${fqdn}":
|
||||||
check_command => "check_nrpe!check_ssh!${ssh_procs_allowed}!sshd",
|
check_command => "check_nrpe!check_sshd!${ssh_procs_allowed}!sshd",
|
||||||
use => 'generic-service',
|
use => 'generic-service',
|
||||||
host_name => $fqdn,
|
host_name => $fqdn,
|
||||||
notification_period => '24x7',
|
notification_period => '24x7',
|
||||||
service_description => "${fqdn}_check_ssh",
|
service_description => "${fqdn}_check_sshd",
|
||||||
target => $ssh_target_service,
|
target => $ssh_target_service,
|
||||||
owner => 'nagios',
|
owner => 'nagios',
|
||||||
group => 'nagios',
|
group => 'nagios',
|
||||||
|
|||||||
Reference in New Issue
Block a user