lk/system/monitoring.md
2024-11-26 15:59:24 +01:00

530 B

title tags
Monitoring
Documentation
System
CPU
Memory

Print the average CPU load over 1 minute, 5 minutes, and 15 minutes:

watch -d cat /proc/loadavg
stress="$(cat /proc/loadavg | awk '{print "Usage:" $2"%"}')"

Show memory usage in Gibitytes.

free -g

Show low and high gigibtye usage on a line, and repeat the measurement every 5 seconds:

REP=5
free --lohi -g -s $REP | lolcat

Check the next thing cron will do:

cronnext /var/spool/cron/$USER -l