Merge branch 'master' of gitlab.puppetsoft.com:12ww1160/cd_nagios into HEAD

This commit is contained in:
2017-09-27 14:39:40 +02:00
39 changed files with 728 additions and 447 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -123,6 +123,7 @@
| |-- checknagios.erb | |-- checknagios.erb
| |-- checknrpe.erb | |-- checknrpe.erb
| |-- statuscgi.erb | |-- statuscgi.erb
| |-- statusdat.erb
| `-- taccgi.erb | `-- taccgi.erb
|-- tests |-- tests
| `-- UTF_Files | `-- UTF_Files
@@ -134,4 +135,4 @@
|-- README.md |-- README.md
`-- REPOSTRUCTURE.md `-- REPOSTRUCTURE.md
20 directories, 114 files 20 directories, 115 files

View File

@@ -281,7 +281,7 @@
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:44 2017 by Generated on Wed Sep 27 14:29:35 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -61,7 +61,7 @@
<p>|Repo Name| version | Build <p>|Repo Name| version | Build
Status| Status|
|---|---|---|---| |---|---|---|---|
|<code>cd_nagios</code>| 0.0.1.6 | <a |<code>cd_nagios</code>| 0.0.1.9 | <a
href="https://jenkins.confdroid.com/buildStatus/icon?job=cd_nagios">{Build href="https://jenkins.confdroid.com/buildStatus/icon?job=cd_nagios">{Build
Status</a>/]|</p> Status</a>/]|</p>
@@ -343,7 +343,7 @@ far this module works through the usage of NRPE, which by default is
enabled. Class cd_nagios::client::nrpe configures nrpe.cfg and opens the enabled. Class cd_nagios::client::nrpe configures nrpe.cfg and opens the
required firewall port on clients (optional,default).</p> required firewall port on clients (optional,default).</p>
<h3 id="label-Manage+additional+resources">Manage additional resources</h3> <h3 id="label-Manage+Additional+Resources">Manage Additional Resources</h3>
<h3 id="label-Known+Problems">Known Problems</h3> <h3 id="label-Known+Problems">Known Problems</h3>
@@ -404,7 +404,7 @@ environments.</p>
</div></div> </div></div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:46 2017 by Generated on Wed Sep 27 14:29:38 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -61,7 +61,7 @@
<p>|Repo Name| version | Build <p>|Repo Name| version | Build
Status| Status|
|---|---|---|---| |---|---|---|---|
|<code>cd_nagios</code>| 0.0.1.6 | <a |<code>cd_nagios</code>| 0.0.1.9 | <a
href="https://jenkins.confdroid.com/buildStatus/icon?job=cd_nagios">{Build href="https://jenkins.confdroid.com/buildStatus/icon?job=cd_nagios">{Build
Status</a>/]|</p> Status</a>/]|</p>
@@ -343,7 +343,7 @@ far this module works through the usage of NRPE, which by default is
enabled. Class cd_nagios::client::nrpe configures nrpe.cfg and opens the enabled. Class cd_nagios::client::nrpe configures nrpe.cfg and opens the
required firewall port on clients (optional,default).</p> required firewall port on clients (optional,default).</p>
<h3 id="label-Manage+additional+resources">Manage additional resources</h3> <h3 id="label-Manage+Additional+Resources">Manage Additional Resources</h3>
<h3 id="label-Known+Problems">Known Problems</h3> <h3 id="label-Known+Problems">Known Problems</h3>
@@ -404,7 +404,7 @@ environments.</p>
</div></div> </div></div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:45 2017 by Generated on Wed Sep 27 14:29:36 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -139,7 +139,7 @@ class cd_nagios {
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:46 2017 by Generated on Wed Sep 27 14:29:38 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -230,7 +230,7 @@ class cd_nagios::certbot::certs (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:50 2017 by Generated on Wed Sep 27 14:29:42 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -384,7 +384,7 @@ class cd_nagios::client::target (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:50 2017 by Generated on Wed Sep 27 14:29:43 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -207,7 +207,7 @@ class cd_nagios::firewall::iptables (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:51 2017 by Generated on Wed Sep 27 14:29:43 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -195,7 +195,7 @@ class cd_nagios::main::config (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:50 2017 by Generated on Wed Sep 27 14:29:42 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -468,7 +468,7 @@ class cd_nagios::main::dirs (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:50 2017 by Generated on Wed Sep 27 14:29:42 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -213,7 +213,7 @@ class cd_nagios::main::install (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:50 2017 by Generated on Wed Sep 27 14:29:42 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -194,7 +194,7 @@ class cd_nagios::main::user (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:50 2017 by Generated on Wed Sep 27 14:29:42 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -217,7 +217,7 @@ class cd_nagios::nagios::objects::add_contact_rules (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:52 2017 by Generated on Wed Sep 27 14:29:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -215,7 +215,7 @@ class cd_nagios::nagios::objects::add_contactgroups_rules (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:52 2017 by Generated on Wed Sep 27 14:29:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -214,7 +214,7 @@ class cd_nagios::nagios::objects::add_hostgroup_rules (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:52 2017 by Generated on Wed Sep 27 14:29:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -171,12 +171,7 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
56 56
57 57
58 58
59 59</pre>
60
61
62
63
64</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/add_servicegroup_rules.pp', line 29</span> <pre class="code"><span class="info file"># File 'manifests/nagios/objects/add_servicegroup_rules.pp', line 29</span>
@@ -210,11 +205,6 @@ class cd_nagios::nagios::objects::add_servicegroup_rules (
content =&gt; template($ng_tgt_svcgrp_head_erb), content =&gt; template($ng_tgt_svcgrp_head_erb),
order =&gt; &#39;000&#39;, order =&gt; &#39;000&#39;,
} }
cd_nagios::nagios::objects::add_servicegroups { &#39;example_servicegroup&#39;:
ng_servicegroup_name =&gt; &#39;example_servicegroup&#39;,
ng_servicegroup_alias =&gt; &#39;Example Servicegroup&#39;,
}
} }
}</pre> }</pre>
</td> </td>
@@ -224,7 +214,7 @@ class cd_nagios::nagios::objects::add_servicegroup_rules (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:52 2017 by Generated on Wed Sep 27 14:29:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -222,7 +222,7 @@ class cd_nagios::nagios::objects::add_timeperiod_rules (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:52 2017 by Generated on Wed Sep 27 14:29:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -346,18 +346,7 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
237 237
238 238
239 239
240 240</pre>
241
242
243
244
245
246
247
248
249
250
251</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/nagios/objects/commands.pp', line 24</span> <pre class="code"><span class="info file"># File 'manifests/nagios/objects/commands.pp', line 24</span>
@@ -548,17 +537,6 @@ class cd_nagios::nagios::objects::commands (
target =&gt; $ng_target_command, target =&gt; $ng_target_command,
} }
@@nagios_command { &#39;check_jenkins_api&#39;:
ensure =&gt; present,
command_name =&gt; &#39;check_jenkins_api&#39;,
command_line =&gt; &#39;$USER1$/check_http -H $HOSTADDRESS$ -u /api/xml?depth=0 -R quietingDown.false $ARG1$ $ARG2$&#39;,
owner =&gt; &#39;nagios&#39;,
group =&gt; &#39;nagios&#39;,
mode =&gt; &#39;0640&#39;,
target =&gt; $ng_target_command,
}
@@nagios_command { &#39;process-service-perfdata-file&#39;: @@nagios_command { &#39;process-service-perfdata-file&#39;:
ensure =&gt; present, ensure =&gt; present,
command_name =&gt; &#39;process-service-perfdata-file&#39;, command_name =&gt; &#39;process-service-perfdata-file&#39;,
@@ -597,7 +575,7 @@ class cd_nagios::nagios::objects::commands (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:51 2017 by Generated on Wed Sep 27 14:29:43 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -182,7 +182,7 @@ class cd_nagios::nagios::objects::config (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:51 2017 by Generated on Wed Sep 27 14:29:43 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -237,7 +237,7 @@ class cd_nagios::nagios::objects::contactgroups (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:51 2017 by Generated on Wed Sep 27 14:29:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -280,7 +280,7 @@ class cd_nagios::nagios::objects::contacts (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:51 2017 by Generated on Wed Sep 27 14:29:43 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -551,7 +551,7 @@ class cd_nagios::nagios::objects::hostgroups (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:51 2017 by Generated on Wed Sep 27 14:29:43 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -235,7 +235,7 @@ class cd_nagios::nagios::objects::servicegroups (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:51 2017 by Generated on Wed Sep 27 14:29:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -305,7 +305,7 @@ class cd_nagios::nagios::objects::template_rules (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:51 2017 by Generated on Wed Sep 27 14:29:44 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -285,7 +285,7 @@ class cd_nagios::nagios::objects::timeperiods (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:51 2017 by Generated on Wed Sep 27 14:29:43 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -4908,7 +4908,7 @@ configuration file.</p>
&mdash; &mdash;
<div class='inline'> <div class='inline'>
<p>Whether to enable the declaration of <p>Whether to enable the declaration of
the swap check. Disabling thi smakes the swap check. Disabling this makes
sense when you use the <code>cd_swap</code> sense when you use the <code>cd_swap</code>
Puppet module and have enabled Puppet module and have enabled
the check declaration from there, so the the check declaration from there, so the
@@ -5294,7 +5294,8 @@ particular item.</p>
1008 1008
1009 1009
1010 1010
1011</pre> 1011
1012</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 653</span> <pre class="code"><span class="info file"># File 'manifests/params.pp', line 653</span>
@@ -5595,6 +5596,7 @@ $ng_htpasswd_head = &#39;cd_nagios/nagios/htpasswd_head.erb&#39;
$ng_htpasswd_rule = &#39;cd_nagios/nagios/htpasswd_rule.erb&#39; $ng_htpasswd_rule = &#39;cd_nagios/nagios/htpasswd_rule.erb&#39;
$ng_taccgi_erb = &#39;cd_nagios/selinux/taccgi.erb&#39; $ng_taccgi_erb = &#39;cd_nagios/selinux/taccgi.erb&#39;
$ng_statcgi_erb = &#39;cd_nagios/selinux/statuscgi.erb&#39; $ng_statcgi_erb = &#39;cd_nagios/selinux/statuscgi.erb&#39;
$ng_statdat_erb = &#39;cd_nagios/selinux/statusdat.erb&#39;
$ng_checknrpe_erb = &#39;cd_nagios/selinux/checknrpe.erb&#39; $ng_checknrpe_erb = &#39;cd_nagios/selinux/checknrpe.erb&#39;
$ng_checknagios_erb = &#39;cd_nagios/selinux/checknagios.erb&#39; $ng_checknagios_erb = &#39;cd_nagios/selinux/checknagios.erb&#39;
$ng_nagios_conf = &#39;/etc/httpd/conf.d/nagios.conf&#39; $ng_nagios_conf = &#39;/etc/httpd/conf.d/nagios.conf&#39;
@@ -5665,7 +5667,7 @@ $ng_nagios_service_cmd = &#39;check_nagios!/var/log/nagios/status.dat!5!/us
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:50 2017 by Generated on Wed Sep 27 14:29:42 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -220,7 +220,26 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
111 111
112 112
113 113
114</pre> 114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/selinux/config.pp', line 23</span> <pre class="code"><span class="info file"># File 'manifests/selinux/config.pp', line 23</span>
@@ -315,6 +334,25 @@ class cd_nagios::selinux::config (
refreshonly =&gt; true, refreshonly =&gt; true,
notify =&gt; Service[$ng_service], notify =&gt; Service[$ng_service],
} }
# sealert status.dat
exec { &#39;create_policy_statusdat&#39;:
command =&gt; template($ng_statdat_erb),
path =&gt; [&#39;/usr/bin&#39;,&#39;/usr/sbin&#39;],
cwd =&gt; $ng_user_home,
creates =&gt; &quot;${ng_user_home}/my-http.pp&quot;,
notify =&gt; Exec[&#39;semodule_statusdat&#39;],
}
exec { &#39;semodule_statusdat&#39;:
command =&gt; &#39;semodule -i my-http.pp&#39;,
path =&gt; [&#39;/usr/bin&#39;,&#39;/usr/sbin&#39;],
cwd =&gt; $ng_user_home,
require =&gt; Exec[&#39;create_policy_statusdat&#39;],
refreshonly =&gt; true,
notify =&gt; Service[$ng_service],
}
} }
}</pre> }</pre>
</td> </td>
@@ -324,7 +362,7 @@ class cd_nagios::selinux::config (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:50 2017 by Generated on Wed Sep 27 14:29:43 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -195,7 +195,7 @@ class cd_nagios::server::access_rules (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:51 2017 by Generated on Wed Sep 27 14:29:43 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -334,7 +334,7 @@ class cd_nagios::server::files (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:50 2017 by Generated on Wed Sep 27 14:29:42 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -213,7 +213,118 @@ href="http://www.gnu.org/licenses">www.gnu.org/licenses</a>/.</p>
104 104
105 105
106 106
107</pre> 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</pre>
</td> </td>
<td> <td>
<pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 23</span> <pre class="code"><span class="info file"># File 'manifests/server/service.pp', line 23</span>
@@ -238,7 +349,7 @@ class cd_nagios::server::service (
enable =&gt; true, enable =&gt; true,
} }
@@nagios_host { &#39;localhost&#39;: @@nagios_host { &#39;localhost&#39;:
ensure =&gt; $ng_ping_ensure, ensure =&gt; $ng_ping_ensure,
alias =&gt; &#39;localhost&#39;, alias =&gt; &#39;localhost&#39;,
address =&gt; &#39;127.0.0.1&#39;, address =&gt; &#39;127.0.0.1&#39;,
@@ -253,7 +364,7 @@ class cd_nagios::server::service (
mode =&gt; &#39;0640&#39;, mode =&gt; &#39;0640&#39;,
check_command =&gt; &quot;check_ping!${ng_ping_warn}!${ng_ping_crit}&quot;, check_command =&gt; &quot;check_ping!${ng_ping_warn}!${ng_ping_crit}&quot;,
notify =&gt; Service[$ng_service], notify =&gt; Service[$ng_service],
} }
@@nagios_service { &#39;check_nagios_localhost&#39;: @@nagios_service { &#39;check_nagios_localhost&#39;:
check_command =&gt; $ng_nagios_service_cmd, check_command =&gt; $ng_nagios_service_cmd,
@@ -268,6 +379,117 @@ class cd_nagios::server::service (
contacts =&gt; &#39;ops&#39;, contacts =&gt; &#39;ops&#39;,
} }
@@nagios_host { $::fqdn:
ensure =&gt; $ng_ping_ensure,
alias =&gt; $::hostname,
address =&gt; $::fqdn,
use =&gt; &#39;linux-server&#39;,
target =&gt; $ng_target_host,
hostgroups =&gt; &#39;linux-servers&#39;,
contacts =&gt; &#39;ops&#39;,
max_check_attempts =&gt; $ng_max_check_attempts,
notification_period =&gt; &#39;24x7&#39;,
owner =&gt; $ng_user,
group =&gt; $ng_user,
mode =&gt; &#39;0640&#39;,
check_command =&gt; &quot;check_ping!${ng_ping_warn}!${ng_ping_crit}&quot;,
notify =&gt; Service[$ng_user],
}
@@nagios_service { &quot;root_partition_${::hostname}&quot;:
ensure =&gt; $ng_disk_ensure,
check_command =&gt; &quot;check_nrpe!check_disk!${ng_disk_warn}!${ng_disk_crit}!/&quot;,
use =&gt; &#39;generic-service&#39;,
host_name =&gt; $::fqdn,
contacts =&gt; &#39;ops&#39;,
notification_period =&gt; &#39;24x7&#39;,
service_description =&gt; &quot;${::hostname}_root_partition&quot;,
servicegroups =&gt; &#39;linux-services&#39;,
target =&gt; $ng_target_service,
owner =&gt; $ng_user,
group =&gt; $ng_user,
mode =&gt; &#39;0640&#39;,
}
if $ng_enable_swap_check == true {
@@nagios_service { &quot;Swap_Usage_${::hostname}&quot;:
ensure =&gt; $ng_swap_ensure,
check_command =&gt; &quot;check_nrpe!check_swap!${ng_swap_warn}!${ng_swap_crit}&quot;,
use =&gt; &#39;generic-service&#39;,
host_name =&gt; $::fqdn,
contacts =&gt; &#39;ops&#39;,
notification_period =&gt; &#39;24x7&#39;,
service_description =&gt; &quot;${::hostname}_swap_usage&quot;,
servicegroups =&gt; &#39;linux-services&#39;,
target =&gt; $ng_target_service,
owner =&gt; $ng_user,
group =&gt; $ng_user,
mode =&gt; &#39;0640&#39;,
}
}
@@nagios_service { &quot;Local_Users_${::hostname}&quot;:
ensure =&gt; $ng_users_ensure,
check_command =&gt; &quot;check_nrpe!check_users!${ng_users_warn}!${ng_users_crit}&quot;,
use =&gt; &#39;generic-service&#39;,
host_name =&gt; $::fqdn,
contacts =&gt; &#39;ops&#39;,
notification_period =&gt; &#39;24x7&#39;,
service_description =&gt; &quot;${::hostname}_local_users&quot;,
servicegroups =&gt; &#39;linux-services&#39;,
target =&gt; $ng_target_service,
owner =&gt; $ng_user,
group =&gt; $ng_user,
mode =&gt; &#39;0640&#39;,
}
@@nagios_service { &quot;Total Processes_${::hostname}&quot;:
ensure =&gt; $ng_procs_tot_ens,
check_command =&gt; &quot;check_nrpe!check_procs!${ng_procs_tot_warn}!${ng_procs_tot_crit}!${ng_procs_tot_param}&quot;,
use =&gt; &#39;generic-service&#39;,
host_name =&gt; $::fqdn,
contacts =&gt; &#39;ops&#39;,
notification_period =&gt; &#39;24x7&#39;,
service_description =&gt; &quot;${::hostname}_total_processes&quot;,
servicegroups =&gt; &#39;linux-services&#39;,
target =&gt; $ng_target_service,
owner =&gt; $ng_user,
group =&gt; $ng_user,
mode =&gt; &#39;0640&#39;,
}
@@nagios_service { &quot;Zombie Processes_${::hostname}&quot;:
ensure =&gt; $ng_procs_z_ensure,
check_command =&gt; &quot;check_nrpe!check_procs!${ng_procs_z_warn}!${ng_procs_z_crit}!${ng_procs_z_param}&quot;,
use =&gt; &#39;generic-service&#39;,
host_name =&gt; $::fqdn,
contacts =&gt; &#39;ops&#39;,
notification_period =&gt; &#39;24x7&#39;,
service_description =&gt; &quot;${::hostname}_zombie_processes&quot;,
servicegroups =&gt; &#39;linux-services&#39;,
target =&gt; $ng_target_service,
owner =&gt; $ng_user,
group =&gt; $ng_user,
mode =&gt; &#39;0640&#39;,
}
@@nagios_service { &quot;Current_Load_${::hostname}&quot;:
ensure =&gt; $ng_load_ensure,
check_command =&gt; &quot;check_nrpe!check_load!${ng_load_warn}!${ng_load_crit}&quot;,
use =&gt; &#39;generic-service&#39;,
host_name =&gt; $::fqdn,
contacts =&gt; &#39;ops&#39;,
notification_period =&gt; &#39;24x7&#39;,
service_description =&gt; &quot;${::hostname}_current_load&quot;,
servicegroups =&gt; &#39;linux-services&#39;,
target =&gt; $ng_target_service,
owner =&gt; $ng_user,
group =&gt; $ng_user,
mode =&gt; &#39;0640&#39;,
}
resources { [ &#39;nagios_host&#39;, resources { [ &#39;nagios_host&#39;,
&#39;nagios_hostgroup&#39;, &#39;nagios_hostgroup&#39;,
&#39;nagios_hostdependency&#39;, &#39;nagios_hostdependency&#39;,
@@ -310,7 +532,7 @@ class cd_nagios::server::service (
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:50 2017 by Generated on Wed Sep 27 14:29:43 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -285,7 +285,7 @@ $ng_contacts_rule_erb = $::cd_nagios::params::ng_contacts_rule_erb
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:53 2017 by Generated on Wed Sep 27 14:29:45 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -237,7 +237,7 @@ $ng_cntctgrps_rule_erb = $::cd_nagios::params::ng_cntctgrps_rule_erb
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:53 2017 by Generated on Wed Sep 27 14:29:46 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -245,7 +245,7 @@ $ng_tgt_hostgrp_rule_erb = $::cd_nagios::params::ng_tgt_hostgrp_rule_erb
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:53 2017 by Generated on Wed Sep 27 14:29:46 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -245,7 +245,7 @@ $ng_tgt_svcgrp_rule_erb = $::cd_nagios::params::ng_tgt_svcgrp_rule_erb
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:53 2017 by Generated on Wed Sep 27 14:29:46 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -370,7 +370,7 @@ $ng_tgt_timep_rule_erb = $::cd_nagios::params::ng_tgt_timep_rule_erb
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:53 2017 by Generated on Wed Sep 27 14:29:46 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -906,7 +906,7 @@ $ng_templates_rule_erb = $::cd_nagios::params::ng_templates_rule_erb
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:53 2017 by Generated on Wed Sep 27 14:29:45 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -220,7 +220,7 @@ $ng_service = $::cd_nagios::params::ng_service
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:52 2017 by Generated on Wed Sep 27 14:29:45 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>

View File

@@ -90,7 +90,7 @@
</div> </div>
<div id="footer"> <div id="footer">
Generated on Mon Jul 31 18:26:46 2017 by Generated on Wed Sep 27 14:29:38 2017 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a> <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.9 (ruby-2.0.0). 0.9.9 (ruby-2.0.0).
</div> </div>