blob: f6556c9d7abc94a817e4a499a6a24cebab02ac6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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$';
'process-host-perfdata-file-pnp4nagios-bulk-npcd':
command_line => '/bin/mv /var/lib/nagios3/host-perfdata /var/spool/pnp4nagios/npcd/host-perfdata.$TIMET$'
}
# nagios host templates
# http://docs.pnp4nagios.org/de/pnp-0.6/webfe
# this doesn't work, see manifests/pnp4nagios.pp
#nagios_host { 'host-pnp':
# action_url => '/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_',
# register => 0,
# #ensure => absent;
#}
#nagios_service { 'service-pnp':
# #naginatorname => 'service-pnp',
# action_url => '/pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$',
# register => 0,
# ensure => absent;
#}
}
|