Recommit for updates in build 152
This commit is contained in:
@@ -1909,6 +1909,420 @@ inherited by all classes except defines.
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The retention contact service attribute mask for Nagios. Default is ‘0’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_interval_length</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'60'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The interval length for Nagios. Default is ‘60’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_check_for_updates</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to check for updates in Nagios. Default is ‘1’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_bare_update_check</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to perform a bare update check in Nagios. Default is ‘1’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_use_aggr_host_checking</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'0'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to use aggressive host checking in Nagios. Default is ‘0’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_execute_service_checks</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to execute service checks in Nagios at initial start. Default is ‘1’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_accept_pass_svc_checks</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to accept passive service checks in Nagios. Default is ‘1’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_execute_host_checks</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to execute host checks in Nagios at initial start. Default is ‘1’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_accept_pass_host_checks</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to accept passive host checks in Nagios. Default is ‘1’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_enable_notifications</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to enable notifications in Nagios when it is initially started. Default is ‘1’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_enable_event_handlers</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to enable event handlers in Nagios when it is initially started. Default is ‘1’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_process_perf_data</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'0'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to process performance data in Nagios when it is initially started. Default is ‘0’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_host_perfdata_command</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'process-host-perfdata'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The command to process host performance data in Nagios. Default is ‘process-host-perfdata’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_svc_perfdata_command</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'process-service-perfdata'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The command to process service performance data in Nagios. Default is ‘process-service-perfdata’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_host_perfdata_template</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The template for host performance data in Nagios.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_svc_perfdata_template</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The template for service performance data in Nagios.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_host_perfdata_file_mode</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'a'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The file mode for host performance data in Nagios. Default is ‘a’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_svc_perfdata_file_mode</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'a'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The file mode for service performance data in Nagios. Default is ‘a’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_h_perfdata_proc_intval</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'0'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The interval for processing host performance data in Nagios. Default is ‘0’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_s_perfdata_proc_intval</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'0'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The interval for processing service performance data in Nagios. Default is ‘0’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_h_perfdata_proc_cmd</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'process-host-perfdata'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The command to process host performance data in Nagios. Default is ‘process-host-perfdata’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_s_perfdata_proc_cmd</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'process-service-perfdata'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The command to process service performance data in Nagios. Default is ‘process-service-perfdata’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_h_perfdata_proc_e_result</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'0'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The expected result for processing host performance data in Nagios. Default is ‘0’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_s_perfdata_proc_e_result</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'0'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The expected result for processing service performance data in Nagios. Default is ‘0’.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@@ -1924,52 +2338,6 @@ inherited by all classes except defines.
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
207
|
||||
208
|
||||
209
|
||||
210
|
||||
211
|
||||
212
|
||||
213
|
||||
214
|
||||
215
|
||||
216
|
||||
217
|
||||
218
|
||||
219
|
||||
220
|
||||
221
|
||||
222
|
||||
223
|
||||
224
|
||||
225
|
||||
226
|
||||
227
|
||||
228
|
||||
229
|
||||
230
|
||||
231
|
||||
232
|
||||
233
|
||||
234
|
||||
235
|
||||
236
|
||||
237
|
||||
238
|
||||
239
|
||||
240
|
||||
241
|
||||
242
|
||||
243
|
||||
244
|
||||
245
|
||||
246
|
||||
247
|
||||
248
|
||||
249
|
||||
250
|
||||
251
|
||||
252
|
||||
253
|
||||
254
|
||||
255
|
||||
@@ -2152,10 +2520,81 @@ inherited by all classes except defines.
|
||||
432
|
||||
433
|
||||
434
|
||||
435</pre>
|
||||
435
|
||||
436
|
||||
437
|
||||
438
|
||||
439
|
||||
440
|
||||
441
|
||||
442
|
||||
443
|
||||
444
|
||||
445
|
||||
446
|
||||
447
|
||||
448
|
||||
449
|
||||
450
|
||||
451
|
||||
452
|
||||
453
|
||||
454
|
||||
455
|
||||
456
|
||||
457
|
||||
458
|
||||
459
|
||||
460
|
||||
461
|
||||
462
|
||||
463
|
||||
464
|
||||
465
|
||||
466
|
||||
467
|
||||
468
|
||||
469
|
||||
470
|
||||
471
|
||||
472
|
||||
473
|
||||
474
|
||||
475
|
||||
476
|
||||
477
|
||||
478
|
||||
479
|
||||
480
|
||||
481
|
||||
482
|
||||
483
|
||||
484
|
||||
485
|
||||
486
|
||||
487
|
||||
488
|
||||
489
|
||||
490
|
||||
491
|
||||
492
|
||||
493
|
||||
494
|
||||
495
|
||||
496
|
||||
497
|
||||
498
|
||||
499
|
||||
500
|
||||
501
|
||||
502
|
||||
503
|
||||
504
|
||||
505
|
||||
506</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 207</span>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 253</span>
|
||||
|
||||
class confdroid_nagios::params (
|
||||
|
||||
@@ -2241,6 +2680,29 @@ class confdroid_nagios::params (
|
||||
String $ng_ret_proc_svc_attr_mask = '0',
|
||||
String $ng_ret_contact_h_attr_mask = '0',
|
||||
String $ng_ret_contact_s_attr_mask = '0',
|
||||
String $ng_interval_length = '60',
|
||||
String $ng_check_for_updates = '1',
|
||||
String $ng_bare_update_check = '1',
|
||||
String $ng_use_aggr_host_checking = '0',
|
||||
String $ng_execute_service_checks = '1',
|
||||
String $ng_accept_pass_svc_checks = '1',
|
||||
String $ng_execute_host_checks = '1',
|
||||
String $ng_accept_pass_host_checks = '1',
|
||||
String $ng_enable_notifications = '1',
|
||||
String $ng_enable_event_handlers = '1',
|
||||
String $ng_process_perf_data = '0',
|
||||
String $ng_host_perfdata_command = 'process-host-perfdata',
|
||||
String $ng_svc_perfdata_command = 'process-service-perfdata',
|
||||
String $ng_host_perfdata_template = '[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$',
|
||||
String $ng_svc_perfdata_template = '[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$',
|
||||
String $ng_host_perfdata_file_mode = 'a',
|
||||
String $ng_svc_perfdata_file_mode = 'a',
|
||||
String $ng_h_perfdata_proc_intval = '0',
|
||||
String $ng_s_perfdata_proc_intval = '0',
|
||||
String $ng_h_perfdata_proc_cmd = 'process-host-perfdata',
|
||||
String $ng_s_perfdata_proc_cmd = 'process-service-perfdata',
|
||||
String $ng_h_perfdata_proc_e_result = '0',
|
||||
String $ng_s_perfdata_proc_e_result = '0',
|
||||
|
||||
# cgi.cfg
|
||||
String $ng_context_help = '1',
|
||||
@@ -2361,27 +2823,29 @@ class confdroid_nagios::params (
|
||||
$ng_temp_file = "${ng_spool_dir}/nagios.tmp"
|
||||
$ng_check_result_path = "${ng_spool_dir}/checkresults"
|
||||
$ng_state_retention_file = "${ng_spool_dir}/retention.dat"
|
||||
$ng_host_perfdata_file = "${ng_log_dir}/host-perfdata"
|
||||
$ng_svc_perfdata_file = "${ng_log_dir}/service-perfdata"
|
||||
|
||||
## old
|
||||
$ng_taccgi_erb = 'confdroid_nagios/selinux/taccgi.erb'
|
||||
$ng_statcgi_erb = 'confdroid_nagios/selinux/statuscgi.erb'
|
||||
$ng_statdat_erb = 'confdroid_nagios/selinux/statusdat.erb'
|
||||
$ng_checknrpe_erb = 'confdroid_nagios/selinux/checknrpe.erb'
|
||||
$ng_checknagios_erb = 'confdroid_nagios/selinux/checknagios.erb'
|
||||
$ng_nagios_conf = '/etc/httpd/conf.d/nagios.conf'
|
||||
$ng_nagios_conf_erb = 'confdroid_nagios/httpd/nagios_conf.erb'
|
||||
$ng_welcome_conf = '/etc/httpd/conf.d/welcome.conf'
|
||||
$ng_welcome_conf_erb = 'confdroid_nagios/httpd/welcome_conf.erb'
|
||||
$ng_forward_conf = '/etc/httpd/conf.d/nagios_forward.conf'
|
||||
$ng_forward_conf_erb = 'confdroid_nagios/httpd/forward_conf.erb'
|
||||
$ng_get_cert_erb = 'confdroid_nagios/certbot/get_cert.erb'
|
||||
$ng_unless_get_cert = 'confdroid_nagios/certbot/unless_get_cert.erb'
|
||||
$ng_unless_renew_erb = 'confdroid_nagios/certbot/unless_renew_cert.erb'
|
||||
$ng_index_html_file = '/var/www/html/index.html'
|
||||
$ng_index_html_erb = 'confdroid_nagios/httpd/index_html.erb'
|
||||
$ng_ssl_vhost_file = '/etc/httpd/conf.d/nagios_ssl.conf'
|
||||
$ng_ssl_vhost_erb = 'confdroid_nagios/httpd/nagios_ssl_vhost.erb'
|
||||
$ng_grep_erb = 'confdroid_nagios/selinux/grep.erb'
|
||||
# $ng_taccgi_erb = 'confdroid_nagios/selinux/taccgi.erb'
|
||||
# $ng_statcgi_erb = 'confdroid_nagios/selinux/statuscgi.erb'
|
||||
# $ng_statdat_erb = 'confdroid_nagios/selinux/statusdat.erb'
|
||||
# $ng_checknrpe_erb = 'confdroid_nagios/selinux/checknrpe.erb'
|
||||
# $ng_checknagios_erb = 'confdroid_nagios/selinux/checknagios.erb'
|
||||
# $ng_nagios_conf = '/etc/httpd/conf.d/nagios.conf'
|
||||
# $ng_nagios_conf_erb = 'confdroid_nagios/httpd/nagios_conf.erb'
|
||||
# $ng_welcome_conf = '/etc/httpd/conf.d/welcome.conf'
|
||||
# $ng_welcome_conf_erb = 'confdroid_nagios/httpd/welcome_conf.erb'
|
||||
# $ng_forward_conf = '/etc/httpd/conf.d/nagios_forward.conf'
|
||||
# $ng_forward_conf_erb = 'confdroid_nagios/httpd/forward_conf.erb'
|
||||
# $ng_get_cert_erb = 'confdroid_nagios/certbot/get_cert.erb'
|
||||
# $ng_unless_get_cert = 'confdroid_nagios/certbot/unless_get_cert.erb'
|
||||
# $ng_unless_renew_erb = 'confdroid_nagios/certbot/unless_renew_cert.erb'
|
||||
# $ng_index_html_file = '/var/www/html/index.html'
|
||||
# $ng_index_html_erb = 'confdroid_nagios/httpd/index_html.erb'
|
||||
# $ng_ssl_vhost_file = '/etc/httpd/conf.d/nagios_ssl.conf'
|
||||
# $ng_ssl_vhost_erb = 'confdroid_nagios/httpd/nagios_ssl_vhost.erb'
|
||||
# $ng_grep_erb = 'confdroid_nagios/selinux/grep.erb'
|
||||
|
||||
# includes must be last
|
||||
include confdroid_nagios::main::config
|
||||
|
||||
Reference in New Issue
Block a user