Load Monitoring script


#!/bin/bash
tech=$(cat /proc/loadavg | awk '{print $1}' | awk -F. '{print $1}')
if [ $tech -ge 50 ]
then
/bin/ps -ef | mail -s "imediatube server PROCESS report" aztest@gmail.com
/usr/bin/tail -n50 /var/log/{messages,dmesg} | mail -s "imediatube server
DMESG report" aztest@gmail.com
fi

Comments

Popular posts from this blog

KVM & Qemu

PHP Fatal error: Class 'JFactory' not found

docker.errors.APIError: 400 Client Error client is newer than server