Compare commits
10 Commits
6c99964366
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1faa542a07 | ||
|
|
1bfa4b0e7d | ||
| 0132b8abf5 | |||
|
|
c2369b6e96 | ||
|
|
195cbac5fe | ||
| c44a23180d | |||
|
|
3afb3f2296 | ||
|
|
56f47c0ddc | ||
| 5bd90f37f5 | |||
|
|
d98ba4550e |
@@ -76,6 +76,8 @@ With the exported command, `check_puppet_server!1:!puppetserver` alerts when no
|
|||||||
running process has `puppetserver` in its full command line. It does not check
|
running process has `puppetserver` in its full command line. It does not check
|
||||||
whether the systemd service is enabled.
|
whether the systemd service is enabled.
|
||||||
|
|
||||||
|
Same goes for the puppetdb service where enabled.
|
||||||
|
|
||||||
The modules `confdroid_nagios` and `confdroid_nrpe` include the proper commands already.
|
The modules `confdroid_nagios` and `confdroid_nrpe` include the proper commands already.
|
||||||
|
|
||||||
### Optional
|
### Optional
|
||||||
|
|||||||
@@ -158,6 +158,8 @@
|
|||||||
|
|
||||||
<p>With the exported command, <code>check_puppet_server!1:!puppetserver</code> alerts when no running process has <code>puppetserver</code> in its full command line. It does not check whether the systemd service is enabled.</p>
|
<p>With the exported command, <code>check_puppet_server!1:!puppetserver</code> alerts when no running process has <code>puppetserver</code> in its full command line. It does not check whether the systemd service is enabled.</p>
|
||||||
|
|
||||||
|
<p>Same goes for the puppetdb service where enabled.</p>
|
||||||
|
|
||||||
<p>The modules <code>confdroid_nagios</code> and <code>confdroid_nrpe</code> include the proper commands already.</p>
|
<p>The modules <code>confdroid_nagios</code> and <code>confdroid_nrpe</code> include the proper commands already.</p>
|
||||||
|
|
||||||
<h3 id="label-Optional">Optional</h3>
|
<h3 id="label-Optional">Optional</h3>
|
||||||
|
|||||||
@@ -158,6 +158,8 @@
|
|||||||
|
|
||||||
<p>With the exported command, <code>check_puppet_server!1:!puppetserver</code> alerts when no running process has <code>puppetserver</code> in its full command line. It does not check whether the systemd service is enabled.</p>
|
<p>With the exported command, <code>check_puppet_server!1:!puppetserver</code> alerts when no running process has <code>puppetserver</code> in its full command line. It does not check whether the systemd service is enabled.</p>
|
||||||
|
|
||||||
|
<p>Same goes for the puppetdb service where enabled.</p>
|
||||||
|
|
||||||
<p>The modules <code>confdroid_nagios</code> and <code>confdroid_nrpe</code> include the proper commands already.</p>
|
<p>The modules <code>confdroid_nagios</code> and <code>confdroid_nrpe</code> include the proper commands already.</p>
|
||||||
|
|
||||||
<h3 id="label-Optional">Optional</h3>
|
<h3 id="label-Optional">Optional</h3>
|
||||||
|
|||||||
@@ -135,7 +135,24 @@
|
|||||||
37
|
37
|
||||||
38
|
38
|
||||||
39
|
39
|
||||||
40</pre>
|
40
|
||||||
|
41
|
||||||
|
42
|
||||||
|
43
|
||||||
|
44
|
||||||
|
45
|
||||||
|
46
|
||||||
|
47
|
||||||
|
48
|
||||||
|
49
|
||||||
|
50
|
||||||
|
51
|
||||||
|
52
|
||||||
|
53
|
||||||
|
54
|
||||||
|
55
|
||||||
|
56
|
||||||
|
57</pre>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<pre class="code"><span class="info file"># File 'manifests/monitoring/target.pp', line 6</span>
|
<pre class="code"><span class="info file"># File 'manifests/monitoring/target.pp', line 6</span>
|
||||||
@@ -161,7 +178,7 @@ class confdroid_puppet::monitoring::target (
|
|||||||
if $fqdn == $pt_pm_fqdn {
|
if $fqdn == $pt_pm_fqdn {
|
||||||
# puppet server service
|
# puppet server service
|
||||||
@@nagios_service { "check_puppet_server_${fqdn}":
|
@@nagios_service { "check_puppet_server_${fqdn}":
|
||||||
check_command => "check_nrpe!check_puppet_server!${pt_procs_allowed}!puppet",
|
check_command => "check_nrpe!check_puppet_server!${pt_procs_allowed}!puppetserver",
|
||||||
use => 'generic-service',
|
use => 'generic-service',
|
||||||
host_name => $fqdn,
|
host_name => $fqdn,
|
||||||
notification_period => '24x7',
|
notification_period => '24x7',
|
||||||
@@ -173,6 +190,23 @@ class confdroid_puppet::monitoring::target (
|
|||||||
contacts => $pt_target_contacts,
|
contacts => $pt_target_contacts,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $fqdn == $pt_puppetdb_fqdn and $pt_use_puppetdb == true {
|
||||||
|
# puppetdb service
|
||||||
|
@@nagios_service { "check_puppetdb_${fqdn}":
|
||||||
|
check_command => "check_nrpe!check_puppetdb!${pt_procs_allowed}!puppetdb",
|
||||||
|
use => 'generic-service',
|
||||||
|
host_name => $fqdn,
|
||||||
|
notification_period => '24x7',
|
||||||
|
service_description => "${fqdn}_check_puppetdb",
|
||||||
|
target => $pt_target_service,
|
||||||
|
owner => 'nagios',
|
||||||
|
group => 'nagios',
|
||||||
|
mode => '0640',
|
||||||
|
contacts => $pt_target_contacts,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class confdroid_puppet::monitoring::target (
|
|||||||
if $fqdn == $pt_pm_fqdn {
|
if $fqdn == $pt_pm_fqdn {
|
||||||
# puppet server service
|
# puppet server service
|
||||||
@@nagios_service { "check_puppet_server_${fqdn}":
|
@@nagios_service { "check_puppet_server_${fqdn}":
|
||||||
check_command => "check_nrpe!check_puppet_server!${pt_procs_allowed}!puppet",
|
check_command => "check_nrpe!check_puppet_server!${pt_procs_allowed}!puppetserver",
|
||||||
use => 'generic-service',
|
use => 'generic-service',
|
||||||
host_name => $fqdn,
|
host_name => $fqdn,
|
||||||
notification_period => '24x7',
|
notification_period => '24x7',
|
||||||
@@ -36,5 +36,22 @@ class confdroid_puppet::monitoring::target (
|
|||||||
contacts => $pt_target_contacts,
|
contacts => $pt_target_contacts,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $fqdn == $pt_puppetdb_fqdn and $pt_use_puppetdb == true {
|
||||||
|
# puppetdb service
|
||||||
|
@@nagios_service { "check_puppetdb_${fqdn}":
|
||||||
|
check_command => "check_nrpe!check_puppetdb!${pt_procs_allowed}!puppetdb",
|
||||||
|
use => 'generic-service',
|
||||||
|
host_name => $fqdn,
|
||||||
|
notification_period => '24x7',
|
||||||
|
service_description => "${fqdn}_check_puppetdb",
|
||||||
|
target => $pt_target_service,
|
||||||
|
owner => 'nagios',
|
||||||
|
group => 'nagios',
|
||||||
|
mode => '0640',
|
||||||
|
contacts => $pt_target_contacts,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user