A script to check free RAM and reboot if it is less than a limit
################
#!/bin/bash
mem=$(free -mo | awk '/Mem/ { print $4 }')
if [ $mem -lt "410" ] ; then
echo "reboot"
fi
######################
Crontab to auto check
Danh mục
andoird
android
AP
arch linux
Aruba
Aruba switch
Asterisk
backup proxmox server
Centos
cisco
Cpanel
css
datacenter
docker
dyndns
Esxi
Firewall
haproxy
hassio
hestia
home assistant
Howto
html
HyperVM
jquery
lap trinh
lede
Librenms
Linux
linux terminal
mail
maketing
Microsoft
monitor
monitoring
mysql
mysql server
nagios
Network Device
networkmanager-openvpn
NFS share
nginx
Nortel
notify
Office
openfiler
openvpn gui
openwrt
pfsense
php
PHP-Mysql
phpmyadmin
powershell
program
Proxmox
proxmox server
remind
remmina
route
routine
scanner
SEO
shorewall
Simplecart
skype
SMS
snmp
Spanning Tree
spt
tips
ubuntu
unifi
vcenter
Virtual system
Vlan
VMPS
VMware
vsphere
Wccp
web
website
wifi
Windows
windows server
windows server 2012
windows server 2016
wordpress
xen
xenserver
xrdp
Bài viết quan tâm
-
Links: http://articles.techrepublic.com.com5100-10878_11-5994982.html?tag=rbxccnbtr1 Takeaway: Last time, David Davis reviewed the finer ...
-
Install GFS package: #aptitude install gfs-tools cman clvm Configure GFS cluster: (note: change name= and IPADDR= )
-
After reading all of this, and working it out, I thought it would be helpful to summarize what I learned. If there is a javascript error i...
-
Setup Xenserver từ source ISO bình thường. (link http://www.citrix.com/tv/#videos/103 hoặc http://www.citrix-tips.com/438/citrix-xenserver...
-
slmgr /ipk ххххх- ххххх – ххххх – ххххх – ххххх slmgr /skms [serverhere] or slmgr /skms [serverhere]:1688 slmgr /ato With [serverhere...
H74. Powered by Blogger.
Post a Comment
Post a Comment