/** * Global variables */ var monitorTabs; // Monitor tabs /** * Set the monitor tab * * @param o * Tab object * @return Nothing */ function setMonitorTab(o) { monitorTabs = o; } /** * Get the monitor tab * * @param Nothing * @return Tab object */ function getMonitorTab() { return monitorTabs; } /** * Load the monitor page * * @return Nothing */ function loadMonitorPage() { // If the page is already loaded if ($('#monitor_page').children().length) { // Do not reload the monitor page return; } // Create monitor tab var tab = new Tab(); setMonitorTab(tab); tab.init(); $('#content').append(tab.object()); var monitorForm = $('
'); monitorForm.append('Getting monitoring status ').append(createLoader()); tab.add('monitorTab', 'Monitor', monitorForm, false); // Get monitoring status of each tool $.ajax( { url : 'lib/cmd.php', dataType : 'json', data : { cmd : 'webrun', tgt : '', args : 'monls', msg : '' }, /** * Load monitoring status * * @param data * Data returned from HTTP request * @return Nothing */ success : function(data){ // Initialize status for each tool var monitorStatusHash = new Object(); monitorStatusHash['xcatmon'] = 'Not monitored'; monitorStatusHash['rmcmon'] = 'Not monitored'; monitorStatusHash['rmcevent'] = 'Not monitored'; monitorStatusHash['gangliamon'] = 'Not monitored'; if (data.rsp[0]) { var tempArray = data.rsp[0].split(';'); var position = 0; var name = ''; var status = ''; for ( var i in tempArray) { position = tempArray[i].indexOf(':'); if (position == -1) { continue; } name = tempArray[i].substr(0, position); status = tempArray[i].substr(position + 1); monitorStatusHash[name] = status; } } var monitorTable = 'Monitor Tool | Status | Description |
---|---|---|
xCAT Monitor | '; monitorTable += '' + monitorStatusHash['xcatmon'] + ' | '; monitorTable += 'Provides node status monitoring using fping on AIX and nmap on Linux. It also provides application status monitoring. The status and the appstatus columns of the nodelist table will be updated periodically with the latest status values for the nodes. |
RMC Monitor | '; monitorTable += '' + monitorStatusHash['rmcmon'] + ' | '; monitorTable += 'IBM\'s Resource Monitoring and Control (RMC) subsystem is our recommended software for monitoring xCAT clusters. It\'s is part of the IBM\'s Reliable Scalable Cluster Technology (RSCT) that provides a comprehensive clustering environment for AIX and LINUX. |
RMC Event | '; monitorTable += '' + monitorStatusHash['rmcevent'] + ' | '; monitorTable += 'Listing event monitoring information recorded by the RSCT Event Response resource manager in the audit log. Creating and removing a condition/response association. |
Ganglia Monitor | '; monitorTable += '' + monitorStatusHash['gangliamon'] + ' | '; monitorTable += 'A scalable distributed monitoring system for high-performance computing systems such as clusters and Grids. |
PCP Monitor | '; monitorTable += 'Not monitored | '; monitorTable += 'Under construction. |