You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2015/01/23 23:41:50 UTC
ambari git commit: AMBARI-9312. AMS status should be Critical if
ams-hbase process goes down. (Myroslav Papirkovskyy via swagle)
Repository: ambari
Updated Branches:
refs/heads/trunk 687996868 -> faa5b17b8
AMBARI-9312. AMS status should be Critical if ams-hbase process goes down. (Myroslav Papirkovskyy via swagle)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/faa5b17b
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/faa5b17b
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/faa5b17b
Branch: refs/heads/trunk
Commit: faa5b17b8b8054ea13e4878eac6a245dfe56c294
Parents: 6879968
Author: Siddharth Wagle <sw...@hortonworks.com>
Authored: Fri Jan 23 14:41:40 2015 -0800
Committer: Siddharth Wagle <sw...@hortonworks.com>
Committed: Fri Jan 23 14:41:40 2015 -0800
----------------------------------------------------------------------
.../common-services/AMS/0.1.0/package/scripts/status.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/faa5b17b/ambari-server/src/main/resources/common-services/AMS/0.1.0/package/scripts/status.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/AMS/0.1.0/package/scripts/status.py b/ambari-server/src/main/resources/common-services/AMS/0.1.0/package/scripts/status.py
index 4efbd26..91f13d4 100644
--- a/ambari-server/src/main/resources/common-services/AMS/0.1.0/package/scripts/status.py
+++ b/ambari-server/src/main/resources/common-services/AMS/0.1.0/package/scripts/status.py
@@ -25,9 +25,13 @@ from ambari_commons.os_family_impl import OsFamilyFuncImpl, OsFamilyImpl
def check_service_status(name):
if name=='collector':
pid_file = format("{ams_collector_pid_dir}/ambari-metrics-collector.pid")
+ check_process_status(pid_file)
+ pid_file = format("{hbase_pid_dir}/hbase-{hbase_user}-master.pid")
+ check_process_status(pid_file)
+
elif name == 'monitor':
pid_file = format("{ams_monitor_pid_dir}/ambari-metrics-monitor.pid")
- check_process_status(pid_file)
+ check_process_status(pid_file)
@OsFamilyFuncImpl(os_family=OSConst.WINSRV_FAMILY)
def check_service_status(name):