CPU Load shows CPU used - high is bad. Memory shows Memory available - high is good.

Is there a way to create a sensor or channel for Memory used (high is bad)?

Thanks in advance - JD


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

There aren't any memory sensors that are able to do this natively in PRTG but it would be possible to do this with a custom SNMP or WMI sensor possibly. What type of server are you looking to monitor?


Feb, 2014 - Permalink

Windows servers - 2008 R2 mostly.


Feb, 2014 - Permalink

I think I have a method for getting percentage used by creating a Sensor Factory sensor.

I've created a custom sensor that uses the percentage available memory channel from the physical memory sensor.

Channel Definition: #1:Percentage Used Memory 100 - Channel(3901,0)

Where 3901 is the ID of the physical memory sensor and 0 is the ID of the percentage available memory channel.


Feb, 2014 - Permalink

You should be able to see the available memory with this script in Powershell:

#For this sensor you will need to put in the server name or IP into the parameters to fill in the $args[0]

$computer= $args[0]
$availmem = Get-wmiObject -class Win32_PerfFormattedData_PerfOS_Memory -computername $computer -namespace root\CIMV2 | select-object -expand AvailableKBytes
$availmem = ($availmem * 1024)
$totalmem = Get-wmiObject -class Win32_PhysicalMemory -computername $computer -namespace root\CIMV2 | select-object -expand Capacity
$usedmem = ($totalmem | Measure-Object -SUM).Sum
$usedmem = (($usedmem-$availmem)/ 1073741824) -as [single]
#write-host = $usedmem ":" $usedmem "GB Used"
write-host ("{0}:{0} GB Used" -f $usedmem)


Feb, 2014 - Permalink

HI,

I have done as per above to get the memory utilization, but my max utilization shows a value of 863998100%. I can't find any settings to make that 100%. Any ideas ? Thanks

https://imgur.com/a/fTouo6U


Aug, 2018 - Permalink

Hi there,

Please enable the spike filter in the channel settings of the "Memory Utilization" as described here:
https://blog.paessler.com/how-to-filter-spikes-from-graphs-in-prtg

Best regards.


Aug, 2018 - Permalink