OP#672 add sshd nagios check

This commit is contained in:
2026-09-24 16:44:53 +02:00
parent d7a8ad6576
commit 65f6189906
2 changed files with 4 additions and 3 deletions

View File

@@ -29,6 +29,7 @@
- manage required files and directories including selinux context
- manage service
- (optional) manage firewall
- (optional) manage nagios monitoring for `sshd`
## Adding custom configurations

View File

@@ -6,12 +6,12 @@
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",
@@nagios_service { "check_sshd_${fqdn}":
check_command => "check_nrpe!check_sshd!${ssh_procs_allowed}!sshd",
use => 'generic-service',
host_name => $fqdn,
notification_period => '24x7',
service_description => "${fqdn}_check_ssh",
service_description => "${fqdn}_check_sshd",
target => $ssh_target_service,
owner => 'nagios',
group => 'nagios',