From d0b45ed20e2d13e70d13dbd53a8a8ba8650298c9 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Mon, 6 Jun 2011 18:01:57 -0400 Subject: Add a nagios::nrpe::xinetd class We don't really manage everything with this class (e.g. not the config for running NRPE under xinetd). We ensure that the nrpe service is not running since xinetd is the one that's supposed to spawn nrpe. This way we can manage the NRPE config and commands, but it does not conflict with xinetd. --- manifests/nrpe/xinetd.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 manifests/nrpe/xinetd.pp (limited to 'manifests/nrpe/xinetd.pp') diff --git a/manifests/nrpe/xinetd.pp b/manifests/nrpe/xinetd.pp new file mode 100644 index 0000000..e13ed76 --- /dev/null +++ b/manifests/nrpe/xinetd.pp @@ -0,0 +1,11 @@ +# This is created only to cope with cases where we're not the only ones +# administering a machine and NRPE is running in xinetd. +class nagios::nrpe::xinetd inherits base { + + Service ["nagios-nrpe-server"] { + ensure => stopped, + } + + # TODO manage the xinetd config file that glues with NRPE + +} -- cgit v1.2.3