Merge branch 'master' of gitlab.puppetsoft.com:12ww1160/cd_nagios into HEAD
This commit is contained in:
180
CHANGELOG.md
180
CHANGELOG.md
@@ -8,6 +8,186 @@ Changelog of Git Changelog.
|
||||
<h2> No issue </h2>
|
||||
|
||||
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/d395b5f60d08f61">d395b5f60d08f61</a> Jenkins Server <i>2017-07-26 11:16:49</i>
|
||||
<p>
|
||||
<h3>recommit for updates in build 97</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/85ade68820b8379">85ade68820b8379</a> Arne Teuke <i>2017-07-26 11:16:25</i>
|
||||
<p>
|
||||
<h3>added base contacts and additional contacts</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/62feddee64c23f9">62feddee64c23f9</a> Jenkins Server <i>2017-07-25 18:04:08</i>
|
||||
<p>
|
||||
<h3>recommit for updates in build 96</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/099828e47a377d2">099828e47a377d2</a> Arne Teuke <i>2017-07-25 18:02:29</i>
|
||||
<p>
|
||||
<h3>testing templates</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/336e03f6090e222">336e03f6090e222</a> Arne Teuke <i>2017-07-25 18:01:03</i>
|
||||
<p>
|
||||
<h3>testing templates</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/a23722a67a2afb6">a23722a67a2afb6</a> Jenkins Server <i>2017-07-25 17:56:39</i>
|
||||
<p>
|
||||
<h3>recommit for updates in build 93</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/a04f079a6cbeec8">a04f079a6cbeec8</a> Arne Teuke <i>2017-07-25 17:56:18</i>
|
||||
<p>
|
||||
<h3>testing templates</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/445db500b3ab876">445db500b3ab876</a> Jenkins Server <i>2017-07-25 16:15:39</i>
|
||||
<p>
|
||||
<h3>recommit for updates in build 92</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/b4e4ceb9b07cde4">b4e4ceb9b07cde4</a> Arne Teuke <i>2017-07-25 16:15:21</i>
|
||||
<p>
|
||||
<h3>added parameter documentation</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/a3517b81e663a07">a3517b81e663a07</a> Jenkins Server <i>2017-07-25 16:13:43</i>
|
||||
<p>
|
||||
<h3>recommit for updates in build 91</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/e03a5d94750b182">e03a5d94750b182</a> Arne Teuke <i>2017-07-25 16:13:25</i>
|
||||
<p>
|
||||
<h3>added parameter documentation</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/cc2d2cbf2968cce">cc2d2cbf2968cce</a> Jenkins Server <i>2017-07-25 15:57:28</i>
|
||||
<p>
|
||||
<h3>recommit for updates in build 90</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/6a57847a121f632">6a57847a121f632</a> Arne Teuke <i>2017-07-25 15:57:10</i>
|
||||
<p>
|
||||
<h3>added contact stanza</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/8a97768e4b258d7">8a97768e4b258d7</a> Arne Teuke <i>2017-07-25 15:46:00</i>
|
||||
<p>
|
||||
<h3>added template concat</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/53e7b9d0b24391e">53e7b9d0b24391e</a> Arne Teuke <i>2017-07-25 15:39:28</i>
|
||||
<p>
|
||||
<h3>added template concat</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/f5657930f604a9a">f5657930f604a9a</a> Arne Teuke <i>2017-07-25 15:32:38</i>
|
||||
<p>
|
||||
<h3>added and linked template_rules</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/633f59375b02f4b">633f59375b02f4b</a> Arne Teuke <i>2017-07-25 15:30:03</i>
|
||||
<p>
|
||||
<h3>added and linked template_rules</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/0f8cf13c3ea9b4a">0f8cf13c3ea9b4a</a> Arne Teuke <i>2017-07-25 14:56:52</i>
|
||||
<p>
|
||||
<h3>linked commands.pp</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/b4b3de53a39ef00">b4b3de53a39ef00</a> Jenkins Server <i>2017-07-25 14:48:58</i>
|
||||
<p>
|
||||
<h3>recommit for updates in build 84</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/3327f6d8692753b">3327f6d8692753b</a> Arne Teuke <i>2017-07-25 14:48:39</i>
|
||||
<p>
|
||||
<h3>added commands.pp</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/4ae4a056901361a">4ae4a056901361a</a> Jenkins Server <i>2017-07-25 14:34:30</i>
|
||||
<p>
|
||||
<h3>recommit for updates in build 83</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/f2a243b7c28f935">f2a243b7c28f935</a> Arne Teuke <i>2017-07-25 14:34:14</i>
|
||||
<p>
|
||||
<h3>checked and documented all parameters, fixed template syntaxes</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/66d7dbd91cffae4">66d7dbd91cffae4</a> Arne Teuke <i>2017-07-25 14:28:08</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/d57274747a8e494">d57274747a8e494</a> Arne Teuke <i>2017-07-25 14:25:50</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/e8dc9c43f2a4929">e8dc9c43f2a4929</a> Arne Teuke <i>2017-07-25 14:24:34</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/b59eff871f3c507">b59eff871f3c507</a> Arne Teuke <i>2017-07-25 14:23:29</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/616d0c3e9fb58b2">616d0c3e9fb58b2</a> Arne Teuke <i>2017-07-25 14:21:38</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/a902f3441b0341f">a902f3441b0341f</a> Arne Teuke <i>2017-07-25 14:15:07</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/c00ece4cb6c8f90">c00ece4cb6c8f90</a> Arne Teuke <i>2017-07-25 14:13:38</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/f853a7b923a54d3">f853a7b923a54d3</a> Arne Teuke <i>2017-07-25 14:11:16</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/1c83a1e829005c2">1c83a1e829005c2</a> Arne Teuke <i>2017-07-25 14:09:51</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/bd7822710c44a07">bd7822710c44a07</a> Arne Teuke <i>2017-07-25 14:06:56</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/3ef1c7d9c75f229">3ef1c7d9c75f229</a> Arne Teuke <i>2017-07-25 14:05:13</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/9571dc875b0362e">9571dc875b0362e</a> Arne Teuke <i>2017-07-25 14:01:26</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/12e671b3419dd2a">12e671b3419dd2a</a> Arne Teuke <i>2017-07-25 13:58:36</i>
|
||||
<p>
|
||||
<h3>template syntax</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/86d4dd1db69fd1a">86d4dd1db69fd1a</a> Arne Teuke <i>2017-07-25 13:50:33</i>
|
||||
<p>
|
||||
<h3>finished params for nagios.cfg</h3>
|
||||
|
||||
</p>
|
||||
<a href="https://gitlab.puppetsoft.com/12WW1160/git-changelog-lib/commit/449f2f7825b0d88">449f2f7825b0d88</a> Jenkins Server <i>2017-07-24 15:25:38</i>
|
||||
<p>
|
||||
<h3>recommit for updates in build 68</h3>
|
||||
|
||||
@@ -17,6 +17,11 @@
|
||||
| | |-- cd_nagios_3A_3Amain_3A_3Adirs.html
|
||||
| | |-- cd_nagios_3A_3Amain_3A_3Ainstall.html
|
||||
| | |-- cd_nagios_3A_3Amain_3A_3Auser.html
|
||||
| | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact_rules.html
|
||||
| | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acommands.html
|
||||
| | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aconfig.html
|
||||
| | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acontacts.html
|
||||
| | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplate_rules.html
|
||||
| | |-- cd_nagios_3A_3Aparams.html
|
||||
| | |-- cd_nagios_3A_3Aselinux_3A_3Aconfig.html
|
||||
| | |-- cd_nagios_3A_3Aserver_3A_3Aaccess_rules.html
|
||||
@@ -24,6 +29,8 @@
|
||||
| | |-- cd_nagios_3A_3Aserver_3A_3Aservice.html
|
||||
| | `-- cd_nagios.html
|
||||
| |-- puppet_defined_types
|
||||
| | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact.html
|
||||
| | |-- cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplates.html
|
||||
| | `-- cd_nagios_3A_3Aserver_3A_3Aaccess.html
|
||||
| |-- file.README.html
|
||||
| |-- frames.html
|
||||
@@ -44,6 +51,15 @@
|
||||
| | |-- dirs.pp
|
||||
| | |-- install.pp
|
||||
| | `-- user.pp
|
||||
| |-- nagios
|
||||
| | `-- objects
|
||||
| | |-- add_contact.pp
|
||||
| | |-- add_contact_rules.pp
|
||||
| | |-- commands.pp
|
||||
| | |-- config.pp
|
||||
| | |-- contacts.pp
|
||||
| | |-- template_rules.pp
|
||||
| | `-- templates.pp
|
||||
| |-- selinux
|
||||
| | `-- config.pp
|
||||
| |-- server
|
||||
@@ -64,8 +80,13 @@
|
||||
| | `-- nagios_ssl_vhost.erb
|
||||
| |-- nagios
|
||||
| | |-- cgi_cfg.erb
|
||||
| | |-- contacts_cfg.erb
|
||||
| | |-- contacts_cfg_head.erb
|
||||
| | |-- contacts_cfg_rule.erb
|
||||
| | |-- htpasswd_rule.erb
|
||||
| | `-- nagios_cfg.erb
|
||||
| | |-- nagios_cfg.erb
|
||||
| | |-- templates_cfg_head.erb
|
||||
| | `-- templates_cfg_rule.erb
|
||||
| `-- selinux
|
||||
| |-- statuscgi.erb
|
||||
| `-- taccgi.erb
|
||||
@@ -79,4 +100,4 @@
|
||||
|-- README.md
|
||||
`-- REPOSTRUCTURE.md
|
||||
|
||||
18 directories, 61 files
|
||||
20 directories, 80 files
|
||||
|
||||
@@ -108,6 +108,31 @@
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact_rules.html" title="puppet_classes::cd_nagios::nagios::objects::add_contact_rules (puppet_class)">cd_nagios::nagios::objects::add_contact_rules</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acommands.html" title="puppet_classes::cd_nagios::nagios::objects::commands (puppet_class)">cd_nagios::nagios::objects::commands</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aconfig.html" title="puppet_classes::cd_nagios::nagios::objects::config (puppet_class)">cd_nagios::nagios::objects::config</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acontacts.html" title="puppet_classes::cd_nagios::nagios::objects::contacts (puppet_class)">cd_nagios::nagios::objects::contacts</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplate_rules.html" title="puppet_classes::cd_nagios::nagios::objects::template_rules (puppet_class)">cd_nagios::nagios::objects::template_rules</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Aparams.html" title="puppet_classes::cd_nagios::params (puppet_class)">cd_nagios::params</a></span>
|
||||
|
||||
@@ -153,6 +178,16 @@
|
||||
<li class="letter">C</li>
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact.html" title="puppet_defined_types::cd_nagios::nagios::objects::add_contact (puppet_defined_type)">cd_nagios::nagios::objects::add_contact</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplates.html" title="puppet_defined_types::cd_nagios::nagios::objects::templates (puppet_defined_type)">cd_nagios::nagios::objects::templates</a></span>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<span class='object_link'><a href="puppet_defined_types/cd_nagios_3A_3Aserver_3A_3Aaccess.html" title="puppet_defined_types::cd_nagios::server::access (puppet_defined_type)">cd_nagios::server::access</a></span>
|
||||
|
||||
@@ -186,7 +221,7 @@
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:21 2017 by
|
||||
Generated on Wed Jul 26 13:30:44 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>
|
||||
|
||||
@@ -141,17 +141,24 @@ directories (filesystem permissions, selinux )
|
||||
* manage cgi.cfg through
|
||||
parameters
|
||||
* manage nagios.cfg through parameters
|
||||
* manage nagios users
|
||||
* manage Nagios users
|
||||
through external Puppet rules via define
|
||||
* configure NRPE on clients
|
||||
(optional)
|
||||
* manage Nagios commands through
|
||||
Puppet exports
|
||||
* manage Nagios template definitions through external Puppet
|
||||
rules via define
|
||||
* manage Nagios main contacts through Puppet exports.
|
||||
Additional contacts can be created through external Puppet rules via
|
||||
define, to avoid having to alter the module code.
|
||||
* configure NRPE on
|
||||
clients (optional)
|
||||
* configure firewall (optional)
|
||||
* configure selinux policies
|
||||
(optional)
|
||||
* configure forwarding http to https including accesing the
|
||||
/nagios url directly (optional)
|
||||
* manage TLS certificates through certbot
|
||||
(optional)</p>
|
||||
* configure selinux
|
||||
policies (optional)
|
||||
* configure forwarding http to https including accesing
|
||||
the /nagios url directly (optional)
|
||||
* manage TLS certificates through
|
||||
certbot (optional)</p>
|
||||
|
||||
<p>Service
|
||||
* manage Nagios service on server
|
||||
@@ -183,6 +190,14 @@ for selinux policy adjustments</p>
|
||||
</li><li>
|
||||
<p><a href="https://gitlab.puppetsoft.com/12WW1160/cd_certbot">cd_certbot</a>
|
||||
to auto-manage TLS certificates (optional)</p>
|
||||
</li><li>
|
||||
<p><a href="https://gitlab.puppetsoft.com/12WW1160/cd_stdlib">cd_stdlib</a> or
|
||||
<a href="https://github.com/puppetlabs/puppetlabs-stdlib">puppetlabs
|
||||
stdlib</a> to facilitate concat</p>
|
||||
</li><li>
|
||||
<p><a href="https://gitlab.puppetsoft.com/12WW1160/cd_stdlib">cd-concat</a> or
|
||||
<a href="https://github.com/puppetlabs/puppetlabs-concat">puppetlabs
|
||||
concat</a> to concatenate configuration files from different sources.</p>
|
||||
</li></ul>
|
||||
|
||||
<h3 id="label-Deployment">Deployment</h3>
|
||||
@@ -337,7 +352,7 @@ environments.</p>
|
||||
</div></div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:22 2017 by
|
||||
Generated on Wed Jul 26 13:30:46 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>
|
||||
|
||||
@@ -141,17 +141,24 @@ directories (filesystem permissions, selinux )
|
||||
* manage cgi.cfg through
|
||||
parameters
|
||||
* manage nagios.cfg through parameters
|
||||
* manage nagios users
|
||||
* manage Nagios users
|
||||
through external Puppet rules via define
|
||||
* configure NRPE on clients
|
||||
(optional)
|
||||
* manage Nagios commands through
|
||||
Puppet exports
|
||||
* manage Nagios template definitions through external Puppet
|
||||
rules via define
|
||||
* manage Nagios main contacts through Puppet exports.
|
||||
Additional contacts can be created through external Puppet rules via
|
||||
define, to avoid having to alter the module code.
|
||||
* configure NRPE on
|
||||
clients (optional)
|
||||
* configure firewall (optional)
|
||||
* configure selinux policies
|
||||
(optional)
|
||||
* configure forwarding http to https including accesing the
|
||||
/nagios url directly (optional)
|
||||
* manage TLS certificates through certbot
|
||||
(optional)</p>
|
||||
* configure selinux
|
||||
policies (optional)
|
||||
* configure forwarding http to https including accesing
|
||||
the /nagios url directly (optional)
|
||||
* manage TLS certificates through
|
||||
certbot (optional)</p>
|
||||
|
||||
<p>Service
|
||||
* manage Nagios service on server
|
||||
@@ -183,6 +190,14 @@ for selinux policy adjustments</p>
|
||||
</li><li>
|
||||
<p><a href="https://gitlab.puppetsoft.com/12WW1160/cd_certbot">cd_certbot</a>
|
||||
to auto-manage TLS certificates (optional)</p>
|
||||
</li><li>
|
||||
<p><a href="https://gitlab.puppetsoft.com/12WW1160/cd_stdlib">cd_stdlib</a> or
|
||||
<a href="https://github.com/puppetlabs/puppetlabs-stdlib">puppetlabs
|
||||
stdlib</a> to facilitate concat</p>
|
||||
</li><li>
|
||||
<p><a href="https://gitlab.puppetsoft.com/12WW1160/cd_stdlib">cd-concat</a> or
|
||||
<a href="https://github.com/puppetlabs/puppetlabs-concat">puppetlabs
|
||||
concat</a> to concatenate configuration files from different sources.</p>
|
||||
</li></ul>
|
||||
|
||||
<h3 id="label-Deployment">Deployment</h3>
|
||||
@@ -337,7 +352,7 @@ environments.</p>
|
||||
</div></div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:22 2017 by
|
||||
Generated on Wed Jul 26 13:30:45 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>
|
||||
|
||||
@@ -96,35 +96,70 @@
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::params" class="odd">
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::add_contact_rules" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact_rules.html" title="puppet_classes::cd_nagios::nagios::objects::add_contact_rules (puppet_class)">cd_nagios::nagios::objects::add_contact_rules</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::commands" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acommands.html" title="puppet_classes::cd_nagios::nagios::objects::commands (puppet_class)">cd_nagios::nagios::objects::commands</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::config" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aconfig.html" title="puppet_classes::cd_nagios::nagios::objects::config (puppet_class)">cd_nagios::nagios::objects::config</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::contacts" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acontacts.html" title="puppet_classes::cd_nagios::nagios::objects::contacts (puppet_class)">cd_nagios::nagios::objects::contacts</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::nagios::objects::template_rules" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplate_rules.html" title="puppet_classes::cd_nagios::nagios::objects::template_rules (puppet_class)">cd_nagios::nagios::objects::template_rules</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::params" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Aparams.html" title="puppet_classes::cd_nagios::params (puppet_class)">cd_nagios::params</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::selinux::config" class="even">
|
||||
<li id="object_puppet_classes::cd_nagios::selinux::config" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Aselinux_3A_3Aconfig.html" title="puppet_classes::cd_nagios::selinux::config (puppet_class)">cd_nagios::selinux::config</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::server::access_rules" class="odd">
|
||||
<li id="object_puppet_classes::cd_nagios::server::access_rules" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/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>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::server::files" class="even">
|
||||
<li id="object_puppet_classes::cd_nagios::server::files" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Aserver_3A_3Afiles.html" title="puppet_classes::cd_nagios::server::files (puppet_class)">cd_nagios::server::files</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_classes::cd_nagios::server::service" class="odd">
|
||||
<li id="object_puppet_classes::cd_nagios::server::service" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_classes/cd_nagios_3A_3Aserver_3A_3Aservice.html" title="puppet_classes::cd_nagios::server::service (puppet_class)">cd_nagios::server::service</a></span>
|
||||
</div>
|
||||
|
||||
@@ -139,7 +139,7 @@ class cd_nagios {
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:23 2017 by
|
||||
Generated on Wed Jul 26 13:30:46 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>
|
||||
|
||||
@@ -230,7 +230,7 @@ class cd_nagios::certbot::certs (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:27 2017 by
|
||||
Generated on Wed Jul 26 13:30:50 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>
|
||||
|
||||
@@ -368,7 +368,7 @@ class cd_nagios::client::target (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:27 2017 by
|
||||
Generated on Wed Jul 26 13:30:50 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>
|
||||
|
||||
@@ -207,7 +207,7 @@ class cd_nagios::firewall::iptables (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:27 2017 by
|
||||
Generated on Wed Jul 26 13:30:50 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>
|
||||
|
||||
@@ -195,7 +195,7 @@ class cd_nagios::main::config (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:26 2017 by
|
||||
Generated on Wed Jul 26 13:30:50 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>
|
||||
|
||||
@@ -468,7 +468,7 @@ class cd_nagios::main::dirs (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:26 2017 by
|
||||
Generated on Wed Jul 26 13:30:49 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>
|
||||
|
||||
@@ -235,7 +235,7 @@ class cd_nagios::main::install (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:26 2017 by
|
||||
Generated on Wed Jul 26 13:30:50 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>
|
||||
|
||||
@@ -200,7 +200,7 @@ class cd_nagios::main::user (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:26 2017 by
|
||||
Generated on Wed Jul 26 13:30:49 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>
|
||||
|
||||
@@ -0,0 +1,238 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: cd_nagios::nagios::objects::add_contact_rules
|
||||
|
||||
— 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::nagios::objects::add_contact_rules";
|
||||
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">cd_nagios::nagios::objects::add_contact_rules</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::nagios::objects::add_contact_rules</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="cd_nagios_3A_3Aparams.html" title="puppet_classes::cd_nagios::params (puppet_class)">cd_nagios::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/nagios/objects/add_contact_rules.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages /etc/nagios/conf.d/nagios_add_contact.cfg through
|
||||
concat.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>cd_nagios::nagios::objects::add_contact_rules.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>/.
|
||||
cd_nagios::nagios::objects::add_contact
|
||||
{ 'example_user':
|
||||
ng_contact_name => 'example_user',
|
||||
|
||||
ng_contact_alias => 'Example User',
|
||||
ng_contact_groups =>
|
||||
'admins',
|
||||
ng_contact_email => 'example@example.net',
|
||||
}</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div><div class="method_details_list">
|
||||
<table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
31
|
||||
32
|
||||
33
|
||||
34
|
||||
35
|
||||
36
|
||||
37
|
||||
38
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45
|
||||
46
|
||||
47
|
||||
48
|
||||
49
|
||||
50
|
||||
51
|
||||
52
|
||||
53
|
||||
54
|
||||
55
|
||||
56
|
||||
57
|
||||
58
|
||||
59
|
||||
60
|
||||
61
|
||||
62
|
||||
63
|
||||
64
|
||||
65
|
||||
66
|
||||
67
|
||||
68
|
||||
69</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/add_contact_rules.pp', line 31</span>
|
||||
|
||||
class cd_nagios::nagios::objects::add_contact_rules (
|
||||
|
||||
) inherits cd_nagios::params {
|
||||
|
||||
if $::fqdn == $ng_nagios_server {
|
||||
|
||||
# manage /etc/nagios/conf.d/nagios_add_contacts.cfg
|
||||
|
||||
concat { $ng_target_add_contact:
|
||||
ensure => present,
|
||||
path => $ng_target_add_contact,
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => nagios_etc_t,
|
||||
seluser => system_u,
|
||||
notify => Service[$ng_service],
|
||||
}
|
||||
|
||||
# manage file header
|
||||
|
||||
concat::fragment { 'contact_header':
|
||||
target => $ng_target_add_contact,
|
||||
content => template($ng_contacts_head_erb),
|
||||
order => '000',
|
||||
}
|
||||
|
||||
# example rule for testing
|
||||
|
||||
cd_nagios::nagios::objects::add_contact { 'example_user':
|
||||
ng_contact_name => 'example_user',
|
||||
ng_contact_alias => 'Example User',
|
||||
ng_contact_groups => 'admins',
|
||||
ng_contact_email => 'example@example.net',
|
||||
}
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Jul 26 13:30:51 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>
|
||||
@@ -0,0 +1,605 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: cd_nagios::nagios::objects::commands
|
||||
|
||||
— 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::nagios::objects::commands";
|
||||
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">cd_nagios::nagios::objects::commands</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::nagios::objects::commands</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="cd_nagios_3A_3Aparams.html" title="puppet_classes::cd_nagios::params (puppet_class)">cd_nagios::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/nagios/objects/commands.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages all commands known to NAGIOS through Puppet exports,
|
||||
and populates /etc/nagios/conf.d/nagios_commands.cfg.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>cd_nagios::nagios::objects::commands.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>/.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div><div class="method_details_list">
|
||||
<table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
34
|
||||
35
|
||||
36
|
||||
37
|
||||
38
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45
|
||||
46
|
||||
47
|
||||
48
|
||||
49
|
||||
50
|
||||
51
|
||||
52
|
||||
53
|
||||
54
|
||||
55
|
||||
56
|
||||
57
|
||||
58
|
||||
59
|
||||
60
|
||||
61
|
||||
62
|
||||
63
|
||||
64
|
||||
65
|
||||
66
|
||||
67
|
||||
68
|
||||
69
|
||||
70
|
||||
71
|
||||
72
|
||||
73
|
||||
74
|
||||
75
|
||||
76
|
||||
77
|
||||
78
|
||||
79
|
||||
80
|
||||
81
|
||||
82
|
||||
83
|
||||
84
|
||||
85
|
||||
86
|
||||
87
|
||||
88
|
||||
89
|
||||
90
|
||||
91
|
||||
92
|
||||
93
|
||||
94
|
||||
95
|
||||
96
|
||||
97
|
||||
98
|
||||
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
|
||||
242
|
||||
243
|
||||
244
|
||||
245
|
||||
246
|
||||
247
|
||||
248
|
||||
249
|
||||
250</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/commands.pp', line 24</span>
|
||||
|
||||
class cd_nagios::nagios::objects::commands (
|
||||
|
||||
) inherits cd_nagios::params {
|
||||
|
||||
require cd_nagios::main::install
|
||||
|
||||
@@nagios_command { 'notify-host-by-email':
|
||||
ensure => present,
|
||||
command_name => 'notify-host-by-email',
|
||||
command_line => '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTADDRESS$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTADDRESS$ is $HOSTSTATE$ **" $CONTACTEMAIL$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'notify-service-by-email':
|
||||
ensure => present,
|
||||
command_name => 'notify-service-by-email',
|
||||
command_line => '/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check-host-alive':
|
||||
ensure => present,
|
||||
command_name => 'check-host-alive',
|
||||
command_line => '$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_disk':
|
||||
ensure => present,
|
||||
command_name => 'check_disk',
|
||||
command_line => '$USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_local_load':
|
||||
ensure => present,
|
||||
command_name => 'check_local_load',
|
||||
command_line => '$USER1$/check_load -w $ARG1$ -c $ARG2$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_local_procs':
|
||||
ensure => present,
|
||||
command_name => 'check_local_procs',
|
||||
command_line => '$USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_local_users':
|
||||
ensure => present,
|
||||
command_name => 'check_local_users',
|
||||
command_line => '$USER1$/check_users -w $ARG1$ -c $ARG2$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_local_swap':
|
||||
ensure => present,
|
||||
command_name => 'check_local_swap',
|
||||
command_line => '$USER1$/check_swap -w $ARG1$ -c $ARG2$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_ftp':
|
||||
ensure => present,
|
||||
command_name => 'check_ftp',
|
||||
command_line => '$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_snmp':
|
||||
ensure => present,
|
||||
command_name => 'check_snmp',
|
||||
command_line => '$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_http':
|
||||
ensure => present,
|
||||
command_name => 'check_http',
|
||||
command_line => '$USER1$/check_http -I $HOSTADDRESS$ $ARG1$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_ssh':
|
||||
ensure => present,
|
||||
command_name => 'check_ssh',
|
||||
command_line => '$USER1$/check_ssh $ARG1$ $HOSTADDRESS$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_ping':
|
||||
ensure => present,
|
||||
command_name => 'check_ping',
|
||||
command_line => '$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_tcp':
|
||||
ensure => present,
|
||||
command_name => 'check_tcp',
|
||||
command_line => '$USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_udp':
|
||||
ensure => present,
|
||||
command_name => 'check_udp',
|
||||
command_line => '$USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_nrpe':
|
||||
ensure => present,
|
||||
command_name => 'check_nrpe',
|
||||
command_line => '$USER1$/check_nrpe -t 30 -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_nagios':
|
||||
ensure => present,
|
||||
command_name => 'check_nagios',
|
||||
command_line => '$USER1$/check_nagios -F $ARG1$ -e $ARG2$ -C $ARG3$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_bandwidth':
|
||||
ensure => present,
|
||||
command_name => 'check_bandwidth',
|
||||
command_line => '$USER1$/check_bandwidth.sh -t 30 -H $HOSTADDRESS$ linux $ARG1$ $ARG2$ $ARG3$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_jenkins_api':
|
||||
ensure => present,
|
||||
command_name => 'check_jenkins_api',
|
||||
command_line => '$USER1$/check_http -H $HOSTADDRESS$ -u /api/xml?depth=0 -R quietingDown.false $ARG1$ $ARG2$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
|
||||
@@nagios_command { 'process-service-perfdata-file':
|
||||
ensure => present,
|
||||
command_name => 'process-service-perfdata-file',
|
||||
command_line => '/bin/mv /var/log/pnp4nagios/service-perfdata /var/spool/pnp4nagios/service-perfdata.$TIMET$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'process-host-perfdata-file':
|
||||
ensure => present,
|
||||
command_name => 'process-host-perfdata-file',
|
||||
command_line => '/bin/mv /var/log/pnp4nagios/host-perfdata /var/spool/pnp4nagios/host-perfdata.$TIMET$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
|
||||
@@nagios_command { 'check_ntp_time':
|
||||
ensure => present,
|
||||
command_name => 'check_ntp_time',
|
||||
command_line => '$USER1$/check_ntp_time -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$',
|
||||
owner => 'nagios',
|
||||
group => 'nagios',
|
||||
mode => '0640',
|
||||
target => $ng_target_command,
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Jul 26 13:30:50 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>
|
||||
@@ -0,0 +1,174 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: cd_nagios::nagios::objects::config
|
||||
|
||||
— 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::nagios::objects::config";
|
||||
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">cd_nagios::nagios::objects::config</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::nagios::objects::config</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="cd_nagios_3A_3Aparams.html" title="puppet_classes::cd_nagios::params (puppet_class)">cd_nagios::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/nagios/objects/config.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages the nagios objects definitions.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>cd_nagios::server::nagios::objects::config.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>/.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
|
||||
</div><div class="method_details_list">
|
||||
<table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
23
|
||||
24
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
34</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/config.pp', line 23</span>
|
||||
|
||||
class cd_nagios::nagios::objects::config (
|
||||
|
||||
) inherits cd_nagios::params {
|
||||
|
||||
if $::fqdn == $ng_nagios_server {
|
||||
|
||||
require cd_nagios::nagios::objects::commands
|
||||
require cd_nagios::nagios::objects::template_rules
|
||||
require cd_nagios::nagios::objects::add_contact_rules
|
||||
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Jul 26 13:30:50 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>
|
||||
@@ -0,0 +1,290 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: cd_nagios::nagios::objects::contacts
|
||||
|
||||
— 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::nagios::objects::contacts";
|
||||
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">cd_nagios::nagios::objects::contacts</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::nagios::objects::contacts</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="cd_nagios_3A_3Aparams.html" title="puppet_classes::cd_nagios::params (puppet_class)">cd_nagios::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/nagios/objects/contacts.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages basic contacts known to NAGIOS through Puppet exports,
|
||||
and populates /etc/nagios/conf.d/nagios_base_contacts.cfg.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>cd_nagios::nagios::objects::contacts.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>/.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
<div class="examples">
|
||||
<p class="tag_title">Examples:</p>
|
||||
|
||||
|
||||
<pre class="example code"><code>@@nagios_contact { 'admin':
|
||||
ensure => present,
|
||||
alias => 'Nagios Admin',
|
||||
contact_name => 'admin',
|
||||
contactgroups => 'admins',
|
||||
email => "admin@${::domain}",
|
||||
can_submit_commands => '1',
|
||||
register => '1',
|
||||
use => 'generic-contact',
|
||||
target => $ng_target_base_contact,
|
||||
owner => 'root',
|
||||
group => 'nagios',
|
||||
mode => '0664',
|
||||
}</code></pre>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div><div class="method_details_list">
|
||||
<table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45
|
||||
46
|
||||
47
|
||||
48
|
||||
49
|
||||
50
|
||||
51
|
||||
52
|
||||
53
|
||||
54
|
||||
55
|
||||
56
|
||||
57
|
||||
58
|
||||
59
|
||||
60
|
||||
61
|
||||
62
|
||||
63
|
||||
64
|
||||
65
|
||||
66
|
||||
67
|
||||
68
|
||||
69
|
||||
70
|
||||
71
|
||||
72
|
||||
73
|
||||
74
|
||||
75
|
||||
76
|
||||
77
|
||||
78
|
||||
79
|
||||
80
|
||||
81
|
||||
82
|
||||
83
|
||||
84
|
||||
85
|
||||
86
|
||||
87
|
||||
88
|
||||
89
|
||||
90
|
||||
91
|
||||
92
|
||||
93
|
||||
94
|
||||
95
|
||||
96
|
||||
97</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/contacts.pp', line 39</span>
|
||||
|
||||
class cd_nagios::nagios::objects::contacts (
|
||||
|
||||
|
||||
) inherits cd_nagios::params {
|
||||
|
||||
if $::fqdn == $ng_nagios_server {
|
||||
|
||||
# admin contact
|
||||
|
||||
@@nagios_contact { 'admin':
|
||||
ensure => present,
|
||||
alias => 'Nagios Admin',
|
||||
contact_name => 'admin',
|
||||
contactgroups => 'admins',
|
||||
email => "admin@${::domain}",
|
||||
can_submit_commands => '1',
|
||||
register => '1',
|
||||
use => 'generic-contact',
|
||||
target => $ng_target_base_contact,
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
}
|
||||
|
||||
# ops contact
|
||||
|
||||
@@nagios_contact { 'ops':
|
||||
ensure => present,
|
||||
alias => 'Operations',
|
||||
contact_name => 'ops',
|
||||
contactgroups => 'operations',
|
||||
email => "ops@${::domain}",
|
||||
can_submit_commands => '1',
|
||||
register => '1',
|
||||
use => 'generic-contact',
|
||||
target => $ng_target_base_contact,
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
}
|
||||
|
||||
# support contact
|
||||
|
||||
@@nagios_contact { 'support':
|
||||
ensure => present,
|
||||
alias => 'support',
|
||||
contact_name => 'support',
|
||||
contactgroups => 'support',
|
||||
email => "support@${::domain}",
|
||||
can_submit_commands => '1',
|
||||
register => '1',
|
||||
use => 'generic-contact',
|
||||
target => $ng_target_base_contact,
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
}
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Jul 26 13:30:51 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>
|
||||
@@ -0,0 +1,313 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Puppet Class: cd_nagios::nagios::objects::template_rules
|
||||
|
||||
— 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::nagios::objects::template_rules";
|
||||
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">cd_nagios::nagios::objects::template_rules</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::nagios::objects::template_rules</h1>
|
||||
<div class="box_info">
|
||||
|
||||
<dl>
|
||||
<dt>Inherits:</dt>
|
||||
<dd><span class='object_link'><a href="cd_nagios_3A_3Aparams.html" title="puppet_classes::cd_nagios::params (puppet_class)">cd_nagios::params</a></span></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/nagios/objects/template_rules.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Class manages /etc/nagios/conf.d/nagios_templates.cfg through
|
||||
concat.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>cd_nagios::nagios::objects::template_rules.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>/.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
|
||||
<div class="examples">
|
||||
<p class="tag_title">Examples:</p>
|
||||
|
||||
|
||||
<p class="example_title"><div class='inline'>
|
||||
<p>cd_nagios::nagios::objects::templates { 'generic contact':</p>
|
||||
</div></p>
|
||||
|
||||
<pre class="example code"><code>ng_template_object => 'contact',
|
||||
ng_template_object_name => 'generic-contact',
|
||||
}</code></pre>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div><div class="method_details_list">
|
||||
<table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
28
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
34
|
||||
35
|
||||
36
|
||||
37
|
||||
38
|
||||
39
|
||||
40
|
||||
41
|
||||
42
|
||||
43
|
||||
44
|
||||
45
|
||||
46
|
||||
47
|
||||
48
|
||||
49
|
||||
50
|
||||
51
|
||||
52
|
||||
53
|
||||
54
|
||||
55
|
||||
56
|
||||
57
|
||||
58
|
||||
59
|
||||
60
|
||||
61
|
||||
62
|
||||
63
|
||||
64
|
||||
65
|
||||
66
|
||||
67
|
||||
68
|
||||
69
|
||||
70
|
||||
71
|
||||
72
|
||||
73
|
||||
74
|
||||
75
|
||||
76
|
||||
77
|
||||
78
|
||||
79
|
||||
80
|
||||
81
|
||||
82
|
||||
83
|
||||
84
|
||||
85
|
||||
86
|
||||
87
|
||||
88
|
||||
89
|
||||
90
|
||||
91
|
||||
92
|
||||
93
|
||||
94
|
||||
95
|
||||
96
|
||||
97
|
||||
98
|
||||
99
|
||||
100
|
||||
101</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/template_rules.pp', line 28</span>
|
||||
|
||||
class cd_nagios::nagios::objects::template_rules (
|
||||
|
||||
) inherits cd_nagios::params {
|
||||
|
||||
if $::fqdn == $ng_nagios_server {
|
||||
|
||||
# create the templates.cfg file
|
||||
|
||||
concat { $ng_target_templates:
|
||||
ensure => present,
|
||||
path => $ng_target_templates,
|
||||
owner => $ng_user,
|
||||
group => $ng_user,
|
||||
mode => '0640',
|
||||
selrange => s0,
|
||||
selrole => object_r,
|
||||
seltype => nagios_etc_t,
|
||||
seluser => system_u,
|
||||
notify => Service[$ng_service],
|
||||
}
|
||||
|
||||
concat::fragment { 'template_header':
|
||||
target => $ng_target_templates,
|
||||
content => template($ng_templates_head_erb),
|
||||
order => '000',
|
||||
}
|
||||
|
||||
|
||||
# basic templates
|
||||
cd_nagios::nagios::objects::templates { 'generic contact':
|
||||
ng_template_object => 'contact',
|
||||
ng_template_object_name => 'generic-contact',
|
||||
}
|
||||
cd_nagios::nagios::objects::templates { 'generic-host':
|
||||
ng_template_object => 'host',
|
||||
ng_template_object_name => 'generic-host',
|
||||
}
|
||||
cd_nagios::nagios::objects::templates { 'linux-server':
|
||||
ng_template_object => 'host',
|
||||
ng_template_object_name => 'linux-server',
|
||||
ng_template_object_use => 'generic-host',
|
||||
ng_notification_options => 'd,u,r',
|
||||
}
|
||||
cd_nagios::nagios::objects::templates { 'windows-server':
|
||||
ng_template_object => 'host',
|
||||
ng_template_object_name => 'windows-server',
|
||||
ng_template_object_use => 'generic-host',
|
||||
ng_notification_options => 'd,u,r',
|
||||
}
|
||||
cd_nagios::nagios::objects::templates { 'generic-switch':
|
||||
ng_template_object => 'host',
|
||||
ng_template_object_name => 'generic-switch',
|
||||
ng_template_object_use => 'generic-host',
|
||||
ng_notification_options => 'd,u,r',
|
||||
}
|
||||
cd_nagios::nagios::objects::templates { 'generic-printer':
|
||||
ng_template_object => 'host',
|
||||
ng_template_object_name => 'generic-printer',
|
||||
ng_template_object_use => 'generic-host',
|
||||
ng_notification_options => 'd,u,r',
|
||||
}
|
||||
cd_nagios::nagios::objects::templates { 'generic-service':
|
||||
ng_template_object => 'service',
|
||||
ng_template_object_name => 'generic-service',
|
||||
ng_max_check_attempts => '3',
|
||||
ng_notification_options => 'w,u,c,r',
|
||||
}
|
||||
cd_nagios::nagios::objects::templates { 'local-service':
|
||||
ng_template_object => 'service',
|
||||
ng_template_object_name => 'generic-service',
|
||||
ng_max_check_attempts => '4',
|
||||
}
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Jul 26 13:30:51 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>
|
||||
@@ -89,6 +89,16 @@
|
||||
|
||||
<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/>
|
||||
|
||||
<span class='object_link'><a href="cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aconfig.html" title="puppet_classes::cd_nagios::nagios::objects::config (puppet_class)">cd_nagios::nagios::objects::config</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acommands.html" title="puppet_classes::cd_nagios::nagios::objects::commands (puppet_class)">cd_nagios::nagios::objects::commands</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Acontacts.html" title="puppet_classes::cd_nagios::nagios::objects::contacts (puppet_class)">cd_nagios::nagios::objects::contacts</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplate_rules.html" title="puppet_classes::cd_nagios::nagios::objects::template_rules (puppet_class)">cd_nagios::nagios::objects::template_rules</a></span><br/>
|
||||
|
||||
<span class='object_link'><a href="cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact_rules.html" title="puppet_classes::cd_nagios::nagios::objects::add_contact_rules (puppet_class)">cd_nagios::nagios::objects::add_contact_rules</a></span><br/>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -5202,7 +5212,11 @@ up</p>
|
||||
979
|
||||
980
|
||||
981
|
||||
982</pre>
|
||||
982
|
||||
983
|
||||
984
|
||||
985
|
||||
986</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 646</span>
|
||||
@@ -5523,8 +5537,9 @@ $ng_certbot_check = "${ng_certbot_archive}/${ng_webserver_name}/cer
|
||||
$ng_certbot_live = "${ng_certbot_main_dir}/live"
|
||||
|
||||
# nagios
|
||||
|
||||
$ng_target_templates = "${ng_conf_d_dir}/templates.cfg"
|
||||
$ng_target_templates = "${ng_conf_d_dir}/nagios_templates.cfg"
|
||||
$ng_templates_head_erb = 'cd_nagios/nagios/templates_cfg_head.erb'
|
||||
$ng_templates_rule_erb = 'cd_nagios/nagios/templates_cfg_rule.erb'
|
||||
$ng_target_timeperiods = "${ng_conf_d_dir}/timeperiods.cfg"
|
||||
$ng_target_localhost = "${ng_conf_d_dir}/nagios_localhost.cfg"
|
||||
$ng_target_host = "${ng_conf_d_dir}/nagios_host.cfg"
|
||||
@@ -5534,7 +5549,10 @@ $ng_target_hostesc = "${ng_conf_d_dir}/nagios_hostescalation.cfg&quo
|
||||
$ng_target_hostext = "${ng_conf_d_dir}/nagios_hostextinfo.cfg"
|
||||
$ng_target_service = "${ng_conf_d_dir}/nagios_service.cfg"
|
||||
$ng_target_servicegroup = "${ng_conf_d_dir}/nagios_servicegroup.cfg"
|
||||
$ng_target_contact = "${ng_conf_d_dir}/nagios_contact.cfg"
|
||||
$ng_target_base_contact = "${ng_conf_d_dir}/nagios_base_contact.cfg"
|
||||
$ng_target_add_contact = "${ng_conf_d_dir}/nagios_add_contact.cfg"
|
||||
$ng_contacts_head_erb = 'cd_nagios/nagios/contacts_cfg_head.erb'
|
||||
$ng_contact_rule_erb = 'cd_nagios/nagios/contact_cfg_rule.erb'
|
||||
$ng_target_contactgroup = "${ng_conf_d_dir}/nagios_contactgroup.cfg"
|
||||
$ng_target_command = "${ng_conf_d_dir}/nagios_command.cfg"
|
||||
|
||||
@@ -5551,7 +5569,7 @@ $ng_target_command = "${ng_conf_d_dir}/nagios_command.cfg"
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:26 2017 by
|
||||
Generated on Wed Jul 26 13:30:49 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>
|
||||
|
||||
@@ -249,7 +249,7 @@ class cd_nagios::selinux::config (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:27 2017 by
|
||||
Generated on Wed Jul 26 13:30:50 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>
|
||||
|
||||
@@ -195,7 +195,7 @@ class cd_nagios::server::access_rules (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:27 2017 by
|
||||
Generated on Wed Jul 26 13:30:50 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>
|
||||
|
||||
@@ -334,7 +334,7 @@ class cd_nagios::server::files (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:27 2017 by
|
||||
Generated on Wed Jul 26 13:30:50 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>
|
||||
|
||||
@@ -191,7 +191,8 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
|
||||
82
|
||||
83
|
||||
84
|
||||
85</pre>
|
||||
85
|
||||
86</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 23</span>
|
||||
@@ -204,6 +205,7 @@ class cd_nagios::server::service (
|
||||
|
||||
require cd_nagios::server::files
|
||||
require cd_nagios::server::access_rules
|
||||
require cd_nagios::nagios::objects::config
|
||||
|
||||
service { $ng_service:
|
||||
ensure => running,
|
||||
@@ -266,7 +268,7 @@ class cd_nagios::server::service (
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:27 2017 by
|
||||
Generated on Wed Jul 26 13:30:50 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>
|
||||
|
||||
@@ -40,6 +40,20 @@
|
||||
<ul id="full_list" class="puppet_defined_type">
|
||||
|
||||
|
||||
<li id="object_puppet_defined_types::cd_nagios::nagios::objects::add_contact" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Aadd_contact.html" title="puppet_defined_types::cd_nagios::nagios::objects::add_contact (puppet_defined_type)">cd_nagios::nagios::objects::add_contact</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_defined_types::cd_nagios::nagios::objects::templates" class="even">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_defined_types/cd_nagios_3A_3Anagios_3A_3Aobjects_3A_3Atemplates.html" title="puppet_defined_types::cd_nagios::nagios::objects::templates (puppet_defined_type)">cd_nagios::nagios::objects::templates</a></span>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li id="object_puppet_defined_types::cd_nagios::server::access" class="odd">
|
||||
<div class="item">
|
||||
<span class='object_link'><a href="puppet_defined_types/cd_nagios_3A_3Aserver_3A_3Aaccess.html" title="puppet_defined_types::cd_nagios::server::access (puppet_defined_type)">cd_nagios::server::access</a></span>
|
||||
|
||||
@@ -0,0 +1,235 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Defined Type: cd_nagios::nagios::objects::add_contact
|
||||
|
||||
— 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_defined_types::cd_nagios::nagios::objects::add_contact";
|
||||
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_defined_type_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'>Defined Types</span></span>
|
||||
»
|
||||
<span class="title">cd_nagios::nagios::objects::add_contact</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>Defined Type: cd_nagios::nagios::objects::add_contact</h1>
|
||||
<div class="box_info">
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/nagios/objects/add_contact.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Define manages additional contacts known to NAGIOS through external
|
||||
Puppet rules, and populates /etc/nagios/conf.d/nagios_add_contact.cfg.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>cd_nagios::nagios::objects::add_contact.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>/.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_contact_name</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Any</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>undef</tt>)</em>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_contact_use</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Any</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'generic-contact'</tt>)</em>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_contact_alias</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Any</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>undef</tt>)</em>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_contact_email</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Any</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>undef</tt>)</em>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_contact_groups</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Any</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>undef</tt>)</em>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div><div class="method_details_list">
|
||||
<table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
29
|
||||
30
|
||||
31
|
||||
32
|
||||
33
|
||||
34
|
||||
35</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/add_contact.pp', line 25</span>
|
||||
|
||||
define cd_nagios::nagios::objects::add_contact (
|
||||
|
||||
$ng_contact_name = undef,
|
||||
$ng_contact_use = 'generic-contact',
|
||||
$ng_contact_alias = undef,
|
||||
$ng_contact_email = undef,
|
||||
$ng_contact_groups = undef,
|
||||
|
||||
) {
|
||||
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Jul 26 13:30:51 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>
|
||||
@@ -0,0 +1,945 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
Defined Type: cd_nagios::nagios::objects::templates
|
||||
|
||||
— 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_defined_types::cd_nagios::nagios::objects::templates";
|
||||
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_defined_type_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'>Defined Types</span></span>
|
||||
»
|
||||
<span class="title">cd_nagios::nagios::objects::templates</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>Defined Type: cd_nagios::nagios::objects::templates</h1>
|
||||
<div class="box_info">
|
||||
<dl>
|
||||
<dt>Defined in:</dt>
|
||||
<dd>
|
||||
manifests/nagios/objects/templates.pp
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
|
||||
<h2>Summary</h2>
|
||||
Define manages populates /etc/nagios/conf.d/templates.cfg.
|
||||
|
||||
<h2>Overview</h2>
|
||||
<div class="docstring">
|
||||
<div class="discussion">
|
||||
|
||||
<p>cd_nagios::nagios::objects::templates.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>/.
|
||||
notifications.
|
||||
for the defined service or host.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="tags">
|
||||
<p class="tag_title">Parameters:</p>
|
||||
<ul class="param">
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_template_object</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>undef</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the object type for the templates.
|
||||
Valid options are <code>contact</code>,
|
||||
<code>host</code> and <code>service</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_template_object_name</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>undef</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>populates the name field,
|
||||
i.e. <code>generic-contact</code>,
|
||||
<code>generic-host</code>, <code>generic-service</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_svc_notification_period</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'24x7'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Period in which to send out
|
||||
notifications for service events, i.e.
|
||||
<code>24x7</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_host_notification_period</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'24x7'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Period in which to send out
|
||||
notifications for host events , i.e.
|
||||
<code>24x7</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_service_notification_options</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'w,u,c,r,f,s'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>What service events to send
|
||||
out notifications for:
|
||||
w = notify on WARNING
|
||||
service states,
|
||||
u = notify on UNKNOWN service states,
|
||||
c = notify on
|
||||
CRITICAL service states,
|
||||
r = notify on service recoveries (OK states),
|
||||
f =
|
||||
notify when the service starts and stops flapping.
|
||||
n = none (the contact
|
||||
will not receive any type of service notifications).</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_host_notification_options</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'d,u,r,f,s'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>What host events to send
|
||||
out notifications for:
|
||||
d = notify on DOWN host
|
||||
states,
|
||||
u = notify on UNREACHABLE host states,
|
||||
r = notify on host
|
||||
recoveries (UP states),
|
||||
f = notify when the host starts and stops
|
||||
flapping,
|
||||
s = notify when host or service scheduled downtime starts and
|
||||
ends.
|
||||
n = none (the contact will not receive any type of host
|
||||
notifications).</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_service_notification_commands</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'notify-service-by-email'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Command to use for
|
||||
service event notification. Command must be defined in
|
||||
commands.cfg</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_host_notification_commands</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'notify-host-by-email'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Command to use for
|
||||
host event notification. Command must be defined in
|
||||
commands.cfg.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_object_register</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'0'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to register the object to Nagios.
|
||||
Since this is a template
|
||||
definition, we do not want to register those.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_template_object_use</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>undef</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Which template to use for a given
|
||||
host or service definition, i.e.
|
||||
<code>generic-host</code>, <code>generic-service</code> etc.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_notifications_enabled</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether notifications are enabled.
|
||||
Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_event_handler_enabled</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether event handlers are enabled.
|
||||
Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_flap_detection_enabled</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether flap detection is enabled.
|
||||
Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_failure_prediction_enabled</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether failure prediction is
|
||||
enabled. Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_process_perf_data</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to process performance data.
|
||||
Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_retain_status_information</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to retain status
|
||||
information. Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_retain_nonstatus_information</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to retain non-status
|
||||
information. Valid options are <code>0</code>
|
||||
and <code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_notification_period</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'24x7'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Which period in to send out</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_notification_interval</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'30'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whoe often (in minutes) we should
|
||||
resend notifications for the current
|
||||
status.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_check_period</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'24x7'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Which period in to run checks for the defined
|
||||
object.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_check_interval</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'5'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>How often in minutes to check the defined
|
||||
object.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_retry_interval</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>at what interval in minutes to schedule
|
||||
retries for the defined object.</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>how often to check the defined object
|
||||
maximal.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_check_command</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>The command to use for host checks.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_notification_options</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>undef</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>see <code>ng_service_notification_options</code>
|
||||
and
|
||||
<code>ng_host_notification_options</code>.</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>contact groups for the defined oject.
|
||||
Specified contact group must exit in
|
||||
contact_groups</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_active_checks_enabled</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to enable active checks.
|
||||
Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_passive_checks_enabled</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to enable passive checks.
|
||||
Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_parallelize_check</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to parallelize checks
|
||||
Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_obsess_over_service</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to obsess over the service.
|
||||
Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_check_freshness</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'0'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether to check freshness.
|
||||
Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_is_volatile</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'0'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Whether the service is volatile.
|
||||
Valid options are <code>0</code> and
|
||||
<code>1</code>.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_normal_check_interval</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'10'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>How often to check the service
|
||||
under normal conditions.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_retry_check_interval</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>string</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'2'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>Re-check the service every x minutes
|
||||
until a hard state can be determined.</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ng_host_check_command</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>Any</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'check-host-alive'</tt>)</em>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
</div><div class="method_details_list">
|
||||
<table class="source_code">
|
||||
<tr>
|
||||
<td>
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
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</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/templates.pp', line 102</span>
|
||||
|
||||
define cd_nagios::nagios::objects::templates (
|
||||
$ng_template_object = undef,
|
||||
$ng_template_object_name = undef,
|
||||
$ng_svc_notification_period = '24x7',
|
||||
$ng_host_notification_period = '24x7',
|
||||
$ng_service_notification_options = 'w,u,c,r,f,s',
|
||||
$ng_host_notification_options = 'd,u,r,f,s',
|
||||
$ng_service_notification_commands = 'notify-service-by-email',
|
||||
$ng_host_notification_commands = 'notify-host-by-email',
|
||||
$ng_object_register = '0',
|
||||
$ng_template_object_use = undef,
|
||||
$ng_notifications_enabled = '1',
|
||||
$ng_event_handler_enabled = '1',
|
||||
$ng_flap_detection_enabled = '1',
|
||||
$ng_process_perf_data = '1',
|
||||
$ng_retain_status_information = '1',
|
||||
$ng_retain_nonstatus_information = '1',
|
||||
$ng_notification_period = '24x7',
|
||||
$ng_notification_interval = '30',
|
||||
$ng_check_period = '24x7',
|
||||
$ng_check_interval = '5',
|
||||
$ng_retry_interval = '1',
|
||||
$ng_max_check_attempts = '10',
|
||||
$ng_host_check_command = 'check-host-alive',
|
||||
$ng_notification_options = undef,
|
||||
$ng_contact_groups = 'admins',
|
||||
$ng_active_checks_enabled = '1',
|
||||
$ng_passive_checks_enabled = '1',
|
||||
$ng_parallelize_check = '1',
|
||||
$ng_obsess_over_service = '1',
|
||||
$ng_check_freshness = '0',
|
||||
$ng_is_volatile = '0',
|
||||
$ng_normal_check_interval = '10',
|
||||
$ng_retry_check_interval = '2',
|
||||
|
||||
|
||||
) {
|
||||
$ng_nagios_server = $::cd_nagios::params::ng_nagios_server
|
||||
$ng_target_templates = $::cd_nagios::params::ng_target_templates
|
||||
$ng_templates_rule_erb = $::cd_nagios::params::ng_templates_rule_erb
|
||||
|
||||
if $::fqdn == $ng_nagios_server {
|
||||
|
||||
concat::fragment { $name:
|
||||
target => $ng_target_templates,
|
||||
content => template($ng_templates_rule_erb),
|
||||
}
|
||||
}
|
||||
}</pre>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Wed Jul 26 13:30:51 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>
|
||||
@@ -220,7 +220,7 @@ $ng_service = $::cd_nagios::params::ng_service
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:27 2017 by
|
||||
Generated on Wed Jul 26 13:30:51 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>
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
Generated on Tue Jul 25 16:34:22 2017 by
|
||||
Generated on Wed Jul 26 13:30:46 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>
|
||||
|
||||
Reference in New Issue
Block a user