nagios: Added LDAP and LDAPs service targets.
This commit is contained in:
parent
16b3f0d71e
commit
ce958b5e3e
2 changed files with 31 additions and 0 deletions
|
@ -148,6 +148,13 @@ define command{
|
|||
}
|
||||
|
||||
|
||||
# 'check_ldap' command definition
|
||||
define command{
|
||||
command_name check_ldap
|
||||
command_line $USER1$/check_ldap -H $HOSTADDRESS$ -b $ARG1$
|
||||
}
|
||||
|
||||
|
||||
# 'check_ssh' command definition
|
||||
define command{
|
||||
command_name check_ssh
|
||||
|
|
|
@ -105,6 +105,30 @@ class nagios::target::imaps inherits nagios::target {
|
|||
}
|
||||
|
||||
|
||||
# Configure ldap service target.
|
||||
#
|
||||
class nagios::target::ldap inherits nagios::target {
|
||||
|
||||
@@nagios::service { "${::homename}_ldap":
|
||||
command => "check_ldap!${ldap_basedn}",
|
||||
description => "LDAP",
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Configure ldaps service target.
|
||||
#
|
||||
class nagios::target::ldaps inherits nagios::target {
|
||||
|
||||
@@nagios::service { "${::homename}_ldaps":
|
||||
command => "check_ldap!${ldap_basedn} -p 636",
|
||||
description => "LDAPs",
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Configure smtp service target.
|
||||
#
|
||||
class nagios::target::smtp inherits nagios::target {
|
||||
|
|
Loading…
Add table
Reference in a new issue