Compare commits
2 Commits
91b27aeabc
...
1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| dc86fb5ce8 | |||
| 6138fdfcaa |
@@ -8,7 +8,7 @@ class confdroid_ntp::monitoring::target (
|
|||||||
) inherits confdroid_ntp::params {
|
) inherits confdroid_ntp::params {
|
||||||
if $cy_manage_nagios == true {
|
if $cy_manage_nagios == true {
|
||||||
@@nagios_service { "check_chronyd_${fqdn}":
|
@@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',
|
use => 'generic-service',
|
||||||
host_name => $fqdn,
|
host_name => $fqdn,
|
||||||
notification_period => '24x7',
|
notification_period => '24x7',
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
# @param [Boolean] cy_manage_nagios Whether to manage Nagios monitoring for the module.
|
# @param [Boolean] cy_manage_nagios Whether to manage Nagios monitoring for the module.
|
||||||
# @param [String] cy_procs_allowed Number of allowed processes for the Nagios check.
|
# @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 [String] cy_target_service Path to the Nagios service configuration file.
|
||||||
# @param [Array] cy_target_contacts List of Nagios contacts for notifications.
|
# @param [Array] cy_target_contacts List of Nagios contacts for notifications.
|
||||||
|
# must exist in Nagios contacts configuration!
|
||||||
###############################################################################
|
###############################################################################
|
||||||
class confdroid_ntp::params (
|
class confdroid_ntp::params (
|
||||||
|
|
||||||
@@ -41,7 +42,7 @@ class confdroid_ntp::params (
|
|||||||
|
|
||||||
# monitoring
|
# monitoring
|
||||||
Boolean $cy_manage_nagios = false,
|
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',
|
String $cy_target_service = '/etc/nagios/conf.d/chronyd_service.cfg',
|
||||||
Array $cy_target_contacts = ['nagiosadmin'],
|
Array $cy_target_contacts = ['nagiosadmin'],
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user