We have a problem regarding the memory monitor. In the PA console we see that memory only is at 50% usage, but when we look at the actual server(mail server), the memory is at 90% constant.

Does anyone know something about this?

asked 14 Oct '16, 09:48

Petert's gravatar image

Petert
1324
accept rate: 0%


Please send your screenshots to support@poweramdin.com and I'll take a look at them.

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 17 Oct '16, 10:18

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

Unfortunately the performance counters from Windows don't actually expose the same data that task manager uses. The memory performance counters we get from Windows we get are the total memory available (which includes the swap space), while task manager's are based on RAM usage not total available memory.

We have written a Powershell Execute Script monitor that's being used by another customer to show the same numbers that task manager is giving, I've included it below if you want to use it yourself:

Start of Code

#Change this to the percentage RAM use that should trigger the actions $action_threshold = 90

$free = (Get-WmiObject -Class Win32_operatingSystem -Namespace "rootcimv2" -Computer $mon.ComputerName).FreePhysicalMemory $total = (Get-WmiObject -Class Win32_operatingSystem -Namespace "rootcimv2" -Computer $mon.ComputerName).TotalVisibleMemorySize

$server = (Get-WmiObject -Class Win32_computersystem -Namespace "rootcimv2" -Computer $mon.ComputerName).DNSHostName

$used = $total - $free $percentage = $used / $total * 100

$mon.FireActions = ($percentage -gt $action_threshold) $display_percentage=[math]::round($percentage, 1) $display_total_gb = [math]::round($total / 1024 / 1024, 2) if ($mon.FireActions) { $mon.Details = "RAM usage (" + $display_percentage+ "%) of " + $display_total_gb + "GB on " + $server + " above " + $action_threshold + "% threshold" $mon.SetMonitorStatus($mon.msAlert) } else { $mon.Details = "RAM usage (" + $display_percentage + "%) of " + $display_total_gb + "GB on " + $server + " below " + $action_threshold + "% threshold" } $usedStatID = $mon.GetStatID("RAM/used") $usedGbStatID = $mon.GetStatID("RAM/GB used") $mon.RecordStat($usedStatID, $used) $mon.RecordStat($usedGbStatID, $used /1024 /1024)

$totalStatID = $mon.GetStatID("RAM/total") $totalGbStatID = $mon.GetStatID("RAM/GB total") $mon.RecordStat($totalStatID, $total) $mon.RecordStat($totalGbStatID, $total / 1024 / 1024)

$display_percentageStatID = $mon.GetStatID("RAM/percentage") $mon.RecordStat($display_percentageStatID, $display_percentage)

End of Code

To add a chart for the RAM usage to your server status report:

  1. Right click on the server that you want to add the chart to and select "Report & Delivery Settings >> Report Settings..." (to add it to an entire group right click the group and select "Report Settings >> Server Settings...")
  2. Double click on the Charts report section
  3. Drag "Custom Script Value" over to the left column to add a chart
  4. Set the Display period and summary options you want for the chart
  5. Set the Unit to GB
  6. Choose Display Line
  7. Choose Green as the Line Color
  8. Set the Source Item Filter to "RAM/GB Used" (without the quotes)
  9. Set the Combining Tag to "RAMGB" (again without quotes)
  10. Click OK
  11. Repeat steps 3 through 10 but with a line color of Red and a Source Item Filter of "RAM/GB Total"

This chart will show you a red line for the total RAM in the server and a green line for it's current usage.

If you'd prefer a percentage display like the existing chart do steps 1 through 4 above then:

  1. Set the Unit to %
  2. Set display to Bar and Line
  3. Set Source Item Filter to "RAM/percentage"
  4. Click OK

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 08 Nov '16, 13:51

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

I want to clear things up by uploading a screenshot but I dont have karma?

link

answered 17 Oct '16, 09:57

Petert's gravatar image

Petert
1324
accept rate: 0%

Thanks, I have send support an email.

Kind Regars,, Peter

link

answered 18 Oct '16, 09:00

Petert's gravatar image

Petert
1324
accept rate: 0%

This question is solved by support

link

answered 28 Oct '16, 09:25

Petert's gravatar image

Petert
1324
accept rate: 0%

What was the solution to your issue?

link

answered 08 Nov '16, 13:04

TheSemicolon's gravatar image

TheSemicolon
33810
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×46
×8

Asked: 14 Oct '16, 09:48

Seen: 8,127 times

Last updated: 08 Nov '16, 13:51