Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/nagios/manifests/client.pp

Issue 10992045: Switch to bwm-ng for bandwidth monitoring (Closed)
Patch Set: Created June 28, 2013, 10:02 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 class nagios::client($server_address) { 1 class nagios::client($server_address) {
2 package {['nagios-nrpe-server', 'vnstat']: ensure => present} 2 package {['nagios-nrpe-server', 'bwm-ng']: ensure => present}
3 3
4 file {'/etc/nagios/nrpe.cfg': 4 file {'/etc/nagios/nrpe.cfg':
5 mode => 644, 5 mode => 644,
6 owner => root, 6 owner => root,
7 group => root, 7 group => root,
8 content => template('nagios/nrpe.cfg.erb'), 8 content => template('nagios/nrpe.cfg.erb'),
9 require => Package['nagios-nrpe-server'], 9 require => Package['nagios-nrpe-server'],
10 notify => Service['nagios-nrpe-server'] 10 notify => Service['nagios-nrpe-server']
11 } 11 }
12 12
13 service {'nagios-nrpe-server': 13 service {'nagios-nrpe-server':
14 ensure => running, 14 ensure => running,
15 enable => true, 15 enable => true,
16 subscribe => File['/etc/nagios/nrpe.cfg'] 16 subscribe => File['/etc/nagios/nrpe.cfg']
17 } 17 }
18 18
19 file {'/usr/lib/nagios/plugins/check_bandwidth': 19 file {'/usr/lib/nagios/plugins/check_bandwidth':
20 ensure => present, 20 ensure => present,
21 mode => 755, 21 mode => 755,
22 owner => root, 22 owner => root,
23 group => root, 23 group => root,
24 source => 'puppet:///modules/nagios/check_bandwidth', 24 source => 'puppet:///modules/nagios/check_bandwidth',
25 require => Package['nagios-nrpe-server'] 25 require => Package['nagios-nrpe-server']
26 } 26 }
27 } 27 }
OLDNEW
« modules/nagios/files/check_bandwidth ('K') | « modules/nagios/files/check_bandwidth ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld