diff options
author | varac <varacanero@zeromail.org> | 2016-03-10 17:19:52 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-03-10 17:22:26 +0100 |
commit | c4f9160f135243f305669e1a731812dd6c3573de (patch) | |
tree | fcffea399a7d33b8fe2d5cfbe64f3dde18a1258b /manifests/defaults/pnp4nagios.pp | |
parent | bad75052820f221df575a1942417712e35ab1af7 (diff) |
Improve relationship of nagios resources
Diffstat (limited to 'manifests/defaults/pnp4nagios.pp')
-rw-r--r-- | manifests/defaults/pnp4nagios.pp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/manifests/defaults/pnp4nagios.pp b/manifests/defaults/pnp4nagios.pp index 662d13b..58676c5 100644 --- a/manifests/defaults/pnp4nagios.pp +++ b/manifests/defaults/pnp4nagios.pp @@ -1,10 +1,14 @@ +# configure default cmds for pnp4nagios class nagios::defaults::pnp4nagios { - # performance data cmds + + # performance data cmds # http://docs.pnp4nagios.org/de/pnp-0.6/config#bulk_mode_mit_npcd nagios_command { 'process-service-perfdata-file-pnp4nagios-bulk-npcd': - command_line => '/bin/mv /var/lib/nagios3/service-perfdata /var/spool/pnp4nagios/npcd/service-perfdata.$TIMET$'; + command_line => '/bin/mv /var/lib/nagios3/service-perfdata /var/spool/pnp4nagios/npcd/service-perfdata.$TIMET$', + require => Package['nagios']; 'process-host-perfdata-file-pnp4nagios-bulk-npcd': - command_line => '/bin/mv /var/lib/nagios3/host-perfdata /var/spool/pnp4nagios/npcd/host-perfdata.$TIMET$' + command_line => '/bin/mv /var/lib/nagios3/host-perfdata /var/spool/pnp4nagios/npcd/host-perfdata.$TIMET$', + require => Package['nagios']; } } |