diff --git a/nagios/files/commands.cfg b/nagios/files/commands.cfg index d656f38..aea1223 100644 --- a/nagios/files/commands.cfg +++ b/nagios/files/commands.cfg @@ -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$ } diff --git a/nagios/manifests/target.pp b/nagios/manifests/target.pp index 133fce7..6567716 100644 --- a/nagios/manifests/target.pp +++ b/nagios/manifests/target.pp @@ -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