Compare commits
3 Commits
17c76e14ca
...
1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| dc86fb5ce8 | |||
| 6138fdfcaa | |||
| 3e9e52b144 |
@@ -8,7 +8,7 @@ class confdroid_ntp::monitoring::target (
|
||||
) inherits confdroid_ntp::params {
|
||||
if $cy_manage_nagios == true {
|
||||
@@nagios_service { "check_chronyd_${fqdn}":
|
||||
check_command => "check_nrpe!check_chronyd!${cy_procs_allowed}!chrony",
|
||||
check_command => "check_nrpe!check_chronyd!${cy_procs_allowed}!chronyd",
|
||||
use => 'generic-service',
|
||||
host_name => $fqdn,
|
||||
notification_period => '24x7',
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
# @param [String] cy_procs_allowed Number of allowed processes for the Nagios check.
|
||||
# @param [String] cy_target_service Path to the Nagios service configuration file.
|
||||
# @param [Array] cy_target_contacts List of Nagios contacts for notifications.
|
||||
# must exist in Nagios contacts configuration!
|
||||
###############################################################################
|
||||
class confdroid_ntp::params (
|
||||
|
||||
@@ -41,9 +42,9 @@ class confdroid_ntp::params (
|
||||
|
||||
# monitoring
|
||||
Boolean $cy_manage_nagios = false,
|
||||
String $cy_procs_allowed = '1',
|
||||
String $cy_procs_allowed = '1:',
|
||||
String $cy_target_service = '/etc/nagios/conf.d/chronyd_service.cfg',
|
||||
Array $cy_target_contacts = ['admin'],
|
||||
Array $cy_target_contacts = ['nagiosadmin'],
|
||||
|
||||
) {
|
||||
# facts
|
||||
|
||||
Reference in New Issue
Block a user