OP#436 add full service details
This commit is contained in:
@@ -6,9 +6,10 @@
|
||||
class confdroid_nagios::client::target (
|
||||
|
||||
) inherits confdroid_nagios::params {
|
||||
if $ng_nagios_server == $fqdn {
|
||||
if ($ng_nagios_server == $fqdn) and ($ng_enable_target == true) {
|
||||
if $ng_include_nrpe == true {
|
||||
require confdroid_nrpe
|
||||
}
|
||||
|
||||
@@nagios_host { $fqdn:
|
||||
ensure => $ng_ping_ensure,
|
||||
@@ -119,5 +120,4 @@ class confdroid_nagios::client::target (
|
||||
mode => '0640',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,6 +99,8 @@
|
||||
# to be submitted to Nagios. Default is '1'.
|
||||
# @param [String] ng_user The user to run the Nagios service as.
|
||||
# Default is 'nagios'.
|
||||
# @param [Boolean] ng_enable_target Whether to enable the generation of host and
|
||||
# service configuration files for the Nagios server. Default is true.
|
||||
###############################################################################
|
||||
class confdroid_nagios::params (
|
||||
|
||||
@@ -114,6 +116,7 @@ class confdroid_nagios::params (
|
||||
String $ng_status_upd_interval = '10',
|
||||
String $ng_check_ext_commands = '1',
|
||||
String $ng_user = 'nagios',
|
||||
Boolean $ng_enable_target = true,
|
||||
|
||||
# contact groups
|
||||
String $ng_contactgroup_name = 'admins',
|
||||
|
||||
Reference in New Issue
Block a user