diff --git a/Org.BeyondComputing.NewRelic.Brocade.VTM.v12.suo b/Org.BeyondComputing.NewRelic.Brocade.VTM.v12.suo index 4ae3795..540e89c 100644 Binary files a/Org.BeyondComputing.NewRelic.Brocade.VTM.v12.suo and b/Org.BeyondComputing.NewRelic.Brocade.VTM.v12.suo differ diff --git a/VTMAgent.cs b/VTMAgent.cs index 2bb1334..7cb6d4a 100644 --- a/VTMAgent.cs +++ b/VTMAgent.cs @@ -73,10 +73,14 @@ private void PollGlobal() // Get Global Statistics and report to New Relic GlobalStatistics globalStats = VTM.fetchGlobalStats(); + + // Calculate System Memory Percent Used + float systemMemoryPercentUsed = (((float)globalStats.sys_mem_in_use) / (globalStats.sys_mem_total))*100; + ReportMetric("global/bytes_in", "bytes/sec", processors["global_bytes_in"].Process(globalStats.total_bytes_in)); ReportMetric("global/bytes_out", "bytes/sec", processors["global_bytes_out"].Process(globalStats.total_bytes_out)); ReportMetric("global/current_conn", "connections", globalStats.total_current_conn); - ReportMetric("global/sys_mem_used", "percent", ((globalStats.sys_mem_in_use/globalStats.sys_mem_total)*100)); + ReportMetric("global/sys_mem_used", "percent",systemMemoryPercentUsed); ReportMetric("global/sys_cpu_busy_percent", "percent", globalStats.sys_cpu_busy_percent); } catch