|
@@ -79,24 +79,13 @@ define service {
|
|
|
<%end-%>
|
|
|
|
|
|
# AMBARI AGENT Checks
|
|
|
-define service {
|
|
|
- hostgroup_name agent-servers
|
|
|
- use hadoop-service
|
|
|
- service_description AMBARI::Ambari Agent process
|
|
|
- servicegroups AMBARI
|
|
|
- check_command check_ambari_agent_status
|
|
|
- normal_check_interval 5
|
|
|
- retry_check_interval 0.5
|
|
|
- max_check_attempts 2
|
|
|
-}
|
|
|
-
|
|
|
<%scope.function_hdp_template_var("all_hosts").each_with_index do |hostname, index|-%>
|
|
|
define service {
|
|
|
- hostgroup_name agent-servers
|
|
|
+ host_name <%=hostname%>
|
|
|
use hadoop-service
|
|
|
- service_description AMBARI::Ambari Agent process on <%=hostname%>
|
|
|
+ service_description AMBARI::Ambari Agent process
|
|
|
servicegroups AMBARI
|
|
|
- check_command check_tcp_on_host!<%=hostname%>!<%=scope.function_hdp_template_var("all_ping_ports")[index]%>!-w 1 -c 1
|
|
|
+ check_command check_tcp!<%=scope.function_hdp_template_var("all_ping_ports")[index]%>!-w 1 -c 1
|
|
|
normal_check_interval 1
|
|
|
retry_check_interval 0.25
|
|
|
max_check_attempts 4
|
|
@@ -562,20 +551,20 @@ define service {
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
+<%if scope.function_hdp_nagios_members_exist('journalnodes')-%>
|
|
|
# Journalnode checks
|
|
|
-<%scope.function_hdp_template_var("::hdp::journalnode_hosts").each do |hostname|-%>
|
|
|
define service {
|
|
|
- hostgroup_name slaves
|
|
|
+ hostgroup_name journalnodes
|
|
|
use hadoop-service
|
|
|
- service_description JOURNALNODE::JournalNode process on <%=hostname%>
|
|
|
+ service_description JOURNALNODE::JournalNode process
|
|
|
servicegroups HDFS
|
|
|
- check_command check_tcp_on_host!<%=hostname%>!<%=scope.function_hdp_template_var("::hdp::journalnode_port")%>!-w 1 -c 1
|
|
|
+ check_command check_tcp!<%=scope.function_hdp_template_var("::hdp::journalnode_port")%>!-w 1 -c 1
|
|
|
normal_check_interval 1
|
|
|
retry_check_interval 0.5
|
|
|
max_check_attempts 3
|
|
|
}
|
|
|
|
|
|
-<% end %>
|
|
|
+<%end-%>
|
|
|
|
|
|
<%if scope.function_hdp_nagios_members_exist('slaves')-%>
|
|
|
# HDFS::DATANODE Checks
|