incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject svn commit: r1406498 [5/8] - in /incubator/ambari/branches/AMBARI-666: ./ ambari-agent/src/main/puppet/modules/hdp/manifests/ ambari-agent/src/main/puppet/modules/hdp/manifests/lib/ ambari-agent/src/main/python/ambari_agent/ ambari-server/src/main/java...
Date Wed, 07 Nov 2012 08:50:03 GMT
Added: incubator/ambari/branches/AMBARI-666/contrib/addons/test/dataServices/jmx/test_jmx_parsing.php
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/test/dataServices/jmx/test_jmx_parsing.php?rev=1406498&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/contrib/addons/test/dataServices/jmx/test_jmx_parsing.php (added)
+++ incubator/ambari/branches/AMBARI-666/contrib/addons/test/dataServices/jmx/test_jmx_parsing.php Wed Nov  7 08:49:58 2012
@@ -0,0 +1,255 @@
+<?php
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+$GLOBALS["HDP_MON_DEBUG_MODE"] = FALSE;
+$pwd = exec("pwd");
+$GLOBALS["HDP_MON_CLUSTER_CONFIG_LOCATION"] = $pwd
+    ."/data/cluster_configuration.json";
+
+include_once("../../../src/dataServices/common/common.inc");
+include_once("../../../src/dataServices/common/cluster_configuration.inc");
+include_once("../../../src/dataServices/common/response.inc");
+include_once("../../../src/dataServices/jmx/hdp_mon_jmx_helpers.inc");
+
+function verify_hdfs_info($info) {
+  assert(is_array($info));
+  assert($info["service_type"] === "HDFS");
+  assert($info["installed"]);
+
+  assert($info["namenode_addr"] == "namenode:50070");
+  assert($info["secondary_namenode_addr"] == "snamenode:50071");
+  assert($info["total_nodes"] == 10);
+  assert($info["memory_heap_used"] == 529321952);
+  assert($info["memory_heap_max"] == 1006632960);
+  assert($info["dfs_dirfiles_count"] == 554);
+  assert($info["dfs_blocks_total"] == 458);
+  assert($info["dfs_blocks_underreplicated"] == 0);
+  assert($info["dfs_blocks_missing"] == 0);
+  assert($info["dfs_blocks_corrupt"] == 0);
+  assert($info["dfs_state"] == "Operational");
+  assert($info["start_time"] == 1327557522);
+  assert($info["live_nodes"] == 10);
+  assert($info["dead_nodes"] == 1);
+  assert($info["decommissioning_nodes"] == 0);
+  assert($info["version"] == "1.0.0");
+  assert($info["safemode"] == TRUE);
+  assert($info["pending_upgrades"] == "");
+  assert($info["dfs_configured_capacity"] == 36336891658240);
+  assert($info["dfs_percent_used"] == 0);
+  assert($info["dfs_percent_remaining"] == 99.08);
+  assert($info["dfs_total_bytes"] == 36336891658240);
+  assert($info["dfs_used_bytes"] == 1750237184);
+  assert($info["nondfs_used_bytes"] == 331691536384);
+  assert($info["dfs_free_bytes"] == 36003449884672);
+  assert($info["safemode_reason"] != "");
+}
+
+function verify_mr_info($info) {
+  assert(is_array($info));
+  assert($info["service_type"] === "MAPREDUCE");
+  assert($info["installed"]);
+
+  assert($info["jobtracker_addr"] == "jobtracker:50030");
+  assert($info["trackers_total"] == 20);
+  assert($info["jobhistory_addr"] == "jobhistory_host:52890");
+  assert($info["memory_heap_used"] == 158277552);
+  assert($info["memory_heap_max"] == 1052770304);
+  assert($info["trackers_live"] == 10);
+  assert($info["trackers_graylisted"] == 0);
+  assert($info["trackers_blacklisted"] == 0);
+  assert($info["version"] == "1.0.0, r1224962");
+
+  assert(is_array($info["queue_info"])
+         && $info["queue_info"]["type"] == "CapacityTaskScheduler"
+         && count($info["queue_info"]["queues"]) == 1);
+
+  assert($info["queue_info"]["queues"]["default"]["state"] == "running"
+    && $info["queue_info"]["queues"]["default"]["capacity_percentage"]
+        == 100.0
+    && $info["queue_info"]["queues"]["default"]["user_limit"] ==  100
+    && $info["queue_info"]["queues"]["default"]["priority_supported"] == 1
+    && $info["queue_info"]["queues"]["default"]["map_capacity"] == 40
+    && $info["queue_info"]["queues"]["default"]["map_running_tasks"] ==  0
+    && $info["queue_info"]["queues"]["default"]["reduce_capacity"] == 20
+    && $info["queue_info"]["queues"]["default"]["reduce_running_tasks"] == 0
+    && $info["queue_info"]["queues"]["default"]["waiting_jobs"] == 3
+    && $info["queue_info"]["queues"]["default"]["initializing_jobs"] ==  0
+    && $info["queue_info"]["queues"]["default"]["users_with_submitted_jobs"]
+        == 0);
+
+  assert($info["trackers_excluded"] == 0);
+  assert($info["map_task_capacity"] == 40);
+  assert($info["reduce_task_capacity"] == 20);
+  assert($info["job_total_submissions"] == 105);
+  assert($info["job_total_completions"] == 104);
+  assert($info["running_jobs"] == 0);
+  assert($info["waiting_jobs"] == 3);
+  assert($info["running_map_tasks"] == 0);
+  assert($info["running_reduce_tasks"] == 0);
+  assert($info["occupied_map_slots"] == 0);
+  assert($info["occupied_reduce_slots"] == 0);
+  assert($info["reserved_map_slots"] == 0);
+  assert($info["reserved_reduce_slots"] == 0);
+  assert($info["waiting_maps"] == 1);
+  assert($info["waiting_reduces"] == 0);
+  assert($info["start_time"] == 1327557546);
+  assert($info["average_node_capacity"] == 6);
+}
+
+function verify_hbase_info($info) {
+  assert(is_array($info));
+  assert($info["service_type"] === "HBASE");
+  assert($info["installed"]);
+  assert($info["total_regionservers"] === 30);
+  assert($info["memory_heap_used"] === 32946880);
+  assert($info["memory_heap_max"] === 1035468800);
+  assert($info["cluster_id"] === "d24914d7-75d3-4dcc-9e6f-0d7770833993");
+  assert($info["start_time"] == 1329244267);
+  assert($info["active_time"] == 1329244269);
+  assert(is_array($info["coprocessors"])
+         && count($info["coprocessors"]) == 0);
+  assert($info["average_load"] == 2);
+  assert($info["regions_in_transition_count"] === 0);
+  assert($info["live_regionservers"] === 1);
+  assert($info["dead_regionservers"] === 0);
+  assert(is_array($info["zookeeper_quorum"])
+         && count($info["zookeeper_quorum"]) == 1
+         && $info["zookeeper_quorum"][0] === "localhost:2181");
+  assert($info["version"] ===
+      "0.92.1-SNAPSHOT, ra23f8636efd6dd9d37f3a15d83f2396819509502");
+}
+
+function verify_overall_info($info) {
+  assert(is_array($info));
+  assert(is_array($info["overall"]));
+  assert(is_array($info["hbase"]));
+  assert(is_array($info["hdfs"]));
+  assert(is_array($info["mapreduce"]));
+
+  assert($info["overall"]["ganglia_url"] ==
+      "http://gangliaweb_host:80/var/www/ganglia2");
+  assert($info["overall"]["nagios_url"] == "http://nagiosserver_host:80/nagios");
+  assert($info["overall"]["hdfs_installed"] == 1);
+  assert($info["overall"]["mapreduce_installed"] == 1);
+  assert($info["overall"]["hbase_installed"] == 1);
+  assert($info["overall"]["namenode_addr"] == "namenode:50070");
+  assert($info["overall"]["secondary_namenode_addr"] == "snamenode:50071");
+  assert($info["overall"]["namenode_starttime"] == 1327557522);
+  assert($info["overall"]["total_nodes"] == 10);
+  assert($info["overall"]["live_nodes"] == 10);
+  assert($info["overall"]["dead_nodes"] == 1);
+  assert($info["overall"]["decommissioning_nodes"] == 0);
+  assert($info["overall"]["dfs_blocks_underreplicated"] == 0);
+  assert($info["overall"]["safemode"] == TRUE);
+  assert($info["overall"]["pending_upgrades"] == "");
+  assert($info["overall"]["dfs_configured_capacity"] == 36336891658240);
+  assert($info["overall"]["dfs_percent_used"] == 0);
+  assert($info["overall"]["dfs_percent_remaining"] == 99.08);
+  assert($info["overall"]["dfs_total_bytes"] == 36336891658240);
+  assert($info["overall"]["dfs_used_bytes"] == 1750237184);
+  assert($info["overall"]["nondfs_used_bytes"] == 331691536384);
+  assert($info["overall"]["dfs_free_bytes"] == 36003449884672);
+  assert($info["overall"]["jobtracker_addr"] == "jobtracker:50030");
+  assert($info["overall"]["jobtracker_starttime"] == 1327557546);
+  assert($info["overall"]["running_jobs"] == 0);
+  assert($info["overall"]["waiting_jobs"] == 3);
+  assert($info["overall"]["trackers_total"] == 20);
+  assert($info["overall"]["trackers_live"] == 10);
+  assert($info["overall"]["trackers_graylisted"] == 0);
+  assert($info["overall"]["trackers_blacklisted"] == 0);
+  assert($info["overall"]["hbasemaster_addr"] == "hbasemaster:60010");
+  assert($info["overall"]["total_regionservers"] == 30);
+  assert($info["overall"]["hbasemaster_starttime"] == 1329244267);
+  assert($info["overall"]["live_regionservers"] == 1);
+  assert($info["overall"]["dead_regionservers"] == 0);
+  assert($info["overall"]["regions_in_transition_count"] == 0);
+
+  assert($info["hdfs"]["namenode_addr"] == "namenode:50070");
+  assert($info["hdfs"]["secondary_namenode_addr"] == "snamenode:50071");
+  assert($info["hdfs"]["namenode_starttime"] == 1327557522);
+  assert($info["hdfs"]["total_nodes"] == 10);
+  assert($info["hdfs"]["live_nodes"] == 10);
+  assert($info["hdfs"]["dead_nodes"] == 1);
+  assert($info["hdfs"]["decommissioning_nodes"] == 0);
+  assert($info["hdfs"]["dfs_blocks_underreplicated"] == 0);
+  assert($info["hdfs"]["safemode"] == TRUE);
+  assert($info["hdfs"]["pending_upgrades"] == "");
+  assert($info["hdfs"]["dfs_configured_capacity"] == 36336891658240);
+  assert($info["hdfs"]["dfs_percent_used"] == 0);
+  assert($info["hdfs"]["dfs_percent_remaining"] == 99.08);
+  assert($info["hdfs"]["dfs_total_bytes"] == 36336891658240);
+  assert($info["hdfs"]["dfs_used_bytes"] == 1750237184);
+  assert($info["hdfs"]["nondfs_used_bytes"] == 331691536384);
+  assert($info["hdfs"]["dfs_free_bytes"] == 36003449884672);
+
+  assert($info["mapreduce"]["jobtracker_addr"] == "jobtracker:50030");
+  assert($info["mapreduce"]["jobtracker_starttime"] == 1327557546);
+  assert($info["mapreduce"]["running_jobs"] == 0);
+  assert($info["mapreduce"]["waiting_jobs"] == 3);
+  assert($info["mapreduce"]["trackers_total"] == 20);
+  assert($info["mapreduce"]["trackers_live"] == 10);
+  assert($info["mapreduce"]["trackers_graylisted"] == 0);
+  assert($info["mapreduce"]["trackers_blacklisted"] == 0);
+
+  assert($info["hbase"]["hbasemaster_addr"] == "hbasemaster:60010");
+  assert($info["hbase"]["total_regionservers"] == 30);
+  assert($info["hbase"]["hbasemaster_starttime"] == 1329244267);
+  assert($info["hbase"]["live_regionservers"] == 1);
+  assert($info["hbase"]["dead_regionservers"] == 0);
+  assert($info["hbase"]["regions_in_transition_count"] == 0);
+}
+
+hdp_mon_load_cluster_configuration();
+if (!isset($GLOBALS["HDP_MON_CONFIG"])) {
+  error_log("global CONFIG is still not set");
+  exit(1);
+}
+
+$hdfs_jmx_json = file_get_contents("./data/sample_namenode_jmx.json");
+if (!$hdfs_jmx_json || $hdfs_jmx_json == "") {
+  error_log("Invalid json data for namenode jmx");
+  exit(1);
+}
+
+$hdfsinfo = hdp_mon_jmx_parse_hdfs_info(json_decode($hdfs_jmx_json, true));
+verify_hdfs_info($hdfsinfo);
+
+$mr_jmx_json = file_get_contents("./data/sample_jobtracker_jmx.json");
+if (!$mr_jmx_json || $mr_jmx_json == "") {
+  error_log("Invalid json data for jobtracker jmx");
+  exit(1);
+}
+
+$mrinfo = hdp_mon_jmx_parse_mapreduce_info(json_decode($mr_jmx_json, true));
+verify_mr_info($mrinfo);
+
+$hbase_jmx_json = file_get_contents("./data/sample_hbasemaster_jmx.json");
+if (!$hbase_jmx_json || $hbase_jmx_json == "") {
+  error_log("Invalid json data for hbase master jmx");
+  exit(1);
+}
+
+$hbaseinfo = hdp_mon_jmx_parse_hbase_info(json_decode($hbase_jmx_json, true));
+verify_hbase_info($hbaseinfo);
+
+$overallinfo = hdp_mon_helper_get_cluster_info($hdfsinfo,
+    $mrinfo, $hbaseinfo);
+verify_overall_info($overallinfo);
+
+?>

