1116 lines
30 KiB
HTML
1116 lines
30 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_3Auser.html" title="puppet_classes::confdroid_nagios::main::user (puppet_class)">confdroid_nagios::main::user</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_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/>
|
||
|
||
</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) file. Default is ‘/var/spool/nagios/objects.precache’.</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_user</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'nagios'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The name of the Nagios user to be created on the Nagios server. Default is ‘nagios’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_u_comment</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'Nagios User'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The comment field for the Nagios user. Default is ‘Nagios User’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_u_groups</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'nagios'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The group(s) to which the Nagios user should be added. Default is ‘nagios’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_u_shell</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/sbin/nologin'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The login shell for the Nagios user. Default is ‘/sbin/nologin’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_u_home</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/home/nagios'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The home directory for the Nagios user. Default is ‘/home/nagios’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_u_uid</span>
|
||
|
||
|
||
<span class='type'>(<tt>Integer</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>1004</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The user ID for the Nagios user. Default is 1004.</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_event_broker_module</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The event broker module to be used in the Nagios configuration. Default is an empty string, which means no event broker module will be configured. You can specify a module like ‘mod_gearman’ to enable the Gearman event broker module, for example.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_glob_host_evt_handler</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The global host event handler to be used in the Nagios configuration. Default is an empty string, which means no global host event handler will be configured. You can specify a command like ‘notify-host-by-email’ to set a global host event handler that sends email notifications for host events, for example.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_glob_svc_evt_handler</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The global service event handler to be used in the Nagios configuration. Default is an empty string, which means no global service event handler will be configured. You can specify a command like ‘notify-service-by-email’ to set a global service event handler that sends email notifications for service events, for example.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_check_workers</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>''</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The number of check worker processes to be configured in the Nagios configuration. Default is an empty string, which means no specific number of check worker processes will be configured. You can specify a number like ‘5’ to set the number of check worker processes to 5, for example.</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_object_cache_file</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/var/spool/nagios/objects.cache'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The path to the Nagios object cache file. Default is ‘/var/spool/nagios/objects.cache’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_precached_obj_file</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/var/spool/nagios/objects.precache'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The path to the Nagios precached object</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_resource_file</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/etc/nagios/private/resource.cfg'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The path to the Nagios resource file. Default is ‘/etc/nagios/private/resource.cfg’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_status_file</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/var/log/nagios/status.dat'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The path to the Nagios status file. Default is ‘/var/log/nagios/status.dat’.</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 for updating the Nagios 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 enable external command checking in the Nagios configuration. Default is ‘1’, which means external command checking will be enabled. You can set this to ‘0’ to disable external command checking if needed.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_command_file</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/var/spool/nagios/cmd/nagios.cmd'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The path to the Nagios command file. Default is ‘/var/spool/nagios/cmd/nagios.cmd’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_lock_file</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/var/run/nagios/nagios.pid'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The path to the Nagios lock file. Default is ‘/var/run/nagios/nagios.pid’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_temp_file</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/var/spool/nagios/nagios.tmp'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The path to the Nagios temporary file. Default is ‘/var/spool/nagios/nagios.tmp’.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_temp_path</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/tmp'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The path to the Nagios temporary directory. Default is ‘/tmp’.</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 options for the Nagios event broker. Default is ‘-1’, which means no specific options will be configured. You can specify options like ‘–log-level=debug’ to set the log level for the event broker, for example.</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>'h'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The method for log rotation in the Nagios configuration. Default is ‘h’, which means hourly log rotation. You can set this to ‘d’ for daily log rotation, ‘w’ for weekly log rotation, or ‘m’ for monthly log rotation if needed.</p>
|
||
</div>
|
||
|
||
</li>
|
||
|
||
<li>
|
||
|
||
<span class='name'>ng_log_archive_path</span>
|
||
|
||
|
||
<span class='type'>(<tt>String</tt>)</span>
|
||
|
||
|
||
<em class="default">(defaults to: <tt>'/var/log/nagios/archives'</tt>)</em>
|
||
|
||
|
||
—
|
||
<div class='inline'>
|
||
<p>The path to the Nagios log archive directory. Default is ‘/var/log/nagios/archives’.</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 the Nagios configuration. Default is ‘1’, which means syslog will be used for logging. You can set this to ‘0’ to disable syslog logging if needed.</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 the Nagios configuration. Default is ‘1’, which means notifications will be logged. You can set this to ‘0’ to disable logging of notifications if needed.</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 retries in the Nagios configuration. Default is ‘1’, which means service retries will be logged. You can set this to ‘0’ to disable logging of service retries if needed.</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 retries in the Nagios configuration. Default is ‘1’, which means host retries will be logged. You can set this to ‘0’ to disable logging of host retries if needed.</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 the Nagios configuration. Default is ‘1’, which means event handlers will be logged. You can set this to ‘0’ to disable logging of event handlers if needed.</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 the</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>
|
||
|
||
|
||
</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>
|
||
|
||
|
||
</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>
|
||
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
|
||
|
||
|
||
</div><div class="method_details_list">
|
||
<table class="source_code">
|
||
<tr>
|
||
<td>
|
||
<pre class="lines">
|
||
|
||
|
||
99
|
||
100
|
||
101
|
||
102
|
||
103
|
||
104
|
||
105
|
||
106
|
||
107
|
||
108
|
||
109
|
||
110
|
||
111
|
||
112
|
||
113
|
||
114
|
||
115
|
||
116
|
||
117
|
||
118
|
||
119
|
||
120
|
||
121
|
||
122
|
||
123
|
||
124
|
||
125
|
||
126
|
||
127
|
||
128
|
||
129
|
||
130
|
||
131
|
||
132
|
||
133
|
||
134
|
||
135
|
||
136
|
||
137
|
||
138
|
||
139
|
||
140
|
||
141
|
||
142
|
||
143
|
||
144
|
||
145
|
||
146
|
||
147
|
||
148
|
||
149
|
||
150
|
||
151
|
||
152
|
||
153
|
||
154
|
||
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</pre>
|
||
</td>
|
||
<td>
|
||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 99</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,
|
||
|
||
# user
|
||
String $ng_user = 'nagios',
|
||
String $ng_u_comment = 'Nagios User',
|
||
String $ng_u_groups = 'nagios',
|
||
String $ng_u_shell = '/sbin/nologin',
|
||
String $ng_u_home = '/home/nagios',
|
||
Integer $ng_u_uid = 1004,
|
||
|
||
# nagios_cfg settings
|
||
String $ng_log_file = '/var/log/nagios/nagios.log',
|
||
String $ng_object_cache_file = '/var/spool/nagios/objects.cache',
|
||
String $ng_precached_obj_file = '/var/spool/nagios/objects.precache',
|
||
String $ng_resource_file = '/etc/nagios/private/resource.cfg',
|
||
String $ng_status_file = '/var/log/nagios/status.dat',
|
||
String $ng_status_upd_interval = '10',
|
||
String $ng_check_ext_commands = '1',
|
||
String $ng_command_file = '/var/spool/nagios/cmd/nagios.cmd',
|
||
String $ng_lock_file = '/var/run/nagios/nagios.pid',
|
||
String $ng_temp_file = '/var/spool/nagios/nagios.tmp',
|
||
String $ng_temp_path = '/tmp',
|
||
String $ng_event_broker_options = '-1',
|
||
String $ng_event_broker_module = '',
|
||
String $ng_glob_host_evt_handler = '',
|
||
String $ng_glob_svc_evt_handler = '',
|
||
String $ng_check_workers = '',
|
||
String $ng_log_rotation_method = 'h',
|
||
String $ng_log_archive_path = '/var/log/nagios/archives',
|
||
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',
|
||
|
||
# httpd
|
||
Boolean $ng_use_https = false,
|
||
|
||
) {
|
||
# Default facts
|
||
$fqdn = $facts['networking']['fqdn']
|
||
$domain = $facts['networking']['domain']
|
||
$os_name = $facts['os']['name']
|
||
$os_release = $facts['os']['release']['major']
|
||
|
||
# service
|
||
$ng_nagios_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'
|
||
|
||
## old
|
||
$ng_main_config = "${ng_main_dir}/nagios.cfg"
|
||
$ng_cgi_cfg_file = "${ng_main_dir}/cgi.cfg"
|
||
$ng_cgi_cfg_erb = 'confdroid_nagios/nagios/cgi_cfg.erb'
|
||
$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_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_resource_erb = 'confdroid_nagios/nagios/resource_cfg.erb'
|
||
$ng_grep_erb = 'confdroid_nagios/selinux/grep.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_add.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_add.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_add.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_add.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_add.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_nagios_service_cmd = 'check_nagios!/var/log/nagios/status.dat!5!/usr/sbin/nagios'
|
||
|
||
# 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> |