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

Delta Between Two Patch Sets: manifests/monitoringserver.pp

Issue 4810150141493248: Issue 122 - Puppet ENC via Hiera (Closed)
Left Patch Set: 112 - Puppet ENC via Hiera Created Nov. 27, 2014, 12:29 a.m.
Right Patch Set: Puppet ENC via Hiera - Without Arrow Alignment Created March 16, 2015, 2:04 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « manifests/issuesserver.pp ('k') | manifests/nodes.pp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 node 'server4' {
2 include puppetmaster
3
4 class {'nagios::server':
5 domain => 'monitoring.adblockplus.org',
6 certificate => 'monitoring.adblockplus.org_sslcert.pem',
7 private_key => 'monitoring.adblockplus.org_sslcert.key',
8 is_default => 'true',
9 htpasswd_source => 'puppet:///modules/private/nagios-htpasswd',
10 admins => ['*']
11 }
12
13 if $::environment == 'development' {
14 nagios_contact {'root':
15 service_notification_period => '24x7',
16 host_notification_period => '24x7',
17 service_notification_options => 'w,u,c,r',
18 host_notification_options => 'd,r',
19 service_notification_commands => 'notify-service-by-email',
20 host_notification_commands => 'notify-host-by-email',
21 email => 'root@localhost'
22 }
23
24 nagios_contactgroup {'admins':
25 alias => 'Nagios Administrators',
26 members => 'root'
27 }
28 } else {
29 nagios_contact {'abp-admins':
30 alias => 'Adblock Plus Administartors',
31 service_notification_period => '24x7',
32 host_notification_period => '24x7',
33 service_notification_options => 'w,u,c,r',
34 host_notification_options => 'd,r',
35 service_notification_commands => 'notify-service-by-email',
36 host_notification_commands => 'notify-host-by-email',
37 email => 'admins@adblockplus.org'
38 }
39
40 nagios_contactgroup {'admins':
41 alias => 'Nagios Administrators',
42 members => 'abp-admins'
43 }
44 }
45
46 nagios_command {'check_nrpe_timeout':
47 command_line => '/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG 1$ -t $ARG2$'
48 }
49
50 nagios_command {'check_easylist_http':
51 command_line => '/usr/lib/nagios/plugins/check_http -S -I $HOSTADDRESS$ -H e asylist-downloads.adblockplus.org -u /easylist.txt -k "Accept-Encoding: gzip,def late" -e "HTTP/1.1 200 OK"'
52 }
53
54 nagios_command {'check_notification_http':
55 command_line => '/usr/lib/nagios/plugins/check_http -S -I $HOSTADDRESS$ -H n otification.adblockplus.org -u /notification.json -k "Accept-Encoding: gzip,defl ate" -e "HTTP/1.1 200 OK"'
56 }
57
58 nagios_host {'server_4.adblockplus.org': use => 'generic-host'}
59 nagios_host {'server_5.adblockplus.org': use => 'generic-host'}
60 nagios_host {'server_6.adblockplus.org': use => 'generic-host'}
61 nagios_host {'server_7.adblockplus.org': use => 'generic-host'}
62 nagios_host {'server_10.adblockplus.org': use => 'generic-host'}
63 nagios_host {'server_11.adblockplus.org': use => 'generic-host'}
64 nagios_host {'server_12.adblockplus.org': use => 'generic-host'}
65 nagios_host {'server_15.adblockplus.org': use => 'generic-host'}
66 nagios_host {'server_16.adblockplus.org': use => 'generic-host'}
67 nagios_host {'server_19.adblockplus.org': use => 'generic-host'}
68 nagios_host {'download1.adblockplus.org': use => 'generic-host'}
69 nagios_host {'filter1.adblockplus.org': use => 'generic-host'}
70 nagios_host {'filter2.adblockplus.org': use => 'generic-host'}
71 nagios_host {'filter3.adblockplus.org': use => 'generic-host'}
72 nagios_host {'filter4.adblockplus.org': use => 'generic-host'}
73 nagios_host {'filter5.adblockplus.org': use => 'generic-host'}
74 nagios_host {'filter6.adblockplus.org': use => 'generic-host'}
75 nagios_host {'filter7.adblockplus.org': use => 'generic-host'}
76 nagios_host {'filter8.adblockplus.org': use => 'generic-host'}
77 nagios_host {'filter9.adblockplus.org': use => 'generic-host'}
78 nagios_host {'filter10.adblockplus.org': use => 'generic-host'}
79 nagios_host {'filter11.adblockplus.org': use => 'generic-host'}
80 nagios_host {'filter12.adblockplus.org': use => 'generic-host'}
81 nagios_host {'filter13.adblockplus.org': use => 'generic-host'}
82 nagios_host {'filter14.adblockplus.org': use => 'generic-host'}
83 nagios_host {'filter15.adblockplus.org': use => 'generic-host'}
84 nagios_host {'filter16.adblockplus.org': use => 'generic-host'}
85 nagios_host {'filter17.adblockplus.org': use => 'generic-host'}
86 nagios_host {'filter18.adblockplus.org': use => 'generic-host'}
87 nagios_host {'filtermaster1.adblockplus.org': use => 'generic-host'}
88 nagios_host {'notification1.adblockplus.org': use => 'generic-host'}
89 nagios_host {'notification2.adblockplus.org': use => 'generic-host'}
90 nagios_host {'update1.adblockplus.org': use => 'generic-host'}
91 nagios_host {'web1.adblockplus.org': use => 'generic-host'}
92 nagios_host {'stats1.adblockplus.org': use => 'generic-host'}
93 nagios_host {'issues1.adblockplus.org': use => 'generic-host'}
94 nagios_host {'codereview1.adblockplus.org': use => 'generic-host'}
95
96 nagios_hostgroup {'all': members => '*'}
97 nagios_hostgroup {'http-servers': members => 'server_4.adblockplus.org, server _10.adblockplus.org, server_16.adblockplus.org, download1.adblockplus.org, updat e1.adblockplus.org, web1.adblockplus.org, stats1.adblockplus.org, issues1.adbloc kplus.org, codereview1.adblockplus.org'}
98 nagios_hostgroup {'filter-servers': members => 'server_5.adblockplus.org, serv er_6.adblockplus.org, server_7.adblockplus.org, server_11.adblockplus.org, serve r_12.adblockplus.org, server_15.adblockplus.org, server_19.adblockplus.org, filt er1.adblockplus.org, filter2.adblockplus.org, filter3.adblockplus.org, filter4.a dblockplus.org, filter5.adblockplus.org, filter6.adblockplus.org, filter7.adbloc kplus.org, filter8.adblockplus.org, filter9.adblockplus.org, filter10.adblockplu s.org, filter11.adblockplus.org, filter12.adblockplus.org, filter13.adblockplus. org, filter14.adblockplus.org, filter15.adblockplus.org, filter16.adblockplus.or g, filter17.adblockplus.org, filter18.adblockplus.org, notification1.adblockplus .org, notification2.adblockplus.org'}
99
100 nagios_service {'current-load':
101 use => 'generic-service',
102 hostgroup_name => 'all',
103 service_description => 'Current Load',
104 check_command => 'check_nrpe_1arg!check_load'
105 }
106
107 nagios_service {'disk-space':
108 use => 'generic-service',
109 hostgroup_name => 'all',
110 service_description => 'Disk Space',
111 check_command => 'check_nrpe_1arg!check_disk'
112 }
113
114 nagios_service {'total-processes':
115 use => 'generic-service',
116 hostgroup_name => 'all',
117 service_description => 'Total Processes',
118 check_command => 'check_nrpe_1arg!check_total_procs'
119 }
120
121 nagios_service {'zombie-processes':
122 use => 'generic-service',
123 hostgroup_name => 'all',
124 service_description => 'Zombie Processes',
125 check_command => 'check_nrpe_1arg!check_zombie_procs'
126 }
127
128 nagios_service {'ssh':
129 use => 'generic-service',
130 hostgroup_name => 'all',
131 service_description => 'SSH',
132 check_command => 'check_ssh'
133 }
134
135 nagios_service {'http':
136 use => 'generic-service',
137 hostgroup_name => 'http-servers',
138 service_description => 'HTTP',
139 check_command => 'check_http'
140 }
141
142 nagios_service {'easylist-http':
143 use => 'generic-service',
144 hostgroup_name => 'filter-servers',
145 service_description => 'HTTP',
146 check_command => 'check_easylist_http'
147 }
148
149 nagios_service {'notification-http':
150 use => 'generic-service',
151 hostgroup_name => 'filter-servers',
152 service_description => 'HTTP',
153 check_command => 'check_notification_http'
154 }
155
156 nagios_service {'bandwidth':
157 use => 'generic-service',
158 hostgroup_name => 'all',
159 service_description => 'Bandwidth',
160 check_command => 'check_nrpe_timeout!check_bandwidth!20',
161 first_notification_delay => '15'
162 }
163
164 nagios_service {'connections':
165 use => 'generic-service',
166 hostgroup_name => 'all',
167 service_description => 'Connections',
168 check_command => 'check_nrpe_1arg!check_connections',
169 }
170
171 nagios_service {'memory':
172 use => 'generic-service',
173 hostgroup_name => 'all',
174 service_description => 'Memory',
175 check_command => 'check_nrpe_1arg!check_memory',
176 }
177 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld