Updated Branches:
  refs/heads/trunk db277f731 -> 9e30642cb

AMBARI-3075. Add Nagios alerts for Journal Node component (Vitaly Brodetskyi 
via dlysnichenko)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/9e30642c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/9e30642c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/9e30642c

Branch: refs/heads/trunk
Commit: 9e30642cb2f40c3e5534744a51df954ff50da48b
Parents: db277f7
Author: Lisnichenko Dmitro <[email protected]>
Authored: Tue Sep 3 19:28:45 2013 +0300
Committer: Lisnichenko Dmitro <[email protected]>
Committed: Tue Sep 3 19:28:45 2013 +0300

----------------------------------------------------------------------
 .../hdp-nagios/templates/hadoop-services.cfg.erb     | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/9e30642c/ambari-agent/src/main/puppet/modules/hdp-nagios/templates/hadoop-services.cfg.erb
----------------------------------------------------------------------
diff --git 
a/ambari-agent/src/main/puppet/modules/hdp-nagios/templates/hadoop-services.cfg.erb
 
b/ambari-agent/src/main/puppet/modules/hdp-nagios/templates/hadoop-services.cfg.erb
index 32d64e4..2ed5b85 100644
--- 
a/ambari-agent/src/main/puppet/modules/hdp-nagios/templates/hadoop-services.cfg.erb
+++ 
b/ambari-agent/src/main/puppet/modules/hdp-nagios/templates/hadoop-services.cfg.erb
@@ -535,6 +535,21 @@ define service {
 
 <% end %>
 
+# Journalnode checks
+<%scope.function_hdp_template_var("::hdp::journalnode_hosts").each do 
|hostname|-%>
+define service {
+        hostgroup_name          slaves
+        use                     hadoop-service
+        service_description     JOURNALNODE::JournalNode process on 
<%=hostname%>
+        servicegroups           HDFS
+        check_command           
check_tcp_on_host!<%=hostname%>!<%=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 %>
+
 <%if scope.function_hdp_nagios_members_exist('slaves')-%>
 # HDFS::DATANODE Checks
 define service {

Reply via email to