Compare commits
1 Commits
master
...
e8351b7dd3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8351b7dd3 |
@@ -44,7 +44,6 @@ CONFIGURATION
|
||||
- manages the main alloy pipeline for loki and prometheus
|
||||
- manages log rotation for rsyslog to allow adm membership
|
||||
- manage service
|
||||
- optional: include nagios target for the alloy service (set `ay_manage_nagios`to `true`)
|
||||
|
||||
## Repo Documentation
|
||||
|
||||
@@ -54,8 +53,6 @@ See the full Puppet documentation including parameters in `docs/index.html`
|
||||
|
||||
All dependencies must be included in the catalogue.
|
||||
|
||||
- [confdroid_nagios](https://sourcecode.confdroid.com/confdroid/confdroid_nagios) if nagios monitoring is desired
|
||||
|
||||
## Deployment
|
||||
|
||||
- native Puppet deployment
|
||||
|
||||
@@ -119,8 +119,6 @@
|
||||
<p>manages log rotation for rsyslog to allow adm membership</p>
|
||||
</li><li>
|
||||
<p>manage service</p>
|
||||
</li><li>
|
||||
<p>optional: include nagios target for the alloy service (set <code>ay_manage_nagios</code>to <code>true</code>)</p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||
@@ -130,9 +128,6 @@
|
||||
<h2 id="label-Dependencies">Dependencies</h2>
|
||||
|
||||
<p>All dependencies must be included in the catalogue.</p>
|
||||
<ul><li>
|
||||
<p><a href="https://sourcecode.confdroid.com/confdroid/confdroid_nagios">confdroid_nagios</a> if nagios monitoring is desired</p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Deployment">Deployment</h2>
|
||||
<ul><li>
|
||||
|
||||
@@ -119,8 +119,6 @@
|
||||
<p>manages log rotation for rsyslog to allow adm membership</p>
|
||||
</li><li>
|
||||
<p>manage service</p>
|
||||
</li><li>
|
||||
<p>optional: include nagios target for the alloy service (set <code>ay_manage_nagios</code>to <code>true</code>)</p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Repo+Documentation">Repo Documentation</h2>
|
||||
@@ -130,9 +128,6 @@
|
||||
<h2 id="label-Dependencies">Dependencies</h2>
|
||||
|
||||
<p>All dependencies must be included in the catalogue.</p>
|
||||
<ul><li>
|
||||
<p><a href="https://sourcecode.confdroid.com/confdroid/confdroid_nagios">confdroid_nagios</a> if nagios monitoring is desired</p>
|
||||
</li></ul>
|
||||
|
||||
<h2 id="label-Deployment">Deployment</h2>
|
||||
<ul><li>
|
||||
|
||||
@@ -128,7 +128,7 @@ class confdroid_alloy::monitoring::target (
|
||||
) inherits confdroid_alloy::params {
|
||||
if $ay_manage_nagios == true {
|
||||
@@nagios_service { "check_alloy_${fqdn}":
|
||||
check_command => "check_nrpe!check_alloy!${ay_procs_allowed}!alloy",
|
||||
check_command => "check_nrpe!check_alloy!${fn_procs_allowed}!alloy-server",
|
||||
use => 'generic-service',
|
||||
host_name => $fqdn,
|
||||
notification_period => '24x7',
|
||||
|
||||
@@ -412,24 +412,6 @@
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the contacts for nagios service exports</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
||||
<span class='name'>ay_procs_allowed</span>
|
||||
|
||||
|
||||
<span class='type'>(<tt>String</tt>)</span>
|
||||
|
||||
|
||||
<em class="default">(defaults to: <tt>'1:'</tt>)</em>
|
||||
|
||||
|
||||
—
|
||||
<div class='inline'>
|
||||
<p>the allowed number of processes for nagios service exports</p>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
@@ -445,6 +427,7 @@
|
||||
<pre class="lines">
|
||||
|
||||
|
||||
25
|
||||
26
|
||||
27
|
||||
28
|
||||
@@ -485,12 +468,10 @@
|
||||
63
|
||||
64
|
||||
65
|
||||
66
|
||||
67
|
||||
68</pre>
|
||||
66</pre>
|
||||
</td>
|
||||
<td>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 26</span>
|
||||
<pre class="code"><span class="info file"># File 'manifests/params.pp', line 25</span>
|
||||
|
||||
class confdroid_alloy::params (
|
||||
|
||||
@@ -517,7 +498,6 @@ class confdroid_alloy::params (
|
||||
Boolean $ay_manage_nagios = false,
|
||||
String $ay_target_service = '/etc/nagios/conf.d/alloy_service.cfg',
|
||||
Array $ay_target_contacts = ['nagiosadmin'],
|
||||
String $ay_procs_allowed = '1:'
|
||||
|
||||
) {
|
||||
# defaults
|
||||
|
||||
@@ -8,7 +8,7 @@ class confdroid_alloy::monitoring::target (
|
||||
) inherits confdroid_alloy::params {
|
||||
if $ay_manage_nagios == true {
|
||||
@@nagios_service { "check_alloy_${fqdn}":
|
||||
check_command => "check_nrpe!check_alloy!${ay_procs_allowed}!alloy",
|
||||
check_command => "check_nrpe!check_alloy!${fn_procs_allowed}!alloy-server",
|
||||
use => 'generic-service',
|
||||
host_name => $fqdn,
|
||||
notification_period => '24x7',
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
# @param [Boolean] ay_manage_nagios whether to manage nagios service exports
|
||||
# @param [String] ay_target_service the target file for nagios service exports
|
||||
# @param [Array] ay_target_contacts the contacts for nagios service exports
|
||||
# @param [String] ay_procs_allowed the allowed number of processes for nagios service exports
|
||||
# @summary Class contains all parameters for the confdroid_alloy module.
|
||||
##############################################################################
|
||||
class confdroid_alloy::params (
|
||||
@@ -48,7 +47,6 @@ class confdroid_alloy::params (
|
||||
Boolean $ay_manage_nagios = false,
|
||||
String $ay_target_service = '/etc/nagios/conf.d/alloy_service.cfg',
|
||||
Array $ay_target_contacts = ['nagiosadmin'],
|
||||
String $ay_procs_allowed = '1:'
|
||||
|
||||
) {
|
||||
# defaults
|
||||
|
||||
Reference in New Issue
Block a user