Compare commits
1 Commits
aa4b806c1b
...
582d20696a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
582d20696a |
@@ -135,24 +135,7 @@
|
|||||||
37
|
37
|
||||||
38
|
38
|
||||||
39
|
39
|
||||||
40
|
40</pre>
|
||||||
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>
|
||||||
@@ -190,23 +173,6 @@ 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>
|
||||||
|
|||||||
@@ -36,22 +36,5 @@ 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