Added: incubator/ambari/branches/AMBARI-666/contrib/addons/test/nagios/plugins/test_sys_logger.py
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/test/nagios/plugins/test_sys_logger.py?rev=1406498&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/contrib/addons/test/nagios/plugins/test_sys_logger.py (added)
+++ incubator/ambari/branches/AMBARI-666/contrib/addons/test/nagios/plugins/test_sys_logger.py Wed Nov  7 08:49:58 2012
@@ -0,0 +1,398 @@
+#!/usr/bin/python
+
+import sys
+sys.path.append('../src')
+
+import sys_logger
+
+tests_passed = 0
+tests_failed = 0
+def test_log_tvi_msg(msg):
+    global tests_passed, tests_failed
+    if msg == expected_log_msg:
+        print 'Test Passed'
+        tests_passed += 1
+    else:
+        print '*** TEST FAILED ***'
+        print 'Expected MSG: {0}'.format(expected_log_msg)
+        print 'Actual MSG  : {0}'.format(msg)
+        tests_failed += 1
+
+sys_logger.log_tvi_msg = test_log_tvi_msg
+
+def test(tvi_rule, expected_msg, arg1, arg2, arg3, arg4, arg5):
+    sys.stdout.write(tvi_rule + ': ')
+    global expected_log_msg
+    expected_log_msg = expected_msg
+    sys_logger.generate_tvi_log_msg(arg1, arg2, arg3, arg4, arg5)
+
+def summary():
+    total_tests = tests_passed + tests_failed
+    print '\nTests Run: {0}'.format(total_tests)
+    print 'Passed: {0}, Failed: {1}'.format(tests_passed, tests_failed)
+    if not tests_failed:
+        print 'SUCCESS! All tests pass.'
+
+
+# Hadoop_Host_Down
+test('Hadoop_Host_Down',
+     'Critical: Hadoop: host_down# Event Host=MY_HOST(CRITICAL), PING FAILED - Packet loss = 100%, RTA = 0.00 ms',
+     'HARD', '1', 'CRITICAL', 'Host::Ping', 'Event Host=MY_HOST(CRITICAL), PING FAILED - Packet loss = 100%, RTA = 0.00 ms')
+
+test('Hadoop_Host_Down:OK',
+    'OK: Hadoop: host_down_ok# Event Host=MY_HOST(OK), PING SUCCESS - Packet loss = 0%, RTA = 1.00 ms',
+    'HARD', '1', 'OK', 'Host::Ping', 'Event Host=MY_HOST(OK), PING SUCCESS - Packet loss = 0%, RTA = 1.00 ms')
+
+# Hadoop_Master_Daemon_CPU_Utilization
+test('Hadoop_Master_Daemon_CPU_Utilization',
+     'Critical: Hadoop: master_cpu_utilization# Event Host=MY_HOST Service Description=HBASEMASTER::HBaseMaster CPU utilization(CRITICAL), 4 CPU, average load 2.5%  200%',
+     'HARD', '1', 'CRITICAL', 'HBASEMASTER::HBaseMaster CPU utilization',
+     'Event Host=MY_HOST Service Description=HBASEMASTER::HBaseMaster CPU utilization(CRITICAL), 4 CPU, average load 2.5%  200%')
+
+test('Hadoop_Master_Daemon_CPU_Utilization:Degraded',
+    'Degraded: Hadoop: master_cpu_utilization# Event Host=MY_HOST Service Description=HBASEMASTER::HBaseMaster CPU utilization(CRITICAL), 4 CPU, average load 2.5%  200%',
+    'HARD', '1', 'WARNING', 'HBASEMASTER::HBaseMaster CPU utilization',
+    'Event Host=MY_HOST Service Description=HBASEMASTER::HBaseMaster CPU utilization(CRITICAL), 4 CPU, average load 2.5%  200%')
+
+test('Hadoop_Master_Daemon_CPU_Utilization:OK',
+    'OK: Hadoop: master_cpu_utilization_ok# Event Host=MY_HOST Service Description=HBASEMASTER::HBaseMaster CPU utilization(OK), 4 CPU, average load 2.5%  200%',
+    'HARD', '1', 'OK', 'HBASEMASTER::HBaseMaster CPU utilization',
+    'Event Host=MY_HOST Service Description=HBASEMASTER::HBaseMaster CPU utilization(OK), 4 CPU, average load 2.5%  200%')
+
+# Hadoop_HDFS_Percent_Capacity
+test('Hadoop_HDFS_Percent_Capacity',
+     'Critical: Hadoop: hdfs_percent_capacity# Event Host=MY_HOST Service Description=HDFS::HDFS Capacity utilization(CRITICAL),DFSUsedGB:0.1, DFSTotalGB:1568.7',
+     'HARD', '1', 'CRITICAL', 'HDFS::HDFS Capacity utilization',
+     'Event Host=MY_HOST Service Description=HDFS::HDFS Capacity utilization(CRITICAL),DFSUsedGB:0.1, DFSTotalGB:1568.7')
+
+test('Hadoop_HDFS_Percent_Capacity:OK',
+    'OK: Hadoop: hdfs_percent_capacity_ok# Event Host=MY_HOST Service Description=HDFS::HDFS Capacity utilization(OK),DFSUsedGB:0.1, DFSTotalGB:1568.7',
+    'HARD', '1', 'OK', 'HDFS::HDFS Capacity utilization',
+    'Event Host=MY_HOST Service Description=HDFS::HDFS Capacity utilization(OK),DFSUsedGB:0.1, DFSTotalGB:1568.7')
+
+# Hadoop_HDFS_Corrupt_Missing_Blocks
+test('Hadoop_HDFS_Corrupt_Missing_Blocks',
+     'Critical: Hadoop: hdfs_block# Event Host=MY_HOST Service Description=HDFS::Corrupt/Missing blocks(CRITICAL), corrupt_blocks:0, missing_blocks:0, total_blocks:147',
+     'HARD', '1', 'CRITICAL', 'HDFS::Corrupt/Missing blocks',
+     'Event Host=MY_HOST Service Description=HDFS::Corrupt/Missing blocks(CRITICAL), corrupt_blocks:0, missing_blocks:0, total_blocks:147')
+
+test('Hadoop_HDFS_Corrupt_Missing_Blocks:OK',
+    'OK: Hadoop: hdfs_block_ok# Event Host=MY_HOST Service Description=HDFS::Corrupt/Missing blocks(OK), corrupt_blocks:0, missing_blocks:0, total_blocks:147',
+    'HARD', '1', 'OK', 'HDFS::Corrupt/Missing blocks',
+    'Event Host=MY_HOST Service Description=HDFS::Corrupt/Missing blocks(OK), corrupt_blocks:0, missing_blocks:0, total_blocks:147')
+
+# Hadoop_NameNode_Edit_Log_Dir_Write
+test('Hadoop_NameNode_Edit_Log_Dir_Write',
+     'Critical: Hadoop: namenode_edit_log_write# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'NAMENODE::Namenode Edit logs directory status', 'SERVICE MSG')
+
+test('Hadoop_NameNode_Edit_Log_Dir_Write:OK',
+    'OK: Hadoop: namenode_edit_log_write_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'NAMENODE::Namenode Edit logs directory status', 'SERVICE MSG')
+
+# Hadoop_DataNode_Down
+test('Hadoop_DataNode_Down',
+     'Critical: Hadoop: datanode_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'HDFS::Percent DataNodes down','SERVICE MSG')
+
+test('Hadoop_DataNode_Down:OK',
+    'OK: Hadoop: datanode_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'HDFS::Percent DataNodes down','SERVICE MSG')
+
+# Hadoop_DataNode_Process_Down
+test('Hadoop_DataNode_Process_Down',
+     'Critical: Hadoop: datanode_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'DATANODE::Process down', 'SERVICE MSG')
+
+test('Hadoop_DataNode_Process_Down:OK',
+    'OK: Hadoop: datanode_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'DATANODE::Process down', 'SERVICE MSG')
+
+# Hadoop_Percent_DataNodes_Storage_Full
+test('Hadoop_Percent_DataNodes_Storage_Full',
+     'Critical: Hadoop: datanodes_percent_storage_full# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'HDFS::Percent DataNodes storage full', 'SERVICE MSG')
+
+test('Hadoop_Percent_DataNodes_Storage_Full:OK',
+    'OK: Hadoop: datanodes_percent_storage_full_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'HDFS::Percent DataNodes storage full', 'SERVICE MSG')
+
+# Hadoop_NameNode_Process_Down
+test('Hadoop_NameNode_Process_Down:CRITICAL',
+     'Fatal: Hadoop: namenode_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'NAMENODE::Namenode Process down', 'SERVICE MSG')
+
+test('Hadoop_NameNode_Process_Down:WARNING',
+    'Fatal: Hadoop: namenode_process_down# SERVICE MSG',
+    'HARD', '1', 'WARNING', 'NAMENODE::Namenode Process down', 'SERVICE MSG')
+
+test('Hadoop_NameNode_Process_Down:UNKNOWN',
+    'Fatal: Hadoop: namenode_process_down# SERVICE MSG',
+    'HARD', '1', 'UNKNOWN', 'NAMENODE::Namenode Process down', 'SERVICE MSG')
+
+test('Hadoop_NameNode_Process_Down:OK',
+    'OK: Hadoop: namenode_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'NAMENODE::Namenode Process down', 'SERVICE MSG')
+
+# Hadoop_Secondary_NameNode_Process_Down
+test('Hadoop_Secondary_NameNode_Process_Down',
+    'Critical: Hadoop: secondary_namenode_process_down# SERVICE MSG',
+    'HARD', '1', 'CRITICAL', 'NAMENODE::Secondary Namenode Process down', 'SERVICE MSG')
+
+test('Hadoop_Secondary_NameNode_Process_Down:OK',
+    'OK: Hadoop: secondary_namenode_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'NAMENODE::Secondary Namenode Process down', 'SERVICE MSG')
+
+# Hadoop_NameNode_RPC_Latency
+test('Hadoop_NameNode_RPC_Latency',
+     'Critical: Hadoop: namenode_rpc_latency# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'HDFS::Namenode RPC Latency', 'SERVICE MSG')
+
+test('Hadoop_NameNode_RPC_Latency:Degraded',
+    'Degraded: Hadoop: namenode_rpc_latency# SERVICE MSG',
+    'HARD', '1', 'WARNING', 'HDFS::Namenode RPC Latency', 'SERVICE MSG')
+
+test('Hadoop_NameNode_RPC_Latency:OK',
+    'OK: Hadoop: namenode_rpc_latency_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'HDFS::Namenode RPC Latency', 'SERVICE MSG')
+
+# Hadoop_DataNodes_Storage_Full
+test('Hadoop_DataNodes_Storage_Full',
+     'Critical: Hadoop: datanodes_storage_full# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'DATANODE::Storage full', 'SERVICE MSG')
+
+test('Hadoop_DataNodes_Storage_Full:OK',
+    'OK: Hadoop: datanodes_storage_full_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'DATANODE::Storage full', 'SERVICE MSG')
+
+# Hadoop_JobTracker_Process_Down
+test('Hadoop_JobTracker_Process_Down',
+     'Critical: Hadoop: jobtracker_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'JOBTRACKER::Jobtracker Process down', 'SERVICE MSG')
+
+test('Hadoop_JobTracker_Process_Down:OK',
+    'OK: Hadoop: jobtracker_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'JOBTRACKER::Jobtracker Process down', 'SERVICE MSG')
+
+# Hadoop_JobTracker_RPC_Latency
+test('Hadoop_JobTracker_RPC_Latency',
+     'Critical: Hadoop: jobtracker_rpc_latency# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'MAPREDUCE::JobTracker RPC Latency', 'SERVICE MSG')
+
+test('Hadoop_JobTracker_RPC_Latency:Degraded',
+    'Degraded: Hadoop: jobtracker_rpc_latency# SERVICE MSG',
+    'HARD', '1', 'WARNING', 'MAPREDUCE::JobTracker RPC Latency', 'SERVICE MSG')
+
+test('Hadoop_JobTracker_RPC_Latency:OK',
+    'OK: Hadoop: jobtracker_rpc_latency_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'MAPREDUCE::JobTracker RPC Latency', 'SERVICE MSG')
+
+# Hadoop_JobTracker_CPU_Utilization
+test('Hadoop_JobTracker_CPU_Utilization',
+    'Critical: Hadoop: jobtracker_cpu_utilization# SERVICE MSG',
+    'HARD', '1', 'CRITICAL', 'JOBTRACKER::Jobtracker CPU utilization', 'SERVICE MSG')
+
+test('Hadoop_JobTracker_CPU_Utilization:Degraded',
+    'Degraded: Hadoop: jobtracker_cpu_utilization# SERVICE MSG',
+    'HARD', '1', 'WARNING', 'JOBTRACKER::Jobtracker CPU utilization', 'SERVICE MSG')
+
+test('Hadoop_JobTracker_CPU_Utilization:OK',
+    'OK: Hadoop: jobtracker_cpu_utilization_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'JOBTRACKER::Jobtracker CPU utilization', 'SERVICE MSG')
+
+# Hadoop_TaskTracker_Down
+test('Hadoop_TaskTracker_Down',
+     'Critical: Hadoop: tasktrackers_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'MAPREDUCE::Percent TaskTrackers down', 'SERVICE MSG')
+
+test('Hadoop_TaskTracker_Down:OK',
+    'OK: Hadoop: tasktrackers_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'MAPREDUCE::Percent TaskTrackers down', 'SERVICE MSG')
+
+# Hadoop_TaskTracker_Process_Down
+test('Hadoop_TaskTracker_Process_Down',
+     'Critical: Hadoop: tasktracker_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'TASKTRACKER::Process down', 'SERVICE MSG')
+
+test('Hadoop_TaskTracker_Process_Down:OK',
+    'OK: Hadoop: tasktracker_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'TASKTRACKER::Process down', 'SERVICE MSG')
+
+# Hadoop_HBaseMaster_Process_Down
+test('Hadoop_HBaseMaster_Process_Down',
+     'Critical: Hadoop: hbasemaster_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'HBASEMASTER::HBaseMaster Process down', 'SERVICE MSG')
+
+test('Hadoop_HBaseMaster_Process_Down:OK',
+    'OK: Hadoop: hbasemaster_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'HBASEMASTER::HBaseMaster Process down', 'SERVICE MSG')
+
+# Hadoop_RegionServer_Process_Down
+test('Hadoop_RegionServer_Process_Down',
+     'Critical: Hadoop: regionserver_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'REGIONSERVER::Process down', 'SERVICE MSG')
+
+test('Hadoop_RegionServer_Process_Down:OK',
+    'OK: Hadoop: regionserver_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'REGIONSERVER::Process down', 'SERVICE MSG')
+
+# Hadoop_RegionServer_Down
+test('Hadoop_RegionServer_Down',
+     'Critical: Hadoop: regionservers_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'HBASE::Percent region servers down', 'SERVICE MSG')
+
+test('Hadoop_RegionServer_Down:OK',
+    'OK: Hadoop: regionservers_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'HBASE::Percent region servers down', 'SERVICE MSG')
+
+# Hadoop_Hive_Metastore_Process_Down
+test('Hadoop_Hive_Metastore_Process_Down',
+     'Critical: Hadoop: hive_metastore_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'HIVE-METASTORE::HIVE-METASTORE status check', 'SERVICE MSG')
+
+test('Hadoop_Hive_Metastore_Process_Down:OK',
+    'OK: Hadoop: hive_metastore_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'HIVE-METASTORE::HIVE-METASTORE status check', 'SERVICE MSG')
+
+# Hadoop_Zookeeper_Down
+test('Hadoop_Zookeeper_Down',
+     'Critical: Hadoop: zookeepers_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'ZOOKEEPER::Percent zookeeper servers down', 'SERVICE MSG')
+
+test('Hadoop_Zookeeper_Down:OK',
+    'OK: Hadoop: zookeepers_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'ZOOKEEPER::Percent zookeeper servers down', 'SERVICE MSG')
+
+# Hadoop_Zookeeper_Process_Down
+test('Hadoop_Zookeeper_Process_Down',
+     'Critical: Hadoop: zookeeper_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'ZKSERVERS::ZKSERVERS Process down', 'SERVICE MSG')
+
+test('Hadoop_Zookeeper_Process_Down:OK',
+    'OK: Hadoop: zookeeper_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'ZKSERVERS::ZKSERVERS Process down', 'SERVICE MSG')
+
+# Hadoop_Oozie_Down
+test('Hadoop_Oozie_Down',
+     'Critical: Hadoop: oozie_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'OOZIE::Oozie status check', 'SERVICE MSG')
+
+test('Hadoop_Oozie_Down:OK',
+    'OK: Hadoop: oozie_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'OOZIE::Oozie status check', 'SERVICE MSG')
+
+# Hadoop_Templeton_Down
+test('Hadoop_Templeton_Down',
+     'Critical: Hadoop: templeton_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'TEMPLETON::Templeton status check', 'SERVICE MSG')
+
+test('Hadoop_Templeton_Down:OK',
+    'OK: Hadoop: templeton_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'TEMPLETON::Templeton status check', 'SERVICE MSG')
+
+# Hadoop_Puppet_Down
+test('Hadoop_Puppet_Down',
+     'Critical: Hadoop: puppet_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'PUPPET::Puppet agent down', 'SERVICE MSG')
+
+test('Hadoop_Puppet_Down:OK',
+    'OK: Hadoop: puppet_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'PUPPET::Puppet agent down', 'SERVICE MSG')
+
+# Hadoop_Nagios_Status_Log_Stale
+test('Hadoop_Nagios_Status_Log_Stale',
+     'Critical: Hadoop: nagios_status_log_stale# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'NAGIOS::Nagios status log staleness', 'SERVICE MSG')
+
+test('Hadoop_Nagios_Status_Log_Stale:OK',
+    'OK: Hadoop: nagios_status_log_stale_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'NAGIOS::Nagios status log staleness', 'SERVICE MSG')
+
+# Hadoop_Ganglia_Process_Down
+test('Hadoop_Ganglia_Process_Down',
+     'Critical: Hadoop: ganglia_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'GANGLIA::Ganglia [gmetad] Process down', 'SERVICE MSG')
+
+test('Hadoop_Ganglia_Process_Down:OK',
+    'OK: Hadoop: ganglia_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'GANGLIA::Ganglia [gmetad] Process down', 'SERVICE MSG')
+
+# Hadoop_Ganglia_Collector_Process_Down
+test('Hadoop_Ganglia_Collector_Process_Down',
+     'Critical: Hadoop: ganglia_collector_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'GANGLIA::Ganglia collector [gmond] Process down alert for hbasemaster', 'SERVICE MSG')
+
+test('Hadoop_Ganglia_Collector_Process_Down:OK',
+    'OK: Hadoop: ganglia_collector_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'GANGLIA::Ganglia collector [gmond] Process down alert for hbasemaster', 'SERVICE MSG')
+
+# Hadoop_Ganglia_Collector_Process_Down
+test('Hadoop_Ganglia_Collector_Process_Down',
+     'Critical: Hadoop: ganglia_collector_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'GANGLIA::Ganglia collector [gmond] Process down alert for jobtracker', 'SERVICE MSG')
+
+test('Hadoop_Ganglia_Collector_Process_Down:OK',
+    'OK: Hadoop: ganglia_collector_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'GANGLIA::Ganglia collector [gmond] Process down alert for jobtracker', 'SERVICE MSG')
+
+# Hadoop_Ganglia_Collector_Process_Down
+test('Hadoop_Ganglia_Collector_Process_Down',
+     'Critical: Hadoop: ganglia_collector_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'GANGLIA::Ganglia collector [gmond] Process down alert for namenode', 'SERVICE MSG')
+
+test('Hadoop_Ganglia_Collector_Process_Down:OK',
+    'OK: Hadoop: ganglia_collector_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'GANGLIA::Ganglia collector [gmond] Process down alert for namenode', 'SERVICE MSG')
+
+# Hadoop_Ganglia_Collector_Process_Down
+test('Hadoop_Ganglia_Collector_Process_Down',
+     'Critical: Hadoop: ganglia_collector_process_down# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'GANGLIA::Ganglia collector [gmond] Process down alert for slaves', 'SERVICE MSG')
+
+test('Hadoop_Ganglia_Collector_Process_Down:OK',
+    'OK: Hadoop: ganglia_collector_process_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'GANGLIA::Ganglia collector [gmond] Process down alert for slaves', 'SERVICE MSG')
+
+# Hadoop_UNKNOWN_MSG
+test('Hadoop_UNKNOWN_MSG',
+     'Critical: Hadoop: HADOOP_UNKNOWN_MSG# SERVICE MSG',
+     'HARD', '1', 'CRITICAL', 'ANY UNKNOWN SERVICE', 'SERVICE MSG')
+
+# HBase UI Down
+test('Hadoop_HBase_UI_Down',
+    'Critical: Hadoop: hbase_ui_down# SERVICE MSG',
+    'HARD', '1', 'CRITICAL', 'HBASEMASTER::HBase Web UI down', 'SERVICE MSG')
+
+test('Hadoop_HBase_UI_Down:OK',
+    'OK: Hadoop: hbase_ui_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'HBASEMASTER::HBase Web UI down', 'SERVICE MSG')
+
+# Namenode UI Down
+test('Hadoop_NameNode_UI_Down',
+    'Critical: Hadoop: namenode_ui_down# SERVICE MSG',
+    'HARD', '1', 'CRITICAL', 'NAMENODE::Namenode Web UI down', 'SERVICE MSG')
+
+test('Hadoop_NameNode_UI_Down:OK',
+    'OK: Hadoop: namenode_ui_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'NAMENODE::Namenode Web UI down', 'SERVICE MSG')
+
+# JobHistory UI Down
+test('Hadoop_JobHistory_UI_Down',
+    'Critical: Hadoop: jobhistory_ui_down# SERVICE MSG',
+    'HARD', '1', 'CRITICAL', 'JOBTRACKER::JobHistory Web UI down', 'SERVICE MSG')
+
+test('Hadoop_JobHistory_UI_Down:OK',
+    'OK: Hadoop: jobhistory_ui_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'JOBTRACKER::JobHistory Web UI down', 'SERVICE MSG')
+
+# JobTracker UI Down
+test('Hadoop_JobTracker_UI_Down',
+    'Critical: Hadoop: jobtracker_ui_down# SERVICE MSG',
+    'HARD', '1', 'CRITICAL', 'JOBTRACKER::JobTracker Web UI down', 'SERVICE MSG')
+
+test('Hadoop_JobTracker_UI_Down:OK',
+    'OK: Hadoop: jobtracker_ui_down_ok# SERVICE MSG',
+    'HARD', '1', 'OK', 'JOBTRACKER::JobTracker Web UI down', 'SERVICE MSG')
+
+summary()
+

Added: incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/alerts.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/alerts.json?rev=1406498&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/alerts.json (added)
+++ incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/alerts.json Wed Nov  7 08:49:58 2012
@@ -0,0 +1,122 @@
+{"alerts":
+	[
+		{
+			"service_type":"SYSTEM",
+			"service_description":"0 SYSTEM Load-critical",
+			"host_name":"ip-10-242-191-48.ec2.internal",
+			"current_attempt":"1",
+			"last_hard_state":"2",
+			"plugin_output":"OK - load average: 0.12, 0.11, 0.08 99999999999999999999",
+			"last_hard_state_change":"1327362079",
+			"last_time_ok":"1327385479",
+			"last_time_warning":"0",
+			"last_time_unknown":"0",
+			"last_time_critical":"0",
+			"is_flapping":"0",
+			"last_check":"1328827745"
+		},
+		{
+			"service_type":"MAPREDUCE",
+			"service_description":"1 MAPRED Current Users - 222",
+			"host_name":"ip-10-242-191-48.ec2.internal",
+			"current_attempt":"1",
+			"last_hard_state":"1",
+			"plugin_output":"USERS OK - 1 users currently logged in",
+			"last_hard_state_change":"1327362154",
+			"last_time_ok":"1327385554",
+			"last_time_warning":"0",
+			"last_time_unknown":"0",
+			"last_time_critical":"0",
+			"is_flapping":"0",
+			"last_check":"1328827745"
+		},
+		{
+			"service_type":"HBASE",
+			"service_description":"2 HBASE",
+			"host_name":"ip-10-242-191-48.ec2.internal",
+			"current_attempt":"1",
+			"last_hard_state":"0",
+			"plugin_output":"PING OK - Packet loss = 0%, RTA = 0.04 ms",
+			"last_hard_state_change":"1327362229",
+			"last_time_ok":"1327385629",
+			"last_time_warning":"0",
+			"last_time_unknown":"0",
+			"last_time_critical":"0",
+			"is_flapping":"0",
+			"last_check":"1328827745"
+		},
+		{
+			"service_type":"HDFS",
+			"service_description":"3 HDFS warning",
+			"host_name":"ip-10-242-191-48.ec2.internal",
+			"current_attempt":"1",
+			"last_hard_state":"1",
+			"plugin_output":"DISK OK - free space: \/ 6605 MB (69% inode=88%):",
+			"last_hard_state_change":"1327362304",
+			"last_time_ok":"1327385704",
+			"last_time_warning":"0",
+			"last_time_unknown":"0",
+			"last_time_critical":"0",
+			"is_flapping":"0",
+			"last_check":"1328827745"
+		},
+		{
+			"service_type":"HDFS",
+			"service_description":"4 HDFS critical",
+			"host_name":"ip-10-40-199-111.ec2.internal",
+			"current_attempt":"1",
+			"last_hard_state":"2",
+			"plugin_output":"4:HDFS critical alert",
+			"last_hard_state_change":"1327362104",
+			"last_time_ok":"1327385504",
+			"last_time_warning":"0",
+			"last_time_unknown":"0",
+			"last_time_critical":"0",
+			"is_flapping":"0",
+			"last_check":"1328827745"
+		},
+		{
+			"service_type":"MAPREDUCE",
+			"service_description":"5 MAPREDUCE ok",
+			"host_name":"ip-10-40-199-111.ec2.internal",
+			"current_attempt":"1",
+			"last_hard_state":"0",
+			"plugin_output":"DISK OK - free space: \/ 6605 MB (69% inode=88%):",
+			"last_hard_state_change":"1327362254",
+			"last_time_ok":"1327385654",
+			"last_time_warning":"0",
+			"last_time_unknown":"0",
+			"last_time_critical":"0",
+			"is_flapping":"0",
+			"last_check":"1328827745"
+		},
+		{
+			"service_type":"ZOOKEEPER","service_description":"DATANODE Total Processes","host_name":"ip-10-80-119-243.ec2.internal","current_attempt":"1","last_hard_state":"1","plugin_output":"PROCS OK: 73 processes with STATE = RSZDT","last_hard_state_change":"1327362129","last_time_ok":"1327385529","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0","last_check":"1328827745"},
+		{
+			"service_type":"HIVE-METASTORE","service_description":"PING","host_name":"ip-10-80-119-243.ec2.internal","current_attempt":"1","last_hard_state":"1","plugin_output":"PING OK - Packet loss = 0%, RTA = 2.92 ms","last_hard_state_change":"1327362204","last_time_ok":"1327385604","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0","last_check":"1328827745"},
+		{
+			"service_type":"HBASE","service_description":"DATANODE Total Processes","host_name":"ip-10-80-119-243.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"PROCS OK: 73 processes with STATE = RSZDT","last_hard_state_change":"1327362129","last_time_ok":"1327385529","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0","last_check":"1328827745"},
+		{
+			"service_type":"HBASE","service_description":"PING","host_name":"ip-10-80-119-243.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"PING OK - Packet loss = 0%, RTA = 2.92 ms","last_hard_state_change":"1327362204","last_time_ok":"1327385604","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0","last_check":"1328827745"},
+		{
+			"service_type":"HBASE","service_description":"Root Partition","host_name":"ip-10-80-119-243.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"DISK OK - free space: \/ 6605 MB (69% inode=88%):","last_hard_state_change":"1327362279","last_time_ok":"1327385679","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0","last_check":"1328827745"},
+		{
+			"service_type":"HBASE","service_description":"Root Partition","host_name":"ip-10-80-119-243.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"DISK OK - free space: \/ 6605 MB (69% inode=88%):","last_hard_state_change":"1327362279","last_time_ok":"1327385679","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0","last_check":"1328827745"
+		}
+	],
+"hosts":
+	[
+		{"host_name":"ip-10-242-191-48.ec2.internal","last_hard_state":"0","last_hard_state":"0","plugin_output":"PING OK - Packet loss = 0%, RTA = 0.04 ms","last_check":"1327385564","current_attempt":"1","last_hard_state_change":"1327362079","last_time_up":"1327385574","last_time_down":"0","last_time_unreachable":"0","is_flapping":"0","alerts":[{"service_description":"HDFS Current Load","host_name":"ip-10-242-191-48.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"OK - load average: 0.12, 0.11, 0.08","last_hard_state_change":"1327362079","last_time_ok":"1327385479","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0"},
+		{"service_description":"MAPRED Current Users","host_name":"ip-10-242-191-48.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"USERS OK - 1 users currently logged in","last_hard_state_change":"1327362154","last_time_ok":"1327385554","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0"},
+		{"service_description":"PING","host_name":"ip-10-242-191-48.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"PING OK - Packet loss = 0%, RTA = 0.04 ms","last_hard_state_change":"1327362229","last_time_ok":"1327385629","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0"},
+		{"service_description":"Root Partition","host_name":"ip-10-242-191-48.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"DISK OK - free space: \/ 6605 MB (69% inode=88%):","last_hard_state_change":"1327362304","last_time_ok":"1327385704","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0"}]},
+		{"host_name":"ip-10-40-199-111.ec2.internal","last_hard_state":"1","last_hard_state":"0","plugin_output":"(Host Check Timed Out)","last_check":"1327385664","current_attempt":"2","last_hard_state_change":"1327383724","last_time_up":"1327385574","last_time_down":"1327385694","last_time_unreachable":"0","is_flapping":"0",
+			"alerts":[{"service_description":"DATANODE Total Processes","host_name":"ip-10-40-199-111.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"PROCS OK: 73 processes with STATE = RSZDT","last_hard_state_change":"1327362104","last_time_ok":"1327385504","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0"},
+		{"service_description":"Root Partition","host_name":"ip-10-40-199-111.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"DISK OK - free space: \/ 6605 MB (69% inode=88%):","last_hard_state_change":"1327362254","last_time_ok":"1327385654","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0"}]},
+		{"host_name":"ip-10-80-119-243.ec2.internal","last_hard_state":"0","last_hard_state":"0","plugin_output":"PING OK - Packet loss = 0%, RTA = 0.44 ms","last_check":"1327385464","current_attempt":"1","last_hard_state_change":"1327362129","last_time_up":"1327385474","last_time_down":"0","last_time_unreachable":"0","is_flapping":"0",
+			"alerts":[{"service_description":"DATANODE Total Processes","host_name":"ip-10-80-119-243.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"PROCS OK: 73 processes with STATE = RSZDT","last_hard_state_change":"1327362129","last_time_ok":"1327385529","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0"},
+		{"service_description":"PING","host_name":"ip-10-80-119-243.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"PING OK - Packet loss = 0%, RTA = 2.92 ms","last_hard_state_change":"1327362204","last_time_ok":"1327385604","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0"},{"service_description":"Root Partition",
+		"host_name":"ip-10-80-119-243.ec2.internal","current_attempt":"1","last_hard_state":"0","plugin_output":"DISK OK - free space: \/ 6605 MB (69% inode=88%):","last_hard_state_change":"1327362279","last_time_ok":"1327385679","last_time_warning":"0","last_time_unknown":"0","last_time_critical":"0","is_flapping":"0"}]}],
+"hostcounts":{"up_hosts":9,"down_hosts":0},
+"servicestates":{"HIVE-METASTORE":1,"ZOOKEEPER":0,"HBASE":"0","HDFS":"0","MAPREDUCE":"0"}
+}

Added: incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/clusterSummary.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/clusterSummary.json?rev=1406498&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/clusterSummary.json (added)
+++ incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/clusterSummary.json Wed Nov  7 08:49:58 2012
@@ -0,0 +1,119 @@
+{
+  "overall" : {
+     "dfs_configured_capacity": 1234546666,
+     "dfs_percent_used": 25,
+     "dfs_percent_remaining": 75,
+     "dfs_total_bytes": 36336891658240,
+     "dfs_used_bytes": 1750237184,
+     "nondfs_used_bytes": 331691536384,
+  	 "dfs_free_bytes": 36003449884672,
+     "live_nodes": 5,
+     "dead_nodes": 1,
+     "decommissioning_nodes": 1,
+     "dfs_blocks_underreplicated": 23,
+     "jobtracker_starttime": 1243236234,
+     "namenode_starttime": 1243234234,
+     "trackers_live": 4,
+     "trackers_blacklisted": 1,
+      "running_jobs": 10,
+      "waiting_jobs": 1,
+      "namenode_addr": "1.1.1.1:50070",
+      "jobtracker_addr": "2.2.2.2:50030",
+      "hbasemaster_addr": "3.3.3.3:60010",
+      "hbasemaster_starttime": 1243234234,
+      "live_regionservers": 4,
+      "dead_regionservers": 3,
+      "regions_in_transition_count": 3,
+      "ganglia_url": "http://gangliahost/ganglia",
+   	  "nagios_url": "http://nagioshost/nagios",
+      "hdfs_installed": true,
+      "mapreduce_installed": true,
+      "hbase_installed": true
+   },
+   "hdfs": {
+       "service_type": "HDFS",
+       "namenode_addr": "nnhost.amazon.seattle.firstserver.com:50070",
+       "total_nodes": 10,
+       "live_nodes": 8,
+       "dead_nodes": 1,
+       "decommissioning_nodes": 1,
+       "start_time": 23235351,
+       "pending_upgrades": false,
+       "version": "1.0.0, r12345",
+       "safemode": true,
+       "memory_heap_used": 1001312,
+       "memory_heap_max": 800212312,
+       "dfs_configured_capacity": 1234456545644,
+       "dfs_percent_used": 24,
+       "dfs_percent_remaining": 76,
+       "dfs_blocks_total": 100113,
+       "dfs_blocks_underreplicated": 0,
+       "dfs_blocks_missing": 0,
+       "dfs_blocks_corrupt": 0,
+       "dfs_dirfiles_count": 1045
+   },
+   "mapreduce": {
+        "service_type": "MAPREDUCE",
+        "jobtracker_addr": "jthost.amazon.seattle.firstserver.com:50069",
+        "jobhistory_addr": "jthost:51111",
+        "trackers_total": 10,
+        "trackers_live": 7,
+        "trackers_graylisted": 1,
+        "trackers_blacklisted": 1,
+        "trackers_excluded": 1,
+        "start_time": 23235351,
+        "version": "1.0.0, r12345",
+        "memory_heap_used": 10042424,
+        "memory_heap_max": 8003242420,
+        "map_task_capacity": 32,
+        "reduce_task_capacity": 8,
+        "average_node_capacity": 5,
+        "job_total_submissions": 6,
+        "job_total_completions": 3,
+        "running_map_tasks": 5,
+        "running_reduce_tasks": 5,
+        "occupied_map_slots": 3,
+        "occupied_reduce_slots": 4,
+        "reserved_map_slots": 3,
+        "reserved_reduce_slots": 5,
+        "waiting_maps": 3,
+        "waiting_reduces": 3,
+        "queue_info": {
+            "type": "capacity_scheduler",
+            "queues": [
+                {
+                    "default": {
+                        "capacity_percentage": 50,
+                        "user_limit": 100,
+                        "map_capacity": 2,
+                        "map_used_capacity": 1,
+                        "map_running_tasks": 1,
+                        "reduce_capacity": 2,
+                        "reduce_used_capacity": 1,
+                        "reduce_running_tasks": 1,
+                        "waiting_jobs": 1,
+                        "initializing_jobs": 1,
+                        "users_with_submitted_jobs": 1
+                    }
+                }
+            ]
+        }
+    },
+    "hbase": {
+        "version": "0.92.0",
+        "hbasemaster_addr": "1.1.1.1.amazon.seattle.com:60011",
+        "live_regionservers": 5,
+        "dead_regionservers": 1,
+        "regions_in_transition_count": 1,
+        "cluster_id": "ddd-ddd-dddd",
+        "zookeeper_quorum": [
+            "zkhost1: 2181",
+            "zkhost2: 2181"
+        ],
+        "start_time": 1327179894,
+        "active_time": 1327179894,
+        "average_load": 3,
+        "memory_heap_used":1004242423,
+        "memory_heap_max": 8003242423
+    }
+}
\ No newline at end of file

Added: incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/get_graph_info_all.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/get_graph_info_all.json?rev=1406498&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/get_graph_info_all.json (added)
+++ incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/get_graph_info_all.json Wed Nov  7 08:49:58 2012
@@ -0,0 +1,24 @@
+{
+    "Global": [
+        {
+            "description": "Key load metrics, aggregated across the entire grid", 
+            "title": "Load Report", 
+            "url": "http://10.10.10.114:80/ganglia2/graph.php?me=HDP&g=load_report"
+        }, 
+        {
+            "description": "Key memory metrics, aggregated across the entire grid", 
+            "title": "Memory Report", 
+            "url": "http://10.10.10.114:80/ganglia2/graph.php?me=HDP&g=mem_report"
+        }, 
+        {
+            "description": "Key CPU metrics, aggregated across the entire grid", 
+            "title": "CPU Report", 
+            "url": "http://10.10.10.114:80/ganglia2/graph.php?me=HDP&g=cpu_report"
+        }, 
+        {
+            "description": "Key network I/O metrics, aggregated across the entire grid", 
+            "title": "Network I/O Report", 
+            "url": "http://10.10.10.114:80/ganglia2/graph.php?me=HDP&g=network_report"
+        }
+    ] 
+}
\ No newline at end of file

Added: incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/hbaseSummary.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/hbaseSummary.json?rev=1406498&view=auto
==============================================================================
    (empty)

Added: incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/hdfsSummary.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/hdfsSummary.json?rev=1406498&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/hdfsSummary.json (added)
+++ incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/hdfsSummary.json Wed Nov  7 08:49:58 2012
@@ -0,0 +1,24 @@
+{
+    "hdfs": {
+        "service_type": "HDFS",
+        "namenode_addr": "nnhost:50070",
+        "total_nodes": 10,
+        "live_nodes": 8,
+        "dead_nodes": 1,
+        "decommissioned_nodes": 1,
+        "start_time": 23235351,
+        "pending_upgrades": false,
+        "version": "1.0.0, r1234555555555555555555555555555555555555333333333",
+        "safemode": false,
+        "memory_heap_committed": 100131233,
+        "memory_heap_total": 800212312,
+        "dfs_configured_capacity": 1234456545644,
+        "dfs_percent_used": 24,
+        "dfs_percent_remaining": 76,
+        "dfs_blocks_total": 100113,
+        "dfs_blocks_underreplicated": 0,
+        "dfs_blocks_missing": 0,
+        "dfs_blocks_corrupt": 0,
+        "dfs_dirfiles_count": 1045
+    }
+}
\ No newline at end of file

Added: incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/mrSummary.json
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/mrSummary.json?rev=1406498&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/mrSummary.json (added)
+++ incubator/ambari/branches/AMBARI-666/contrib/addons/test/ui/json/mrSummary.json Wed Nov  7 08:49:58 2012
@@ -0,0 +1,26 @@
+{
+    "mapreduce": {
+        "service_type": "MAPREDUCE",
+        "jobtracker_addr": "jthost:50030",
+        "trackers_total": 10,
+        "trackers_live": 7,
+        "trackers_graylisted": 1,
+        "trackers_blacklisted": 1,
+        "trackers_excluded": 1,
+        "start_time": 23235351,
+        "version": "1.0.0, r12345",
+        "memory_heap_committed": 1004242423,
+        "memory_heap_total": 8003242423,
+        "map_task_capacity": 32,
+        "reduce_task_capacity": 8,
+        "average_node_capacity": 5,
+        "job_total_submissions": 6,
+        "job_total_completions": 3,
+        "running_map_tasks": 5,
+        "running_reduce_tasks": 5,
+        "occupied map slots": 3,
+        "occupied reduce slots": 4,
+        "reserved map slots": 3,
+        "reserved reduce slots": 5
+    }
+}
\ No newline at end of file

Added: incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generateAll.sh
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generateAll.sh?rev=1406498&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generateAll.sh (added)
+++ incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generateAll.sh Wed Nov  7 08:49:58 2012
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+
+GRAPH_INFO_JSON_PATH="../../../src/dataServices/ganglia/graph_info";
+
+JSON_PRETTY_PRINT="python -mjson.tool"
+
+### WARNING: These PHP definitions have diverged from the actual JSON definitions
+###          (which I started to modify directly), so running the scripts below
+###          will result in data loss!
+
+### php ./generate_dashboard_json.php | ${JSON_PRETTY_PRINT} > ${GRAPH_INFO_JSON_PATH}/dashboard/all.json;
+### php ./generate_dashboard_hdp_json.php | ${JSON_PRETTY_PRINT} > ${GRAPH_INFO_JSON_PATH}/dashboard/custom/hdp.json;
+### php ./generate_mapreduce_json.php | ${JSON_PRETTY_PRINT} > ${GRAPH_INFO_JSON_PATH}/mapreduce/all.json;
+### php ./generate_mapreduce_hdp_json.php | ${JSON_PRETTY_PRINT} > ${GRAPH_INFO_JSON_PATH}/mapreduce/custom/hdp.json;
+### php ./generate_hdfs_json.php | ${JSON_PRETTY_PRINT} > ${GRAPH_INFO_JSON_PATH}/hdfs/all.json;
+### php ./generate_hdfs_hdp_json.php | ${JSON_PRETTY_PRINT} > ${GRAPH_INFO_JSON_PATH}/hdfs/custom/hdp.json;

Added: incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_dashboard_hdp_json.php
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_dashboard_hdp_json.php?rev=1406498&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_dashboard_hdp_json.php (added)
+++ incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_dashboard_hdp_json.php Wed Nov  7 08:49:58 2012
@@ -0,0 +1,66 @@
+<?php
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+
+$data = array
+  (
+     'Global' => array
+     (
+        array
+        (
+           'url' =>
+           'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%HDFSSlavesClusterName%&g=hdp_mon_hdfs_io_report',
+           'title' => 'HDFS I/O',
+           'description' => 'Bytes written to and read from HDFS, aggregated across all the DataNodes',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%NameNodeClusterName%'
+        ),
+        array
+        (
+           'url' =>
+           'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%JobTrackerClusterName%&g=hdp_mon_jobtracker_map_slot_report',
+           'title' => 'Map Slot Utilization',
+           'description' => 'Utilized Map slots (occupied + reserved) vs. Total Map slots',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%JobTrackerClusterName%'
+        ),
+        array
+        (
+           'url' =>
+           'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%JobTrackerClusterName%&g=hdp_mon_jobtracker_reduce_slot_report',
+           'title' => 'Reduce Slot Utilization',
+           'description' => 'Utilized Reduce slots (occupied + reserved) vs. Total Reduce slots',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%JobTrackerClusterName%'
+        ),
+        array
+        (
+           'url' =>
+           'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%JobTrackerClusterName%&g=hdp_mon_jobtracker_mapreduce_report',
+           'title' => 'MapReduce Backlog',
+           'description' => 'Waiting Maps and Reduces, to give a feel for a combined MapReduce backlog',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%JobTrackerClusterName%'
+        )
+     )
+  );
+
+echo json_encode($data);
+
+?>
+

Added: incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_dashboard_json.php
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_dashboard_json.php?rev=1406498&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_dashboard_json.php (added)
+++ incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_dashboard_json.php Wed Nov  7 08:49:58 2012
@@ -0,0 +1,61 @@
+<?php
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+
+$data = array
+  (
+     'Global' => array
+     (
+        array
+        (
+           'url' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%GridSlavesClusterName%&g=load_report',
+           'title' => 'Load Report',
+           'description' => 'Key load metrics, aggregated across the slaves in the grid',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%GridSlavesClusterName%'
+        ),
+        array
+        (
+           'url' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%GridSlavesClusterName%&g=mem_report',
+           'title' => 'Memory Report',
+           'description' => 'Key memory metrics, aggregated across the slaves in the grid',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%GridSlavesClusterName%'
+        ),
+        array
+        (
+           'url' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%GridSlavesClusterName%&g=cpu_report',
+           'title' => 'CPU Report',
+           'description' => 'Key CPU metrics, aggregated across the slaves in the grid',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%GridSlavesClusterName%'
+        ),
+        array
+        (
+           'url' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%GridSlavesClusterName%&g=network_report',
+           'title' => 'Network I/O Report',
+           'description' => 'Key network I/O metrics, aggregated across the slaves in the grid',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%GridSlavesClusterName%'
+        )
+     )
+  );
+
+echo json_encode($data);
+
+?>

Added: incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_hdfs_hdp_json.php
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_hdfs_hdp_json.php?rev=1406498&view=auto
==============================================================================
--- incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_hdfs_hdp_json.php (added)
+++ incubator/ambari/branches/AMBARI-666/contrib/addons/utils/dataServices/ganglia/generate_hdfs_hdp_json.php Wed Nov  7 08:49:58 2012
@@ -0,0 +1,66 @@
+<?php
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+
+$data = array
+  (
+     'Global' => array
+     (
+        array
+        (
+           'url' =>
+           'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%HDFSSlavesClusterName%&g=hdp_mon_hdfs_io_report',
+           'title' => 'HDFS I/O',
+           'description' => 'Bytes written to and read from HDFS, aggregated across all the DataNodes',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%NameNodeClusterName%'
+        ),
+        array
+        (
+           'url' =>
+           'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%NameNodeClusterName%&g=hdp_mon_hdfs_ops_report',
+           'title' => 'NameNode Operation Counts',
+           'description' => 'Counts of key operations on the NameNode, to give a feel for the high-level HDFS activity pattern',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%NameNodeClusterName%'
+        ),
+        array
+        (
+           'url' =>
+           'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%NameNodeClusterName%&g=hdp_mon_jvm_gc_report',
+           'title' => 'NameNode: JVM Garbage Collection',
+           'description' => 'Key Garbage Collection stats for the NameNode\'s JVM',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%NameNodeClusterName%'
+        ),
+        array
+        (
+           'url' =>
+           'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/graph.php?c=%NameNodeClusterName%&g=hdp_mon_rpc_latency_report',
+           'title' => 'NameNode: RPC Average Latencies',
+           'description' => 'Average latencies for processing and queue times on the NameNode, to give a feel for potential performance bottlenecks',
+           'link' => 'http://%GangliaWebHostName%:%GangliaWebPort%/ganglia/?c=%NameNodeClusterName%'
+        )
+     )
+  );
+
+echo json_encode($data);
+
+?>
+



Mime
View raw message