1857 lines
46 KiB
HTML
1857 lines
46 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>
|
||
Puppet Class: confdroid_nagios::params
|
||
|
||
— Documentation by YARD 0.9.36
|
||
|
||
</title>
|
||
|
||
<link rel="stylesheet" href="../css/style.css" type="text/css" />
|
||
|
||
<link rel="stylesheet" href="../css/common.css" type="text/css" />
|
||
|
||
<script type="text/javascript">
|
||
pathId = "puppet_classes::confdroid_nagios::params";
|
||
relpath = '../';
|
||
</script>
|
||
|
||
|
||
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
||
|
||
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
||
|
||
|
||
</head>
|
||
<body>
|
||
<div class="nav_wrap">
|
||
<iframe id="nav" src="../puppet_class_list.html?1"></iframe>
|
||
<div id="resizer"></div>
|
||
</div>
|
||
|
||
<div id="main" tabindex="-1">
|
||
<div id="header">
|
||
<div id="menu">
|
||
|
||
<a href="../_index.html">Index (c)</a> »
|
||
<span class='title'><span class='object_link'>Puppet Classes</span></span>
|
||
»
|
||
<span class="title">confdroid_nagios::params</span>
|
||
|
||
</div>
|
||
|
||
<div id="search">
|
||
|
||
<a class="full_list_link" id="puppet_class_list_link"
|
||
href="../puppet_class_list.html">
|
||
|
||
<svg width="24" height="24">
|
||
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
||
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
||
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
||
</svg>
|
||
</a>
|
||
|
||
</div>
|
||
<div class="clear"></div>
|
||
</div>
|
||
|
||
<div id="content"><h1>Puppet Class: confdroid_nagios::params</h1>
|
||
<div class="box_info">
|
||
|
||
|
||
<dl>
|
||
<dt>Inherited by:</dt>
|
||
<dd>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Amain_3A_3Adirs.html" title="puppet_classes::confdroid_nagios::main::dirs (puppet_class)">confdroid_nagios::main::dirs</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::confdroid_nagios::main::config (puppet_class)">confdroid_nagios::main::config</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::confdroid_nagios::main::install (puppet_class)">confdroid_nagios::main::install</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Aserver_3A_3Afiles.html" title="puppet_classes::confdroid_nagios::server::files (puppet_class)">confdroid_nagios::server::files</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Aclient_3A_3Atarget.html" title="puppet_classes::confdroid_nagios::client::target (puppet_class)">confdroid_nagios::client::target</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aconfig.html" title="puppet_classes::confdroid_nagios::nagios::config (puppet_class)">confdroid_nagios::nagios::config</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Aserver_3A_3Anagios.html" title="puppet_classes::confdroid_nagios::server::nagios (puppet_class)">confdroid_nagios::server::nagios</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::confdroid_nagios::server::service (puppet_class)">confdroid_nagios::server::service</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Aserver_3A_3Aaccess_rules.html" title="puppet_classes::confdroid_nagios::server::access_rules (puppet_class)">confdroid_nagios::server::access_rules</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acommands.html" title="puppet_classes::confdroid_nagios::nagios::objects::commands (puppet_class)">confdroid_nagios::nagios::objects::commands</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aresources_3A_3Aresource.html" title="puppet_classes::confdroid_nagios::nagios::resources::resource (puppet_class)">confdroid_nagios::nagios::resources::resource</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplate_rules.html" title="puppet_classes::confdroid_nagios::nagios::objects::template_rules (puppet_class)">confdroid_nagios::nagios::objects::template_rules</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact_rules.html" title="puppet_classes::confdroid_nagios::nagios::objects::add_contact_rules (puppet_class)">confdroid_nagios::nagios::objects::add_contact_rules</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_hostgroup_rules.html" title="puppet_classes::confdroid_nagios::nagios::objects::add_hostgroup_rules (puppet_class)">confdroid_nagios::nagios::objects::add_hostgroup_rules</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_timeperiod_rules.html" title="puppet_classes::confdroid_nagios::nagios::objects::add_timeperiod_rules (puppet_class)">confdroid_nagios::nagios::objects::add_timeperiod_rules</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_servicegroup_rules.html" title="puppet_classes::confdroid_nagios::nagios::objects::add_servicegroup_rules (puppet_class)">confdroid_nagios::nagios::objects::add_servicegroup_rules</a></span><br/>
|
||
|
||
<span class='object_link'><a href="confdroid_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contactgroups_rules.html" title="puppet_classes::confdroid_nagios::nagios::objects::add_contactgroups_rules (puppet_class)">confdroid_nagios::nagios::objects::add_contactgroups_rules</a></span><br/>
|
||
|
||
</dd>
|
||
</dl>
|
||
|
||
<dl>
|
||
<dt>Defined in:</dt>
|
||
<dd>
|
||
manifests/params.pp
|
||
</dd>
|
||
</dl>
|
||
</div>
|
||
|
||
<h2>Summary</h2>
|
||
Class holds all parameters for the confdroid_nagios module and is
|
||
inherited by all classes except defines.
|
||
|
||
<h2>Overview</h2>
|
||
<div class="docstring">
|
||
<div class="discussion">
|
||
|
||
<p>confdroid_nagios::params Module name: confdroid_nagios Author: 12ww1160 (12ww1160@confdroid.com)</p>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
<div class="tags">
|
||
<p class="tag_title">Parameters:</p>
|
||
<ul class="param">
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_nagios_server</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'nagios.example.net'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The hostname or IP address of the Nagios server. This will determine the installation selection and the of the clients to connect to the Nagios server.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_reqpackages_server</span>
|
||
|
||
|
||
<span class='type'>(<tt>Array</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>['nagios','nagios-devel']</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>An array of packages to be installed on the Nagios server.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_reqpackages_client</span>
|
||
|
||
|
||
<span class='type'>(<tt>Array</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common']</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>An array of packages to be installed on the Nagios clients.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_pkg_ensure</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'present'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The ensure value for all packages. Default is ‘present’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_include_nrpe</span>
|
||
|
||
|
||
<span class='type'>(<tt>Boolean</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to include the NRPE client on the Nagios clients. Default is true.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_use_https</span>
|
||
|
||
|
||
<span class='type'>(<tt>Boolean</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to configure the Nagios web interface to use HTTPS. Default is false. We recommend using a reverse proxy with SSL termination in front of the Nagios web interface, so this is disabled by default.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_main_user</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'nagios'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The username for the Nagios web interface. Default is $ng_users.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_main_password</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'nagios'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The encrypted password for the Nagios web interface. Default is $ng_users. Must be properly encrypted using the htpasswd utility.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_context_help</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to enable the context help in the Nagios web interface. Default is ‘1’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_log_file</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/var/log/nagios/nagios.log'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The path to the Nagios log file. Default is ‘/var/log/nagios/nagios.log’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_ping_warn</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'100.0,20%'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The warning threshold for the check_ping command. Default is ‘100.0,20%’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_ping_crit</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'500.0,60%'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The critical threshold for the check_ping command. Default is ‘500.0,60%’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_ping_ensure</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'present'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The ensure value for the check_ping command. Default is ‘present’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_disk_warn</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'20%'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The warning threshold for the check_disk command. Default is ‘20%’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_disk_crit</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'10%'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The critical threshold for the check_disk command. Default is ‘10%’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_disk_ensure</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'present'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The ensure value for the check_disk command. Default is ‘present’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_swap_warn</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'20'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The warning threshold for the check_swap command. Default is ‘20’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_swap_crit</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'10'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The critical threshold for the check_swap command. Default is ‘10’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_swap_ensure</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'present'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The ensure value for the check_swap command. Default is ‘present’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_users_warn</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'20'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The warning threshold for the check_users command. Default is ‘20’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_users_crit</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'50'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The critical threshold for the check_users command. Default is ‘50’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_users_ensure</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'present'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The ensure value for the check_users command. Default is ‘present’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_procs_tot_warn</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'330'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The warning threshold for the check_procs command with total processes. Default is ‘330’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_procs_tot_crit</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'400'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The critical threshold for the check_procs command with total processes. Default is ‘400’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_procs_tot_param</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'RDST'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The parameters for the check_procs command with total processes. Default is ‘RDST’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_procs_tot_ens</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'present'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The ensure value for the check_procs command with total processes. Default is ‘present’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_procs_z_warn</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'10'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The warning threshold for the check_procs command with zombie processes. Default is ‘10’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_procs_z_crit</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'30'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The critical threshold for the check_procs command with zombie processes. Default is ‘30’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_procs_z_param</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'Z'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The parameters for the check_procs command with zombie processes. Default is ‘Z’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_procs_z_ensure</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'present'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The ensure value for the check_procs command with zombie processes. Default is ‘present’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_load_warn</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'5.00,4.00,3.00'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The warning threshold for the check_load command. Default is ‘5.00,4.00,3.00’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_load_crit</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'10.00,6.00,4.00'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The critical threshold for the check_load command. Default is ‘10.00,6.00,4.00’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_load_ensure</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'present'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The ensure value for the check_load command. Default is ‘present’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_contactgroup_name</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'admins'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The name of the default contact group. Default is ‘admins’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_contactgroup_alias</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'Nagios Administrators'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The alias of the default contact group. Default is ‘Nagios Administrators’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_contact_name</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'nagiosadmin'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The name of the default contact. Default is ‘nagiosadmin’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_contact_alias</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'Nagios Admin'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The alias of the default contact. Default is ‘Nagios Admin’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_contact_groups</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'admins'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The contact groups for the default contact. Default is ‘admins’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_contact_email</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'nagiosadmin@example.net'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The email address for the default contact. Default is ‘nagiosadmin@example.net’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_hostgroup_name</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'linux-servers'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The name of the default host group. Default is ‘linux-servers’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_hostgroup_alias</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'Linux Servers'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The alias of the default host group. Default is ‘Linux Servers’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_max_check_attempts</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'10'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The maximum number of check attempts before a host or service is considered down. Default is ‘10’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_enable_swap_check</span>
|
||
|
||
|
||
<span class='type'>(<tt>Boolean</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to enable the check_swap command. Default is true.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_status_upd_interval</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'10'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The interval in seconds for Nagios to update the status file. Default is ‘10’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_check_ext_commands</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to allow external commands to be submitted to Nagios. Default is ‘1’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_user</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'nagios'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The user to run the Nagios service as. Default is ‘nagios’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_enable_target</span>
|
||
|
||
|
||
<span class='type'>(<tt>Boolean</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to enable the generation of host and service configuration files for the Nagios server. Default is true.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_contactgroup_members</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'nagiosadmin'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The members of the default contact group. Default is ‘nagiosadmin’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_purge_target</span>
|
||
|
||
|
||
<span class='type'>(<tt>Boolean</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>true</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to purge unmanaged host and services configuration files. Default is true.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_event_broker_options</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'-1'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The event broker options for Nagios. Default is ‘-1’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_enable_query_handler</span>
|
||
|
||
|
||
<span class='type'>(<tt>Boolean</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>false</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to enable the Nagios query handler. Default is false.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_event_broker_module</span>
|
||
|
||
|
||
<span class='type'>(<tt>Array</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The event broker modules for Nagios. Default is [].</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_log_rotation_method</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'d'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The log rotation method for Nagios. Default is ‘d’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_use_syslog</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to use syslog for logging in Nagios. Default is ‘1’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_log_notifications</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to log notifications in Nagios. Default is ‘1’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_log_service_retries</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to log service check retries in Nagios. Default is ‘1’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_log_host_retries</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to log host check retries in Nagios. Default is ‘1’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_log_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 log event handlers in Nagios. Default is ‘1’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_log_initial_states</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'0'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to log initial states in Nagios. Default is ‘0’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_log_current_states</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to log current states in Nagios. Default is ‘1’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_log_external_commands</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to log external commands in Nagios. Default is ‘1’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_log_passive_checks</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>Whether to log passive checks in Nagios. Default is ‘1’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_glob_host_evt_handler</span>
|
||
|
||
|
||
<span class='type'>(<tt>Array</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>An array of global host event handlers for Nagios. Default is [].</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_glob_svc_evt_handler</span>
|
||
|
||
|
||
<span class='type'>(<tt>Array</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>An array of global service event handlers for Nagios. Default is [].</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_svc_int_check_delay</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'s'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The service inter-check delay method for Nagios. Default is ‘s’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_max_svc_check_spread</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'30'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The maximum service check spread for Nagios. Default is ‘30’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_svc_interleave_factor</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'s'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The service interleave factor for Nagios. Default is ‘s’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_host_int_check_delay</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'s'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The host inter-check delay method for Nagios. Default is ‘s’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_max_host_check_spread</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'30'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The maximum host check spread for Nagios. Default is ‘30’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_max_concurrent_checks</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'0'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The maximum number of concurrent checks for Nagios. Default is ‘0’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_check_res_reaper_freq</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'10'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The check result reaper frequency for Nagios. Default is ‘10’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_max_check_res_reap_time</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'30'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The maximum check result reaper time for Nagios. Default is ‘30’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
|
||
|
||
|
||
</div><div class="method_details_list">
|
||
<table class="source_code">
|
||
<tr>
|
||
<td>
|
||
<pre class="lines">
|
||
|
||
|
||
155
|
||
156
|
||
157
|
||
158
|
||
159
|
||
160
|
||
161
|
||
162
|
||
163
|
||
164
|
||
165
|
||
166
|
||
167
|
||
168
|
||
169
|
||
170
|
||
171
|
||
172
|
||
173
|
||
174
|
||
175
|
||
176
|
||
177
|
||
178
|
||
179
|
||
180
|
||
181
|
||
182
|
||
183
|
||
184
|
||
185
|
||
186
|
||
187
|
||
188
|
||
189
|
||
190
|
||
191
|
||
192
|
||
193
|
||
194
|
||
195
|
||
196
|
||
197
|
||
198
|
||
199
|
||
200
|
||
201
|
||
202
|
||
203
|
||
204
|
||
205
|
||
206
|
||
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
|
||
256
|
||
257
|
||
258
|
||
259
|
||
260
|
||
261
|
||
262
|
||
263
|
||
264
|
||
265
|
||
266
|
||
267
|
||
268
|
||
269
|
||
270
|
||
271
|
||
272
|
||
273
|
||
274
|
||
275
|
||
276
|
||
277
|
||
278
|
||
279
|
||
280
|
||
281
|
||
282
|
||
283
|
||
284
|
||
285
|
||
286
|
||
287
|
||
288
|
||
289
|
||
290
|
||
291
|
||
292
|
||
293
|
||
294
|
||
295
|
||
296
|
||
297
|
||
298
|
||
299
|
||
300
|
||
301
|
||
302
|
||
303
|
||
304
|
||
305
|
||
306
|
||
307
|
||
308
|
||
309
|
||
310
|
||
311
|
||
312
|
||
313
|
||
314
|
||
315
|
||
316
|
||
317
|
||
318
|
||
319
|
||
320
|
||
321
|
||
322
|
||
323
|
||
324
|
||
325
|
||
326
|
||
327
|
||
328
|
||
329
|
||
330
|
||
331
|
||
332
|
||
333
|
||
334
|
||
335
|
||
336
|
||
337
|
||
338
|
||
339
|
||
340
|
||
341
|
||
342
|
||
343
|
||
344
|
||
345
|
||
346
|
||
347
|
||
348
|
||
349
|
||
350
|
||
351
|
||
352
|
||
353
|
||
354</pre>
|
||
</td>
|
||
<td>
|
||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 155</span>
|
||
|
||
class confdroid_nagios::params (
|
||
|
||
# main
|
||
String $ng_nagios_server = 'nagios.example.net',
|
||
Array $ng_reqpackages_server = ['nagios','nagios-devel'],
|
||
Array $ng_reqpackages_client = ['net-snmp-utils','nagios-plugins','nagios-plugins-all','nagios-plugins-nrpe','nagios-common'],
|
||
String $ng_pkg_ensure = 'present',
|
||
Boolean $ng_include_nrpe = true,
|
||
String $ng_main_user = 'nagios',
|
||
String $ng_main_password = 'nagios',
|
||
String $ng_max_check_attempts = '10',
|
||
String $ng_status_upd_interval = '10',
|
||
String $ng_check_ext_commands = '1',
|
||
String $ng_user = 'nagios',
|
||
Boolean $ng_enable_target = true,
|
||
Boolean $ng_purge_target = true,
|
||
|
||
# contact groups
|
||
String $ng_contactgroup_name = 'admins',
|
||
String $ng_contactgroup_alias = 'Nagios Administrators',
|
||
String $ng_contactgroup_members = 'nagiosadmin',
|
||
|
||
# contacts
|
||
String $ng_contact_name = 'nagiosadmin',
|
||
String $ng_contact_alias = 'Nagios Admin',
|
||
String $ng_contact_groups = 'admins',
|
||
String $ng_contact_email = 'nagiosadmin@example.net',
|
||
|
||
# hostgroups
|
||
String $ng_hostgroup_name = 'linux-servers',
|
||
String $ng_hostgroup_alias = 'Linux Servers',
|
||
|
||
# nagios.cfg
|
||
String $ng_log_file = '/var/log/nagios/nagios.log',
|
||
String $ng_event_broker_options = '-1',
|
||
Boolean $ng_enable_query_handler = false,
|
||
Array $ng_event_broker_module = [],
|
||
String $ng_log_rotation_method = 'd',
|
||
String $ng_use_syslog = '1',
|
||
String $ng_log_notifications = '1',
|
||
String $ng_log_service_retries = '1',
|
||
String $ng_log_host_retries = '1',
|
||
String $ng_log_event_handlers = '1',
|
||
String $ng_log_initial_states = '0',
|
||
String $ng_log_current_states = '1',
|
||
String $ng_log_external_commands = '1',
|
||
String $ng_log_passive_checks = '1',
|
||
Array $ng_glob_host_evt_handler = [],
|
||
Array $ng_glob_svc_evt_handler = [],
|
||
String $ng_svc_int_check_delay = 's',
|
||
String $ng_max_svc_check_spread = '30',
|
||
String $ng_svc_interleave_factor = 's',
|
||
String $ng_host_int_check_delay = 's',
|
||
String $ng_max_host_check_spread = '30',
|
||
String $ng_max_concurrent_checks = '0',
|
||
String $ng_check_res_reaper_freq = '10',
|
||
String $ng_max_check_res_reap_time = '30',
|
||
|
||
# cgi.cfg
|
||
String $ng_context_help = '1',
|
||
|
||
# httpd
|
||
Boolean $ng_use_https = false,
|
||
|
||
# check command parameters
|
||
## ping
|
||
String $ng_ping_warn = '100.0,20%',
|
||
String $ng_ping_crit = '500.0,60%',
|
||
String $ng_ping_ensure = 'present',
|
||
## disk
|
||
String $ng_disk_warn = '20%',
|
||
String $ng_disk_crit = '10%' ,
|
||
String $ng_disk_ensure = 'present',
|
||
# swap
|
||
String $ng_swap_warn = '20',
|
||
String $ng_swap_crit = '10',
|
||
String $ng_swap_ensure = 'present',
|
||
# users
|
||
String $ng_users_warn = '20',
|
||
String $ng_users_crit = '50',
|
||
String $ng_users_ensure = 'present',
|
||
#total procs
|
||
String $ng_procs_tot_warn = '330',
|
||
String $ng_procs_tot_crit = '400',
|
||
String $ng_procs_tot_param = 'RDST',
|
||
String $ng_procs_tot_ens = 'present',
|
||
# zombie procs
|
||
String $ng_procs_z_warn = '10',
|
||
String $ng_procs_z_crit = '30',
|
||
String $ng_procs_z_param = 'Z',
|
||
String $ng_procs_z_ensure = 'present',
|
||
# load
|
||
String $ng_load_warn = '5.00,4.00,3.00',
|
||
String $ng_load_crit = '10.00,6.00,4.00',
|
||
String $ng_load_ensure = 'present',
|
||
|
||
# single nagios checks
|
||
Boolean $ng_enable_swap_check = true,
|
||
|
||
) {
|
||
# Default facts
|
||
$fqdn = $facts['networking']['fqdn']
|
||
$hostname = $facts['networking']['hostname']
|
||
$domain = $facts['networking']['domain']
|
||
$os_name = $facts['os']['name']
|
||
$os_release = $facts['os']['release']['major']
|
||
|
||
# service
|
||
$ng_service = 'nagios'
|
||
|
||
# directories
|
||
$ng_main_dir = '/etc/nagios'
|
||
$ng_conf_d_dir = "${ng_main_dir}/conf.d"
|
||
$ng_objects_dir = "${ng_main_dir}/objects"
|
||
$ng_private_dir = "${ng_main_dir}/private"
|
||
$ng_usr_incl = '/usr/include/nagios'
|
||
$ng_lib_dir = '/usr/lib64/nagios'
|
||
$ng_log_dir = '/var/log/nagios'
|
||
$ng_log_archives = "${ng_log_dir}/archives"
|
||
$ng_spool_dir = '/var/spool/nagios'
|
||
$ng_usr_share = '/usr/share/nagios'
|
||
$ng_share_html = "${ng_usr_share}/html"
|
||
$ng_run_dir = '/var/run/nagios'
|
||
$ng_cmd_dir = "${ng_spool_dir}/cmd"
|
||
$ng_checkresults_dir = "${ng_spool_dir}/checkresults"
|
||
|
||
# files
|
||
$ng_nagios_cfg_file = "${ng_main_dir}/nagios.cfg"
|
||
$ng_nagios_cfg_erb = 'confdroid_nagios/nagios/nagios_cfg.erb'
|
||
$ng_cgi_cfg_file = "${ng_main_dir}/cgi.cfg"
|
||
$ng_cgi_cfg_erb = 'confdroid_nagios/nagios/cgi_cfg.erb'
|
||
|
||
# nagios
|
||
$ng_target_templates = "${ng_conf_d_dir}/nagios_templates.cfg"
|
||
$ng_templates_head_erb = 'confdroid_nagios/nagios/templates_cfg_head.erb'
|
||
$ng_templates_rule_erb = 'confdroid_nagios/nagios/templates_cfg_rule.erb'
|
||
$ng_tgt_timeperiods_base = "${ng_conf_d_dir}/nagios_timeperiods.cfg"
|
||
$ng_tgt_timep_add = "${ng_conf_d_dir}/nagios_timeperiods.cfg"
|
||
$ng_tgt_timep_head_erb = 'confdroid_nagios/nagios/timeperiods_cfg_head.erb'
|
||
$ng_tgt_timep_rule_erb = 'confdroid_nagios/nagios/timeperiods_cfg_rule.erb'
|
||
$ng_target_localhost = "${ng_conf_d_dir}/nagios_localhost.cfg"
|
||
$ng_target_host = "${ng_conf_d_dir}/nagios_host.cfg"
|
||
$ng_target_hostgroup_base = "${ng_conf_d_dir}/nagios_hostgroups_base.cfg"
|
||
$ng_tgt_hostgroup_add = "${ng_conf_d_dir}/nagios_hostgroups.cfg"
|
||
$ng_tgt_hostgrp_head_erb = 'confdroid_nagios/nagios/hostgroups_cfg_head.erb'
|
||
$ng_tgt_hostgrp_rule_erb = 'confdroid_nagios/nagios/hostgroups_cfg_rule.erb'
|
||
$ng_target_hostdep = "${ng_conf_d_dir}/nagios_hostdependency.cfg"
|
||
$ng_target_hostesc = "${ng_conf_d_dir}/nagios_hostescalation.cfg"
|
||
$ng_target_hostext = "${ng_conf_d_dir}/nagios_hostextinfo.cfg"
|
||
$ng_target_service = "${ng_conf_d_dir}/nagios_service.cfg"
|
||
$ng_target_svcgrp_base = "${ng_conf_d_dir}/nagios_servicegroups_base.cfg"
|
||
$ng_tgt_servicegroup_add = "${ng_conf_d_dir}/nagios_servicegroups.cfg"
|
||
$ng_tgt_svcgrp_head_erb = 'confdroid_nagios/nagios/svcgroups_cfg_head.erb'
|
||
$ng_tgt_svcgrp_rule_erb = 'confdroid_nagios/nagios/svcgroups_cfg_rule.erb'
|
||
$ng_target_base_contact = "${ng_conf_d_dir}/nagios_contact_base.cfg"
|
||
$ng_target_add_contact = "${ng_conf_d_dir}/nagios_contact.cfg"
|
||
$ng_contacts_head_erb = 'confdroid_nagios/nagios/contacts_cfg_head.erb'
|
||
$ng_contacts_rule_erb = 'confdroid_nagios/nagios/contacts_cfg_rule.erb'
|
||
$ng_tgt_contactgroup_base = "${ng_conf_d_dir}/nagios_contactgroup_base.cfg"
|
||
$ng_tgt_contactgroup_add = "${ng_conf_d_dir}/nagios_contactgroup.cfg"
|
||
$ng_cntctgrps_head_erb = 'confdroid_nagios/nagios/contactgroups_cfg_head.erb'
|
||
$ng_cntctgrps_rule_erb = 'confdroid_nagios/nagios/contactgroups_cfg_rule.erb'
|
||
$ng_target_command = "${ng_conf_d_dir}/nagios_commands_base.cfg"
|
||
$ng_service_cmd = 'check_nagios!/var/spool/nagios/status.dat!5!/usr/sbin/nagios'
|
||
$ng_htpasswd_file = "${ng_main_dir}/passwd"
|
||
$ng_htpasswd_head = 'confdroid_nagios/nagios/htpasswd_head.erb'
|
||
$ng_htpasswd_rule = 'confdroid_nagios/nagios/htpasswd_rule.erb'
|
||
$ng_resource_file = "${ng_private_dir}/resource.cfg"
|
||
$ng_resource_erb = 'confdroid_nagios/nagios/resource_cfg.erb'
|
||
$ng_object_cache_file = "${ng_spool_dir}/objects.cache"
|
||
$ng_precached_obj_file = "${ng_spool_dir}/objects.precache"
|
||
$ng_status_file = "${ng_spool_dir}/status.dat"
|
||
$ng_command_file = "${ng_cmd_dir}/nagios.cmd"
|
||
$ng_lock_file = "${ng_run_dir}/nagios.pid"
|
||
$ng_temp_file = "${ng_spool_dir}/nagios.tmp"
|
||
|
||
## 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'
|
||
|
||
# includes must be last
|
||
include confdroid_nagios::main::config
|
||
}</pre>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
|
||
<div id="footer">
|
||
Generated by <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>.
|
||
</div>
|
||
|
||
</div>
|
||
</body>
|
||
</html> |