blob: c07e99d8aefc1a189ef4d069e44b29543d75f462 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
class munin::plugins::nagios inherits munin::plugins::base {
munin::plugin::deploy {
nagios_hosts: config => 'user root';
nagios_svc: config => 'user root';
nagios_perf_hosts: ensure => nagios_perf_, config => 'user root';
nagios_perf_svc: ensure => nagios_perf_, config => 'user root';
}
exec { 'munin_nagios2stats_link':
command => 'ln -s /usr/sbin/nagios2stats /usr/local/sbin/nagiostats',
onlyif => ["test ! -e /usr/local/sbin/nagiostats", "test -e /usr/sbin/nagios2stats"],
}
exec { 'munin_nagios3stats_link':
command => 'ln -s /usr/sbin/nagios3stats /usr/local/sbin/nagiostats',
onlyif => ["test ! -e /usr/local/sbin/nagiostats", "test -e /usr/sbin/nagios3stats"],
}
}
|