Tuesday, July 11, 2017

GenMon That Load & RAM Usage


And yet another genmon little use...
Two small scripts that add the load and RAM usage on the XFCE Panel.

Get Load:
#!/bin/bash
cat /proc/loadavg | awk '{print $1}'

Get RAM:
#!/bin/bash
free -m | awk 'NR==2{printf "RAM: %s/%sMB %.2f%%\n", $3,$2,$3*100/$2 }'| cut -d " " -f3

Save those as a separate script, and then invoke each one of them from a separate instance of Gen Mon on the Panel, with a value of 2 for the Period.

Labels: , , , , , , , ,

0 Comments:

Post a Comment

<< Home