diff options
-rw-r--r-- | manifests/nrpe.pp | 4 | ||||
-rw-r--r-- | manifests/nrpe/debian.pp | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/manifests/nrpe.pp b/manifests/nrpe.pp index 3ef7d07..8482df8 100644 --- a/manifests/nrpe.pp +++ b/manifests/nrpe.pp @@ -8,10 +8,10 @@ class nagios::nrpe { include nagios::nrpe::freebsd } - 'Debian': { + 'Debian','Ubuntu': { if $nagios_nrpe_pid_file == '' { $nagios_nrpe_pid_file = '/var/run/nagios/nrpe.pid' } if $nagios_plugin_dir == '' { $nagios_plugin_dir = '/usr/lib/nagios/plugins' } - include nagios::nrpe::linux + include nagios::nrpe::debian } default: { if $nagios_nrpe_pid_file == '' { $nagios_nrpe_pid_file = '/var/run/nrpe.pid' } diff --git a/manifests/nrpe/debian.pp b/manifests/nrpe/debian.pp new file mode 100644 index 0000000..bf350ff --- /dev/null +++ b/manifests/nrpe/debian.pp @@ -0,0 +1,5 @@ +class nagios::nrpe::debian inherits nagios::nrpe::base { + Service['nagios-nrpe-server'] { + hasstatus => false, + } +} |