<< Click to Display Table of Contents >> Navigation: Example > Scripts > Unix System Load Example |
Using the Script 'UnixSystemLoadExample.sh' it is possible to obtain information about the system load of 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:
CPU Load: 0.9
Memory (Total): 1997373440
Memory (Free): 244199424
Memory (Used): 1753174016
To obtain a specific value, regular expressions can be used.
For example, the CPU load can be obtained using the regular expression with an anonymous group:
CPU Load: (.*)