1、在salt-master端开启

# vim /etc/salt/master

nodegroups:


   zxgroup: 'L@admin-master-zxtest,admin-slave-zxtest,api-master-zxtest,api-slave-zxtest,lsf-master-zxtest,lsf-slave-zxtest,service-master-zxtest,service-slave-zxtest,static-master-zxtest,static-slave-zxtest,thread-master-zxtest,thread-slave-zxtest'

注意:L@需要要有的格式,后面接各分组IP的ip或者主机名


2、检查各minion的资源情况

# salt -N zxgroup cmd.run 'free -m'

# salt -N zxgroup cmd.run 'uptime'

# salt -N zxgroup cmd.run 'df -h'