What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Memory used instead of memory available

Votes:

0

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

channel memory sensor

Created on Feb 5, 2014 2:09:36 PM



Best Answer

Accepted Answer

Votes:

0

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.

Created on Feb 6, 2014 4:22:34 PM



6 Replies

Votes:

0

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?

Created on Feb 5, 2014 9:06:55 PM by  Greg Campion [Paessler Support]



Votes:

0

Windows servers - 2008 R2 mostly.

Created on Feb 5, 2014 9:49:30 PM



Accepted Answer

Votes:

0

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.

Created on Feb 6, 2014 4:22:34 PM



Votes:

0

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)

Created on Feb 6, 2014 4:45:48 PM by  Greg Campion [Paessler Support]



Votes:

0

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

Created on Aug 20, 2018 3:21:07 AM



Votes:

0

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.

Created on Aug 20, 2018 7:06:53 AM by  Dariusz Gorka [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.