##查看剩余内存容量:
[root@zabbix-agent ~]# free -h |awk '/Mem/{print $4}'
290M
##查看根分区的利用率(磁盘利用率)
[root@zabbix-agent ~]# df -h / |awk '/\//{print $5}'
13%
[root@zabbix-agent ~]# df -h |awk '/\/$/{print $5}'
13%
标签:13%,zabbix,agent,系统监控,awk,监控,linux,print,root From: https://www.cnblogs.com/cherishthepresent/p/17848236.html