Linux System Monitor Commands
Checking service/process
SERVICE=lighttpd
if ps ax | grep -v grep | grep $SERVICE > /dev/null; then echo -n "\"$SERVICE\" : \"running\","; else echo -n "\"$SERVICE\" : \"not running\","; fi
Checking disk usage
df -h --total
Checking memory
free -m
Checking uptime, load
uptime
Written on April 19, 2017