incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject git commit: AMBARI-2686. Empty YARN, HUE, Flume groups should not be in Nagios service groups. (Dmitry Sen via smohanty)
Date Thu, 18 Jul 2013 20:40:37 GMT
Updated Branches:
  refs/heads/trunk c17a99285 -> fd17b1b5c


AMBARI-2686. Empty YARN, HUE, Flume groups should not be in Nagios service groups. (Dmitry
Sen via smohanty)


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

Branch: refs/heads/trunk
Commit: fd17b1b5c1f6fb63b76615fb0bd883b0e469cd64
Parents: c17a992
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Thu Jul 18 13:40:08 2013 -0700
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Thu Jul 18 13:40:08 2013 -0700

----------------------------------------------------------------------
 .../templates/hadoop-servicegroups.cfg.erb      | 30 ++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/fd17b1b5/ambari-agent/src/main/puppet/modules/hdp-nagios/templates/hadoop-servicegroups.cfg.erb
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp-nagios/templates/hadoop-servicegroups.cfg.erb
b/ambari-agent/src/main/puppet/modules/hdp-nagios/templates/hadoop-servicegroups.cfg.erb
index fb5fbe6..6629e3f 100644
--- a/ambari-agent/src/main/puppet/modules/hdp-nagios/templates/hadoop-servicegroups.cfg.erb
+++ b/ambari-agent/src/main/puppet/modules/hdp-nagios/templates/hadoop-servicegroups.cfg.erb
@@ -1,54 +1,80 @@
+<%if scope.function_hdp_nagios_members_exist('namenode') ||
+  scope.function_hdp_nagios_members_exist('snamenode')  ||
+  scope.function_hdp_nagios_members_exist('slaves')-%>
 define servicegroup {
   servicegroup_name  HDFS
   alias  HDFS Checks
 }
+<% end -%>
+<%if scope.function_hdp_nagios_members_exist('jobtracker') ||
+  scope.function_hdp_nagios_members_exist('historyserver2')-%>
 define servicegroup {
   servicegroup_name  MAPREDUCE
   alias  MAPREDUCE Checks
 }
+<% end -%>
+<%if scope.function_hdp_nagios_members_exist('resorcemanager') ||
+  scope.function_hdp_nagios_members_exist('nodemanagers') -%>
 define servicegroup {
   servicegroup_name  YARN
   alias  YARN Checks
 }
-
+<% end -%>
+<%if scope.function_hdp_nagios_members_exist('flume-servers')-%>
 define servicegroup {
   servicegroup_name  FLUME
   alias  FLUME Checks
 }
-
+<% end -%>
+<%if scope.function_hdp_nagios_members_exist('hbasemasters')-%>
 define servicegroup {
   servicegroup_name  HBASE
   alias  HBASE Checks
 }
+<% end -%>
+<%if scope.function_hdp_nagios_members_exist('oozie-server')-%>
 define servicegroup {
   servicegroup_name  OOZIE
   alias  OOZIE Checks
 }
+<% end -%>
+<%if scope.function_hdp_nagios_members_exist('webhcat-server')-%>
 define servicegroup {
   servicegroup_name  WEBHCAT
   alias  WEBHCAT Checks
 }
+<% end -%>
+<%if scope.function_hdp_nagios_members_exist('nagios-server')-%>
 define servicegroup {
   servicegroup_name  NAGIOS
   alias  NAGIOS Checks
 }
+<% end -%>
+<%if scope.function_hdp_nagios_members_exist('ganglia-server')-%>
 define servicegroup {
   servicegroup_name  GANGLIA
   alias  GANGLIA Checks
 }
+<% end -%>
+<%if scope.function_hdp_nagios_members_exist('hiveserver')-%>
 define servicegroup {
   servicegroup_name  HIVE-METASTORE
   alias  HIVE-METASTORE Checks
 }
+<% end -%>
+<%if scope.function_hdp_nagios_members_exist('zookeeper-servers')-%>
 define servicegroup {
   servicegroup_name  ZOOKEEPER
   alias  ZOOKEEPER Checks
 }
+<% end -%>
 define servicegroup {
   servicegroup_name  AMBARI
   alias  AMBARI Checks
 }
+<%if scope.function_hdp_nagios_members_exist('hue-server')-%>
 define servicegroup {
   servicegroup_name  HUE
   alias  HUE Checks
 }
+<% end -%>
\ No newline at end of file


Mime
View raw message