OP#672 add sshd nagios check
This commit is contained in:
22
manifests/monitoring/target.pp
Normal file
22
manifests/monitoring/target.pp
Normal file
@@ -0,0 +1,22 @@
|
||||
## confdroid_ssh::monitoring::target.pp
|
||||
# Module name: confdroid_ssh
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages Nagios monitoring settings
|
||||
##############################################################################
|
||||
class confdroid_ssh::monitoring::target (
|
||||
) inherits confdroid_ssh::params {
|
||||
if $ssh_manage_nagios == true {
|
||||
@@nagios_service { "check_ssh_${fqdn}":
|
||||
check_command => "check_nrpe!check_ssh!${ssh_procs_allowed}!sshd",
|
||||
use => 'generic-service',
|
||||
host_name => $fqdn,
|
||||
notification_period => '24x7',
|
||||
service_description => "${fqdn}_check_ssh",
|
||||
target => $ssh_target_service,
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
contacts => $ssh_target_contacts,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user