OP#436 add nagios contacts
This commit is contained in:
@@ -26,7 +26,7 @@ class confdroid_nagios::nagios::objects::add_contact_rules (
|
|||||||
selrole => object_r,
|
selrole => object_r,
|
||||||
seltype => nagios_etc_t,
|
seltype => nagios_etc_t,
|
||||||
seluser => system_u,
|
seluser => system_u,
|
||||||
notify => Service[$ng_service],
|
notify => Service[$ng_nagios_service],
|
||||||
}
|
}
|
||||||
|
|
||||||
# manage file header
|
# manage file header
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ define confdroid_nagios::server::access (
|
|||||||
$ng_nagios_server = $confdroid_nagios::params::ng_nagios_server
|
$ng_nagios_server = $confdroid_nagios::params::ng_nagios_server
|
||||||
$ng_htpasswd_file = $confdroid_nagios::params::ng_htpasswd_file
|
$ng_htpasswd_file = $confdroid_nagios::params::ng_htpasswd_file
|
||||||
$ng_htpasswd_rule = $confdroid_nagios::params::ng_htpasswd_rule
|
$ng_htpasswd_rule = $confdroid_nagios::params::ng_htpasswd_rule
|
||||||
$ng_service = $confdroid_nagios::params::ng_nagios_service
|
$ng_nagios_service = $confdroid_nagios::params::ng_nagios_service
|
||||||
|
|
||||||
if $fqdn == $ng_nagios_server {
|
if $fqdn == $ng_nagios_server {
|
||||||
# create password rules
|
# create password rules
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ default_user_name=<%= @ng_def_user_name %>
|
|||||||
authorized_for_system_information=<%= @ng_nagios_admin %>,<%= @ng_sysinfo_auth %>
|
authorized_for_system_information=<%= @ng_nagios_admin %>,<%= @ng_sysinfo_auth %>
|
||||||
authorized_for_configuration_information=<%= @ng_nagios_admin %>,<%= @ng_confinfo_auth %>
|
authorized_for_configuration_information=<%= @ng_nagios_admin %>,<%= @ng_confinfo_auth %>
|
||||||
authorized_for_system_commands=<%= @ng_nagios_admin %>,<%= @ng_command_auth %>
|
authorized_for_system_commands=<%= @ng_nagios_admin %>,<%= @ng_command_auth %>
|
||||||
authorized_for_all_services=<%= @ng_nagios_admin %>,<%= @ng_serviceview_auth %>
|
authorized_for_all_services=<%= @ng_nagios_admin %>,<%= @ng_nagios_serviceview_auth %>
|
||||||
authorized_for_all_hosts=<%= @ng_nagios_admin %>,<%= @ng_hostview_auth %>
|
authorized_for_all_hosts=<%= @ng_nagios_admin %>,<%= @ng_hostview_auth %>
|
||||||
authorized_for_all_service_commands=<%= @ng_nagios_admin %>,<%= @ng_svc_cmd_auth %>
|
authorized_for_all_service_commands=<%= @ng_nagios_admin %>,<%= @ng_svc_cmd_auth %>
|
||||||
authorized_for_all_host_commands=<%= @ng_nagios_admin %>,<%= @ng_host_cmd_auth %>
|
authorized_for_all_host_commands=<%= @ng_nagios_admin %>,<%= @ng_host_cmd_auth %>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
define servicegroup {
|
define servicegroup {
|
||||||
servicegroup_name <%= @ng_servicegroup_name %>
|
servicegroup_name <%= @ng_nagios_servicegroup_name %>
|
||||||
alias <%= @ng_servicegroup_alias %>
|
alias <%= @ng_nagios_servicegroup_alias %>
|
||||||
register <%= @ng_servicegroup_register %>
|
register <%= @ng_nagios_servicegroup_register %>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ define <%= @ng_template_object %>{
|
|||||||
name <%= @ng_template_object_name %>
|
name <%= @ng_template_object_name %>
|
||||||
service_notification_period <%= @ng_svc_notification_period %>
|
service_notification_period <%= @ng_svc_notification_period %>
|
||||||
host_notification_period <%= @ng_host_notification_period %>
|
host_notification_period <%= @ng_host_notification_period %>
|
||||||
service_notification_options <%= @ng_service_notification_options %>
|
service_notification_options <%= @ng_nagios_service_notification_options %>
|
||||||
host_notification_options <%= @ng_host_notification_options %>
|
host_notification_options <%= @ng_host_notification_options %>
|
||||||
service_notification_commands <%= @ng_service_notification_commands %>
|
service_notification_commands <%= @ng_nagios_service_notification_commands %>
|
||||||
host_notification_commands <%= @ng_host_notification_commands %>
|
host_notification_commands <%= @ng_host_notification_commands %>
|
||||||
register <%= @ng_object_register %>
|
register <%= @ng_object_register %>
|
||||||
}
|
}
|
||||||
@@ -114,7 +114,7 @@ define <%= @ng_template_object %>{
|
|||||||
check_interval <%= @ng_check_interval %>
|
check_interval <%= @ng_check_interval %>
|
||||||
retry_interval <%= @ng_retry_interval %>
|
retry_interval <%= @ng_retry_interval %>
|
||||||
contact_groups <%= @ng_contact_groups %>
|
contact_groups <%= @ng_contact_groups %>
|
||||||
notification_options <%= @ng_service_notification_options %>
|
notification_options <%= @ng_nagios_service_notification_options %>
|
||||||
notification_interval <%= @ng_notification_interval %>
|
notification_interval <%= @ng_notification_interval %>
|
||||||
notification_period <%= @ng_notification_period %>
|
notification_period <%= @ng_notification_period %>
|
||||||
register <%= @ng_object_register %>
|
register <%= @ng_object_register %>
|
||||||
|
|||||||
Reference in New Issue
Block a user