added parameter documentation
This commit is contained in:
@@ -27,6 +27,11 @@
|
|||||||
# ng_contact_groups => 'admins',
|
# ng_contact_groups => 'admins',
|
||||||
# ng_contact_email => 'example@example.net',
|
# ng_contact_email => 'example@example.net',
|
||||||
# }
|
# }
|
||||||
|
# @param [string] ng_contact_name Specify the contact short name.
|
||||||
|
# @param [string] ng_contact_use which contact template to use
|
||||||
|
# @param [string] ng_contact_alias Specify the contact alias (long name).
|
||||||
|
# @param [string] ng_contact_email Specify the contact email address.
|
||||||
|
# @param [string] ng_contact_groups Specidy the contact group for the contact.
|
||||||
################################################################################
|
################################################################################
|
||||||
define cd_nagios::nagios::objects::add_contact (
|
define cd_nagios::nagios::objects::add_contact (
|
||||||
|
|
||||||
|
|||||||
@@ -36,5 +36,6 @@ class cd_nagios::nagios::objects::config (
|
|||||||
require cd_nagios::nagios::objects::add_hostgroup_rules
|
require cd_nagios::nagios::objects::add_hostgroup_rules
|
||||||
require cd_nagios::nagios::objects::servicegroups
|
require cd_nagios::nagios::objects::servicegroups
|
||||||
require cd_nagios::nagios::objects::add_servicegroup_rules
|
require cd_nagios::nagios::objects::add_servicegroup_rules
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,8 +57,6 @@
|
|||||||
# Valid options are `0` and `1`.
|
# Valid options are `0` and `1`.
|
||||||
# @param [string] ng_flap_detection_enabled Whether flap detection is enabled.
|
# @param [string] ng_flap_detection_enabled Whether flap detection is enabled.
|
||||||
# Valid options are `0` and `1`.
|
# Valid options are `0` and `1`.
|
||||||
# @param [string] ng_failure_prediction_enabled Whether failure prediction is
|
|
||||||
# enabled. Valid options are `0` and `1`.
|
|
||||||
# @param [string] ng_process_perf_data Whether to process performance data.
|
# @param [string] ng_process_perf_data Whether to process performance data.
|
||||||
# Valid options are `0` and `1`.
|
# Valid options are `0` and `1`.
|
||||||
# @param [string] ng_retain_status_information Whether to retain status
|
# @param [string] ng_retain_status_information Whether to retain status
|
||||||
@@ -77,7 +75,6 @@
|
|||||||
# retries for the defined object.
|
# retries for the defined object.
|
||||||
# @param [string] ng_max_check_attempts how often to check the defined object
|
# @param [string] ng_max_check_attempts how often to check the defined object
|
||||||
# maximal.
|
# maximal.
|
||||||
# @param [string] ng_check_command The command to use for host checks.
|
|
||||||
# @param [string] ng_notification_options see `ng_service_notification_options`
|
# @param [string] ng_notification_options see `ng_service_notification_options`
|
||||||
# and `ng_host_notification_options`.
|
# and `ng_host_notification_options`.
|
||||||
# @param [string] ng_contact_groups contact groups for the defined oject.
|
# @param [string] ng_contact_groups contact groups for the defined oject.
|
||||||
@@ -98,6 +95,8 @@
|
|||||||
# under normal conditions.
|
# under normal conditions.
|
||||||
# @param [string] ng_retry_interval Re-check the service every x minutes
|
# @param [string] ng_retry_interval Re-check the service every x minutes
|
||||||
# until a hard state can be determined.
|
# until a hard state can be determined.
|
||||||
|
# @param [string] ng_host_check_command the check command for host checks
|
||||||
|
# @param [string]
|
||||||
################################################################################
|
################################################################################
|
||||||
define cd_nagios::nagios::objects::templates (
|
define cd_nagios::nagios::objects::templates (
|
||||||
$ng_template_object = undef,
|
$ng_template_object = undef,
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class cd_nagios::server::service (
|
|||||||
group => $ng_user,
|
group => $ng_user,
|
||||||
mode => '0640',
|
mode => '0640',
|
||||||
check_command => "check_ping!${ng_ping_warn}!${ng_ping_crit}",
|
check_command => "check_ping!${ng_ping_warn}!${ng_ping_crit}",
|
||||||
notify => Service ['nagios'],
|
notify => Service[$ng_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
@@nagios_service { 'check_nagios_localhost':
|
@@nagios_service { 'check_nagios_localhost':
|
||||||
|
|||||||
Reference in New Issue
Block a user