Files
confdroid_nagios/doc/puppet_classes/cd_nagios_3A_3Aparams.html

2145 lines
44 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
Puppet Class: cd_nagios::params
&mdash; Documentation by YARD 0.9.9
</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
<script type="text/javascript" charset="utf-8">
pathId = "puppet_classes::cd_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> &raquo;
<span class='title'><span class='object_link'>Puppet Classes</span></span>
&raquo;
<span class="title">cd_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: cd_nagios::params</h1>
<div class="box_info">
<dl>
<dt>Inherited by:</dt>
<dd>
<span class='object_link'><a href="cd_nagios_3A_3Amain_3A_3Adirs.html" title="puppet_classes::cd_nagios::main::dirs (puppet_class)">cd_nagios::main::dirs</a></span><br/>
<span class='object_link'><a href="cd_nagios_3A_3Amain_3A_3Auser.html" title="puppet_classes::cd_nagios::main::user (puppet_class)">cd_nagios::main::user</a></span><br/>
<span class='object_link'><a href="cd_nagios_3A_3Amain_3A_3Aconfig.html" title="puppet_classes::cd_nagios::main::config (puppet_class)">cd_nagios::main::config</a></span><br/>
<span class='object_link'><a href="cd_nagios_3A_3Amain_3A_3Ainstall.html" title="puppet_classes::cd_nagios::main::install (puppet_class)">cd_nagios::main::install</a></span><br/>
<span class='object_link'><a href="cd_nagios_3A_3Aserver_3A_3Afiles.html" title="puppet_classes::cd_nagios::server::files (puppet_class)">cd_nagios::server::files</a></span><br/>
<span class='object_link'><a href="cd_nagios_3A_3Aselinux_3A_3Aconfig.html" title="puppet_classes::cd_nagios::selinux::config (puppet_class)">cd_nagios::selinux::config</a></span><br/>
<span class='object_link'><a href="cd_nagios_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::cd_nagios::server::service (puppet_class)">cd_nagios::server::service</a></span><br/>
<span class='object_link'><a href="cd_nagios_3A_3Afirewall_3A_3Aiptables.html" title="puppet_classes::cd_nagios::firewall::iptables (puppet_class)">cd_nagios::firewall::iptables</a></span><br/>
<span class='object_link'><a href="cd_nagios_3A_3Aserver_3A_3Aaccess_rules.html" title="puppet_classes::cd_nagios::server::access_rules (puppet_class)">cd_nagios::server::access_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 cd_nagios module and is
inherited by all classes except defines.
<h2>Overview</h2>
<div class="docstring">
<div class="discussion">
<p>cd_nagios::params.pp
Module name: cd_nagios
Author: Arne Teuke
(arne_teuke@ConfDroid.com)</p>
<h1 id="label-License%3A">License:</h1>
<p>This file is part of cd_nagios.</p>
<p>cd_nagios is used for providing automatic configuration of Nagios.
Copyright (C) 2016 ConfDroid (copyright@ConfDroid.com)
This program is
free software: you can redistribute it and/or modify
it under the terms of
the GNU General Public License as published by
the Free Software
Foundation, either version 3 of the License, or
(at your option) any later
version.</p>
<p>This program is distributed in the hope that it will be useful,
but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License
for more details.</p>
<p>You should have received a copy of the GNU General Public License
along
with this program. If not, see <a
href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.
to connect
to NRPE, which as of now does not trust DNS names. Must be the
public
interface in case of NAT environments.
can issue host related commands.
can
issue service related commands.</p>
</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">
<li>
<span class='name'>pkg_ensure</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;latest&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>which <a href="https://confdroid.com/2017/05/puppet-type-package/">package
type</a>
to choose, i.e. <code>latest</code> or <code>present</code>.</p>
</div>
</li>
<li>
<span class='name'>ng_nagios_server</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&quot;nagios.${::domain}&quot;</tt>)</em>
&mdash;
<div class='inline'>
<p>Specify the FQDN of the nagios server host.
Must be a proper A-name, no
CNAME i.e. on Loadbalancers. When the FQDN
matches the configured value,
Nagios server components will be installed
and the clients will allow to be
connected by that host. Impacts also
firewall ports (optional).</p>
</div>
</li>
<li>
<span class='name'>ng_nagios_ext_ip</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>undef</tt>)</em>
&mdash;
<div class='inline'>
<p>Specify the IP address of the
nagios server. Required for NRPE
configuration to allow the Nagios server</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>
&mdash;
<div class='inline'>
<p>Whether to include NRPE to allow
Nagios to connect to clients</p>
</div>
</li>
<li>
<span class='name'>ng_ping_warn</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;100.0,20%&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for ping warning check. Can be
overridden on host level.</p>
</div>
</li>
<li>
<span class='name'>ng_ping_crit</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;500.0,60%&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for ping critical check. Can be
overridden on host level.</p>
</div>
</li>
<li>
<span class='name'>ng_ping_ensure</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>&#39;present&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Wheter to include or exclude the check.
Can be overridden on host level.</p>
</div>
</li>
<li>
<span class='name'>ng_disk_warn</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;20%&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for disk space warning check.
Can be overridden on host
level.</p>
</div>
</li>
<li>
<span class='name'>ng_disk_crit</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;10%&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for disk space critical check
Can be overridden on host
level.</p>
</div>
</li>
<li>
<span class='name'>ng_disk_ensure</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>&#39;present&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to include or exclude the check.
Can be overridden on host level.</p>
</div>
</li>
<li>
<span class='name'>ng_swap_warn</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;20&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for swap space warning check.
Can be overridden on host
level.</p>
</div>
</li>
<li>
<span class='name'>ng_swap_crit</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;10&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for swap space critical check.
Can be overridden on host
level.</p>
</div>
</li>
<li>
<span class='name'>ng_swap_ensure</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>&#39;present&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to include or exclude the check.
Can be overridden on host level.</p>
</div>
</li>
<li>
<span class='name'>ng_users_warn</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;20&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for user logins warning check.
Can be overridden on host
level.</p>
</div>
</li>
<li>
<span class='name'>ng_users_crit</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;50&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for user logins critical check
Can be overridden on host
level.</p>
</div>
</li>
<li>
<span class='name'>ng_users_ensure</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>&#39;present&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to include or exclude the check.
Can be overridden on host level.</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>&#39;330&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default warning for the total processes
warning check. Can be overridden on
host level.</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>&#39;400&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default warning for the total processes
critical check. Can be overridden
on host level.</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>&#39;RDST&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for the process flags to be
checked. Can be overridden on
host level.</p>
</div>
</li>
<li>
<span class='name'>ng_procs_tot_ens</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>&#39;present&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to include or exclude the check.
Can be overridden on host level.</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>&#39;10&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for the zombie processes
warning check. Can be overridden on
host level.</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>&#39;30&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for the zombie processess
critical check. Can be overridden
on host level.</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>&#39;Z&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for the zombie processes flag.
Can be overridden on host
level.</p>
</div>
</li>
<li>
<span class='name'>ng_procs_z_ensure</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>&#39;present&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to include or exclude the check.
Can be overridden on host level.</p>
</div>
</li>
<li>
<span class='name'>ng_load_warn</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;5.00,4.00,3.00&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for the load warning check.
Can be overridden on host level.</p>
</div>
</li>
<li>
<span class='name'>ng_load_crit</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;10.00,6.00,4.00&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Default value for the load critical check.
Can be overridden on host level.</p>
</div>
</li>
<li>
<span class='name'>ng_load_ensure</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>&#39;present&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to include or exclude the load check.
Can be overridden on host
level.</p>
</div>
</li>
<li>
<span class='name'>ng_include_fw</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>true</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to include firewall management.
requires cd_firewall or
puppetlabs-firewall module.</p>
</div>
</li>
<li>
<span class='name'>ng_fw_order</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;50&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Prefix for the port number to establish proper
firewall rule ordering.</p>
</div>
</li>
<li>
<span class='name'>ng_use_https</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>true</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to use https.</p>
</div>
</li>
<li>
<span class='name'>ng_http_https_fw</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>true</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether we want to forward http to https.
only active if
<code>ng_use_https</code> is set to <code>true</code>.</p>
</div>
</li>
<li>
<span class='name'>ng_http_port</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;80&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Specify the port to use for httpd. Used in
templates and for firewall
(Optional)</p>
</div>
</li>
<li>
<span class='name'>ng_https_port</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;443&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Specify the port to use for httpd. Used in
templates and for firewall
(Optional)</p>
</div>
</li>
<li>
<span class='name'>ng_user</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;nagios&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>The name of the Nagios service user.</p>
</div>
</li>
<li>
<span class='name'>ng_user_home</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;/var/spool/nagios&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>The home directory for the Nagios service user</p>
</div>
</li>
<li>
<span class='name'>ng_user_shell</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;/bin/bash&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>The shell for the Nagios service user, which
never should be allowed to
login.</p>
</div>
</li>
<li>
<span class='name'>ng_u_comment</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;Nagios service user&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>The comment for the Nagios service user for
/etc/passwd. Shows up in email
notifocations from the Nagios daemon.</p>
</div>
</li>
<li>
<span class='name'>ng_u_uid</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;1004&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>The UID for the Nagios service user. Important when
using shared
environments like NFS.</p>
</div>
</li>
<li>
<span class='name'>ng_u_groups</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>undef</tt>)</em>
&mdash;
<div class='inline'>
<p>The secondary groups for the Nagios service user.
Must not contain the
primary group.</p>
</div>
</li>
<li>
<span class='name'>ng_context_help</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;1&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>whether or not a context-sensitive
help icon will be displayed for most of
the CGIs.</p>
</div>
</li>
<li>
<span class='name'>ng_pending_state</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;1&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>what states should be displayed in the web
interface for hosts/services
that have not yet been checked</p>
</div>
</li>
<li>
<span class='name'>ng_use_auth</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;1&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>whether or not the CGIs will use any
authentication when displaying host
and service information, as
well as committing commands to Nagios for
processing. This should <strong>not</strong>
be set to 0.</p>
</div>
</li>
<li>
<span class='name'>ng_use_ssl_auth</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;0&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>allows you to use x509 cert (SSL)
authentication in the CGIs. This is an
advanced option and should
not be enabled unless you know what you&#39;re
doing.</p>
</div>
</li>
<li>
<span class='name'>ng_enable_def_user</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>false</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to enable a default user
(<strong>not recommended</strong>).</p>
</div>
</li>
<li>
<span class='name'>ng_def_user_name</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;nagios_insecure&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>default user name that can
access pages without authentication. This allows
people within a
secure domain (i.e., behind a firewall) to see the current
status
without authenticating. Only actuve if
<code>ng_enable_def_user</code> is set to <code>true</code></p>
</div>
</li>
<li>
<span class='name'>ng_nagios_admin</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;nagios_sec_adm&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Specify the name of a nagios administration
user here. Value will be used
in cgi.cfg for all authorized commands and info,
i.e. nagiosadmin. however,
its stronlgly suggested to use a different name.
Can be overridden per host
/ hostgroups, so allows flexibility and increased
security. You can also
add a comma-separated list of people in here instead,
which then would
function like a group instead a single user.</p>
</div>
</li>
<li>
<span class='name'>ng_sysinfo_auth</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>comma-delimited list of all usernames that
have access to viewing the
Nagios process information as
provided by the Extended Information CGI
(extinfo.cgi).</p>
</div>
</li>
<li>
<span class='name'>ng_confinfo_auth</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>comma-delimited list of all usernames that
can view ALL configuration
information (hosts, commands, etc).</p>
</div>
</li>
<li>
<span class='name'>ng_command_auth</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>comma-delimited list of all usernames that
can issue shutdown and restart
commands to Nagios via the
command CGI (cmd.cgi).</p>
</div>
</li>
<li>
<span class='name'>ng_hostview_auth</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>comma-delimited lists of all usernames that
can view information for all
hosts</p>
</div>
</li>
<li>
<span class='name'>ng_serviceview_auth</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>comma-delimited lists of all usernames
that can view information for all
services.</p>
</div>
</li>
<li>
<span class='name'>ng_host_cmd_auth</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>comma-delimited lists of all usernames that</p>
</div>
</li>
<li>
<span class='name'>ng_svc_cmd_auth</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>comma-delimited lists of all usernames that</p>
</div>
</li>
<li>
<span class='name'>ng_readonly_auth</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>comma-delimited list of usernames that have
read-only rights in the CGIs.</p>
</div>
</li>
<li>
<span class='name'>ng_statusmap_img</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;smbackground.gd2&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>specify an image to be used as a
background in the statusmap CGI.</p>
</div>
</li>
<li>
<span class='name'>ng_use_colormap</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>false</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to set values of background colors.</p>
</div>
</li>
<li>
<span class='name'>ng_colormap_red</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;255&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>value for the <code>red</code> area of the color map.</p>
</div>
</li>
<li>
<span class='name'>ng_colormap_green</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;255&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>value for the <code>green</code> area of the color map</p>
</div>
</li>
<li>
<span class='name'>ng_colormap_blue</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;255&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>value for the <code>blue</code> area of the color map.</p>
</div>
</li>
<li>
<span class='name'>ng_statusmap_layout</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;6&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Value for the default statusmap layout.</p>
</div>
</li>
<li>
<span class='name'>ng_wrl_layout</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;4&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Value for the default statuswrl layout.</p>
</div>
</li>
<li>
<span class='name'>ng_incl_own_wrl</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>false</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to include your own objects in the
generated VRML world.</p>
</div>
</li>
<li>
<span class='name'>ng_statuswrl_include</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Specify your own wrl object to be
included in the generated VRML world.
Only active if <code>ng_incl_own_wrl</code>
is set to <code>true</code>.</p>
</div>
</li>
<li>
<span class='name'>ng_ping_syntax</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;/bin/ping -n -U -c 5 $HOSTADDRESS$&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>what syntax should be used when
attempting to ping a host from the WAP
interface</p>
</div>
</li>
<li>
<span class='name'>ng_refresh_rate</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;90&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>specify the refresh rate in seconds
of various CGIs</p>
</div>
</li>
<li>
<span class='name'>ng_result_limit</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;100&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>specify the default number of results
displayed on the status.cgi.</p>
</div>
</li>
<li>
<span class='name'>ng_escape_html</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;1&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>whether HTML tags in host and service
status output is escaped in the web
interface. If enabled,
your plugin output will not be able to contain
clickable links.</p>
</div>
</li>
<li>
<span class='name'>ng_use_sound</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>false</tt>)</em>
&mdash;
<div class='inline'>
<p>whether to enable sound usage.</p>
</div>
</li>
<li>
<span class='name'>ng_host_unreachable</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;hostdown.wav&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>soundfile for <code>host unreachable</code>
Only active if
<code>ng_use_sound</code> is set to <code>true</code>.</p>
</div>
</li>
<li>
<span class='name'>ng_host_down</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;hostdown.wav&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>soundfile for <code>host down</code>
Only active if
<code>ng_use_sound</code> is set to <code>true</code>.</p>
</div>
</li>
<li>
<span class='name'>ng_svc_critical</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;critical.wav&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>soundfile for <code>service critical</code>.
Only active if
<code>ng_use_sound</code> is set to <code>true</code>.</p>
</div>
</li>
<li>
<span class='name'>ng_svc_warn</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;warning.wav&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>soundfile for <code>service warning</code>
Only active if
<code>ng_use_sound</code> is set to <code>true</code>.</p>
</div>
</li>
<li>
<span class='name'>ng_svc_unknown</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;warning.wav&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>soundfile for <code>service unknown</code>
Only active if
<code>ng_use_sound</code> is set to <code>true</code>.</p>
</div>
</li>
<li>
<span class='name'>ng_normal_sound</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;noproblem.wav&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>soundfile for <code>normal</code>
Only active if <code>ng_use_sound</code>
is set to <code>true</code>.</p>
</div>
</li>
<li>
<span class='name'>ng_action_url_target</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;_blank&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Specify target frames in which
action URLs will open</p>
</div>
</li>
<li>
<span class='name'>ng_notes_url_target</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;_blank&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Specify target frames in which
notes URLs will open</p>
</div>
</li>
<li>
<span class='name'>ng_lock_author_names</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;1&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>whether users can change the author
name when submitting comments,
scheduling downtime.</p>
</div>
</li>
<li>
<span class='name'>ng_enable_splunk</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>false</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to enable splunk integration.</p>
</div>
</li>
<li>
<span class='name'>ng_splunk_url</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;http://127.0.0.1:8000/&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>the URL for your Splunk URL</p>
</div>
</li>
<li>
<span class='name'>ng_navbar_addresses</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;1&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>allow navbar search queries IP addresses</p>
</div>
</li>
<li>
<span class='name'>ng_navbar_aliases</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;1&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>allow navbar search for aliases</p>
</div>
</li>
<li>
<span class='name'>ng_ack_no_sticky</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;0&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Enabling ack_no_sticky will default the
&quot;Sticky Acknowledgement&quot;
to be unchecked.</p>
</div>
</li>
<li>
<span class='name'>ng_ack_no_send</span>
<span class='type'>(<tt>string</tt>)</span>
<em class="default">(defaults to: <tt>&#39;0&#39;</tt>)</em>
&mdash;
<div class='inline'>
<p>Enabling ack_no_send will default the
&quot;Send Notification&quot; to be
unchecked.</p>
</div>
</li>
<li>
<span class='name'>ng_use_selinux_tools</span>
<span class='type'>(<tt>boolean</tt>)</span>
<em class="default">(defaults to: <tt>true</tt>)</em>
&mdash;
<div class='inline'>
<p>Whether to enable selinux tools and
policies. only effective if selinux is
enabled.</p>
</div>
</li>
</ul>
<p class="tag_title">See Also:</p>
<ul class="see">
<li><a href="https://confdroid.com/2017/07/nagios-cgi-cfg/" target="_parent" title="https://confdroid.com/2017/07/nagios-cgi-cfg/">https://confdroid.com/2017/07/nagios-cgi-cfg/</a></li>
</ul>
</div><div class="method_details_list">
<table class="source_code">
<tr>
<td>
<pre class="lines">
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</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 198</span>
class cd_nagios::params (
$pkg_ensure = &#39;latest&#39;,
$ng_nagios_server = &quot;nagios.${::domain}&quot;,
$ng_nagios_ext_ip = undef,
$ng_include_nrpe = true,
# firewall
$ng_include_fw = true,
$ng_use_https = true,
$ng_http_https_fw = true,
$ng_fw_order = &#39;50&#39;,
$ng_http_port = &#39;80&#39;,
$ng_https_port = &#39;443&#39;,
# check command parameters
## ping
$ng_ping_warn = &#39;100.0,20%&#39;,
$ng_ping_crit = &#39;500.0,60%&#39;,
$ng_ping_ensure = &#39;present&#39;,
## disk
$ng_disk_warn = &#39;20%&#39;,
$ng_disk_crit = &#39;10%&#39; ,
$ng_disk_ensure = &#39;present&#39;,
# swap
$ng_swap_warn = &#39;20&#39;,
$ng_swap_crit = &#39;10&#39;,
$ng_swap_ensure = &#39;present&#39;,
# users
$ng_users_warn = &#39;20&#39;,
$ng_users_crit = &#39;50&#39;,
$ng_users_ensure = &#39;present&#39;,
#total procs
$ng_procs_tot_warn = &#39;330&#39;,
$ng_procs_tot_crit = &#39;400&#39;,
$ng_procs_tot_param = &#39;RDST&#39;,
$ng_procs_tot_ens = &#39;present&#39;,
# zombie procs
$ng_procs_z_warn = &#39;10&#39;,
$ng_procs_z_crit = &#39;30&#39;,
$ng_procs_z_param = &#39;Z&#39;,
$ng_procs_z_ensure = &#39;present&#39;,
# load
$ng_load_warn = &#39;5.00,4.00,3.00&#39;,
$ng_load_crit = &#39;10.00,6.00,4.00&#39;,
$ng_load_ensure = &#39;present&#39;,
# user settings
$ng_user = &#39;nagios&#39;,
$ng_u_comment = &#39;Nagios service user&#39;,
$ng_u_uid = &#39;1004&#39;,
$ng_user_home = &#39;/var/spool/nagios&#39;,
$ng_u_groups = undef,
$ng_user_shell = &#39;/bin/bash&#39;,
# cgi settings
$ng_context_help = &#39;1&#39;,
$ng_pending_state = &#39;1&#39;,
$ng_use_auth = &#39;1&#39;,
$ng_use_ssl_auth = &#39;0&#39;,
$ng_enable_def_user = false,
$ng_def_user_name = &#39;nagios_insecure&#39;,
$ng_nagios_admin = &#39;nagios_sec_adm&#39;,
$ng_sysinfo_auth = &#39;&#39;,
$ng_confinfo_auth = &#39;&#39;,
$ng_command_auth = &#39;&#39;,
$ng_hostview_auth = &#39;&#39;,
$ng_serviceview_auth = &#39;&#39;,
$ng_host_cmd_auth = &#39;&#39;,
$ng_svc_cmd_auth = &#39;&#39;,
$ng_readonly_auth = &#39;&#39; ,
$ng_statusmap_img = &#39;smbackground.gd2&#39;,
$ng_use_colormap = false,
$ng_colormap_red = &#39;255&#39;,
$ng_colormap_green = &#39;255&#39;,
$ng_colormap_blue = &#39;255&#39;,
$ng_statusmap_layout = &#39;6&#39;,
$ng_wrl_layout = &#39;4&#39;,
$ng_incl_own_wrl = false,
$ng_statuswrl_include = &#39;&#39;,
$ng_ping_syntax = &#39;/bin/ping -n -U -c 5 $HOSTADDRESS$&#39;,
$ng_refresh_rate = &#39;90&#39;,
$ng_result_limit = &#39;100&#39;,
$ng_escape_html = &#39;1&#39;,
$ng_use_sound = false,
$ng_host_unreachable = &#39;hostdown.wav&#39;,
$ng_host_down = &#39;hostdown.wav&#39;,
$ng_svc_critical = &#39;critical.wav&#39;,
$ng_svc_warn = &#39;warning.wav&#39;,
$ng_svc_unknown = &#39;warning.wav&#39;,
$ng_normal_sound = &#39;noproblem.wav&#39;,
$ng_action_url_target = &#39;_blank&#39;,
$ng_notes_url_target = &#39;_blank&#39;,
$ng_lock_author_names = &#39;1&#39;,
$ng_enable_splunk = false,
$ng_splunk_url = &#39;http://127.0.0.1:8000/&#39;,
$ng_navbar_addresses = &#39;1&#39;,
$ng_navbar_aliases = &#39;1&#39;,
$ng_ack_no_sticky = &#39;0&#39;,
$ng_ack_no_send = &#39;0&#39;,
# selinux
$ng_use_selinux_tools = true,
) {
# installation section
$reqpackages_server = $::operatingsystem ? {
/(?i-mx:centos|fedora|redhat)/ =&gt; [&#39;nagios&#39;,&#39;nagios-devel&#39;]
}
$reqpackages_client = $::operatingsystem ? {
/(?i-mx:centos|fedora|redhat)/ =&gt; [&#39;net-snmp-utils&#39;,&#39;nagios-plugins&#39;,&#39;nagios-plugins-all&#39;, &#39;nagios-plugins-nrpe&#39;, &#39;nagios-common&#39;]
}
$reqpackages_nrpe = $::operatingsystem ? {
/(?i-mx:centos|fedora|redhat)/ =&gt; [&#39;nrpe&#39;]
}
# service
$ng_service = &#39;nagios&#39;
# directories
$ng_main_dir = &#39;/etc/nagios&#39;
$ng_conf_d_dir = &quot;${ng_main_dir}/conf.d&quot;
$ng_objects_dir = &quot;${ng_main_dir}/objects&quot;
$ng_private_dir = &quot;${ng_main_dir}/private&quot;
$ng_usr_incl = &#39;/usr/include/nagios&#39;
$ng_lib_dir = &#39;/usr/lib64/nagios&#39;
$ng_log_dir = &#39;/var/log/nagios&#39;
$ng_log_archives = &quot;${ng_log_dir}/archives&quot;
$ng_spool_dir = &#39;/var/spool/nagios&#39;
$ng_usr_share = &#39;/usr/share/nagios&#39;
$ng_share_html = &quot;${ng_usr_share}/html&quot;
# files
$ng_main_config = &quot;${ng_main_dir}/nagios.cfg&quot;
$ng_cgi_cfg_file = &quot;${ng_main_dir}/cgi.cfg&quot;
$ng_cgi_cfg_erb = &#39;cd_nagios/nagios/cgi_cfg.erb&#39;
$ng_htpasswd_file = &quot;${ng_main_dir}/passwd&quot;
$ng_htpasswd_head = &#39;cd_nagios/nagios/htpasswd_head.erb&#39;
$ng_htpasswd_rule = &#39;cd_nagios/nagios/htpasswd_rule.erb&#39;
$ng_taccgi_erb = &#39;cd_nagios/selinux/taccgi.erb&#39;
# includes must be last
include cd_nagios::main::config
}</pre>
</td>
</tr>
</table>
</div>
</div>
<div id="footer">
Generated on Thu Jul 20 16:11:10 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0).
</div>
</div>
</body>
</html>