nagios: Added DHCP service target.
This commit is contained in:
parent
9c2f621ef9
commit
2837e3ae85
2 changed files with 13 additions and 1 deletions
|
@ -179,7 +179,7 @@ define command{
|
|||
# 'check_dhcp' command definition
|
||||
define command{
|
||||
command_name check_dhcp
|
||||
command_line $USER1$/check_dhcp $ARG1$
|
||||
command_line $USER1$/check_dhcp -s $ARG1$
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -46,6 +46,18 @@ class nagios::target {
|
|||
}
|
||||
|
||||
|
||||
# Configure dhcp service target.
|
||||
#
|
||||
class nagios::target::dhcp inherits nagios::target {
|
||||
|
||||
@@nagios::service { "${::homename}_dhcp":
|
||||
command => "check_dhcp!${::homename}",
|
||||
description => "DHCP",
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Configure dig service target.
|
||||
#
|
||||
# === Parameters
|
||||
|
|
Loading…
Add table
Reference in a new issue