Using the Script 'UnixDiskSpaceExample.sh' it is possible to obtain information about the disk space on a Unix based system.
An example on how to configure the Sensor can be found in the topic Scripts.
Executing the Script using the SSH Sensor will result in an output like this:
Mounted on: /
Space (Total): 5877882880
Space (Free): 545624064
Space (Used): 5332258816
To obtain a specific value, regular expressions can be used.
For example, the Mountpoint can be obtained using the regular expression with an anonymous group:
Mounted on: (.*)