nagios: Added DHCP service target.

This commit is contained in:
Timo Makinen 2013-11-15 08:35:21 +02:00
parent 9c2f621ef9
commit 2837e3ae85
2 changed files with 13 additions and 1 deletions

View file

@ -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$
}

View file

@ -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