Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
Removing hard dependency on NRPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Freeaqingme committed Nov 10, 2013
1 parent 0007e9e commit 0fea30c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions manifests/plugin.pp
Expand Up @@ -53,8 +53,6 @@
$enable = true
) {

include nrpe

$bool_enable = any2bool($enable)
$safe_name = regsubst($name, '(/| )', '_', 'G')
$ensure = $bool_enable ? {
Expand All @@ -74,6 +72,8 @@
}

if ($tool =~ /nagios/) {
include nrpe

nagios::service { $safe_name:
ensure => $ensure,
options_hash => $options_hash,
Expand All @@ -96,6 +96,8 @@
}

if ($tool =~ /icinga/) {
include nrpe

icinga::service { $safe_name:
ensure => $ensure,
template => $real_template,
Expand Down

0 comments on commit 0fea30c

Please sign in to comment.