Example #1
0
        private string GetOSName(string monitoredSystemName)
        {
            var name = clusterConnection.GetSysinfo(monitoredSystemName, "OS Name").Split(' ')[0];

            name = Regex.Replace(name, @"\s+", " ");
            return(name);
        }
Example #2
0
        private int GetTotalCapacity(string monitoredSystemName)
        {
            double CapacityBytes = Convert.ToInt64(clusterConnection.GetSysinfo(monitoredSystemName, "Total Disk Space").Split(' ')[0]);

            return((int)Math.Round(CapacityBytes / (1024.0 * 1024.0)));
        }
Example #3
0
        private int GetSwapInMB(string monitoredSystemName)
        {
            double SwapSize = Convert.ToDouble(clusterConnection.GetSysinfo(monitoredSystemName, "Swap Memory").Split(' ')[0], new CultureInfo("en-US"));

            return((int)Math.Round(SwapSize / (1024.0 * 1024.0)));
        }
Example #4
0
 private int GetNumberOfCores(string monitoredSystemName)
 {
     return(Convert.ToInt32(clusterConnection.GetSysinfo(monitoredSystemName, "Number of Cores")));
 }