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

Unified Diff: modules/nagios/manifests/client.pp

Issue 12375002: Implement more detailed bandwidth monitoring (Closed)
Patch Set: Fixed comments Created Oct. 10, 2013, 9:36 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/nagios/files/sudoers ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/nagios/manifests/client.pp
===================================================================
--- a/modules/nagios/manifests/client.pp
+++ b/modules/nagios/manifests/client.pp
@@ -1,33 +1,44 @@
class nagios::client($server_address) {
- package {['nagios-nrpe-server', 'bwm-ng']: ensure => present}
+ package {['nagios-nrpe-server', 'tcpdump']: ensure => present}
file {'/etc/nagios/nrpe.cfg':
mode => 644,
owner => root,
group => root,
content => template('nagios/nrpe.cfg.erb'),
require => Package['nagios-nrpe-server'],
notify => Service['nagios-nrpe-server']
}
service {'nagios-nrpe-server':
ensure => running,
enable => true,
subscribe => File['/etc/nagios/nrpe.cfg']
}
+ file {'/etc/sudoers.d/nagios':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 0440,
+ source => 'puppet:///modules/nagios/sudoers'
+ }
+
file {'/usr/lib/nagios/plugins/check_bandwidth':
ensure => present,
mode => 755,
owner => root,
group => root,
source => 'puppet:///modules/nagios/check_bandwidth',
- require => Package['nagios-nrpe-server']
+ require => [
+ Package['nagios-nrpe-server'],
+ File['/etc/sudoers.d/nagios'],
+ ]
}
file {'/usr/lib/nagios/plugins/check_connections':
ensure => present,
mode => 755,
owner => root,
group => root,
source => 'puppet:///modules/nagios/check_connections',
« no previous file with comments | « modules/nagios/files/sudoers ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld