summaryrefslogtreecommitdiff
path: root/puppet/modules/nagios/manifests/defaults/pnp4nagios.pp
blob: 58676c5a352f97ead098edc8cb778da51bb54397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# configure default cmds for pnp4nagios
class nagios::defaults::pnp4nagios {

  # 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$',
            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$',
            require      => Package['nagios'];
    }
}