outsourcing NRPE to cd_nrpe

This commit is contained in:
Arne Teuke
2017-07-28 13:49:05 +01:00
parent 00c977abcf
commit c134c8de34
5 changed files with 435 additions and 116 deletions

View File

@@ -642,6 +642,8 @@
# backoff_change - # of jobs to remove from jobs_limit when backing off
# rampup_limit - Minimum rampup_change
# rampup_change - # of jobs to add to jobs_limit when ramping up
# @param [string] ng_nrpe_port the port for NRPE. used by firewall and in
# configuration file.
###############################################################################
class cd_nagios::params (
@@ -661,6 +663,7 @@ $ng_http_https_fw = true,
$ng_fw_order = '50',
$ng_http_port = '80',
$ng_https_port = '443',
$ng_nrpe_port = '5666',
# check command parameters
## ping
@@ -907,9 +910,6 @@ $ng_loadctl_options = 'jobs_max=100;backoff_limit=10;rampup_change=5',
'nagios-plugins-nrpe',
'nagios-common']
}
$reqpackages_nrpe = $::operatingsystem ? {
/(?i-mx:centos|fedora|redhat)/ => ['nrpe']
}
# service
$ng_service = 'nagios'
@@ -992,6 +992,9 @@ $ng_cntctgrps_rule_erb = 'cd_nagios/nagios/contactgroups_cfg_rule.erb'
$ng_target_command = "${ng_conf_d_dir}/nagios_commands_base.cfg"
$ng_nagios_service_cmd = 'check_nagios!/var/log/nagios/status.dat!5!/usr/sbin/nagios'
# nrpe
$ng_nrpe_file = "${ng_main_dir}/nrpe.cfg"
# includes must be last
include cd_nagios::main::config