
Just to add my 2 cents after opening a support case with PRTG.

Totalusedperc=`echo $used $buffers $cache $total $swused $swtotal | \Īwk ''` Physicalfreebytes=`echo $used $buffers $cache $total | \ Please use the updated script instead: #!/bin/bash Thanks to Jim for letting us know that there was a bug in the script. Physical Free (in KByte, MByte, GByte or TByte, depending on your device-setting 'Channel Unit Configuration) After that you can add it in PRTG as a new 'SSH Script Advanced'-Sensor and select the sensor from the 'Script'-dropdown. This sensor is not supported by your system, missing $procĪnd make it executable ('chmod +x'). Totalfreebytes=`echo $used $buffers $cache | \ Please create a file on your linux-box in the path /var/prtg/scriptsxml/.sh with the following content #!/bin/bash Thanks! :)įor this you can use our 'SSH Script Advanced'-Sensor.Īs an example you can use a example-script: Note that it requires psutil, install it via pip install psutil.


Totalfree = (swap.total + memory.total) - (ed + ed) Totalusedpercent = float(ed + ed) / (swap.total + memory.total) Since the bash script is a bit prone to errors, as it parses the output of free instead of using some nice objects that resemble the memory, the following python might work for you, although I'm unsure about the calculation, maybe you can verify? Here goes: #!/usr/bin/env python2
