OpenVZ Forum


Home » General » Support » Container stall leads to server hang
Re: Container stall leads to server hang [message #48744 is a reply to message #48743] Tue, 13 November 2012 15:27 Go to previous message
seanfulton is currently offline  seanfulton
Messages: 105
Registered: May 2007
Senior Member
FREE=`free -m | grep Mem | awk '{print $4}'`
if [ $FREE -lt 256 ] ; then
echo "ONLY $FREE RAM LEFT ON $HN" | mail -s "RAM SHORTAGE ON $HN" you@you.com
fi

Should work fine if you run it from cron every 5 minutes or so.

Or you could try munin (http://munin-monitoring.org/) which is a great way to monitor resource usage. Setting up alerts in munin is a bit complicated though.

sean
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CT starts in vz init, even if stopped before and disabled.
Next Topic: Gentoo template creation - stat(/vz/root/1001): No such file or directory
Goto Forum:
  


Current Time: Wed Oct 16 08:43:06 GMT 2024

Total time taken to generate the page: 0.05050 seconds