saltstack实战4
# salt '*'cmd.run 'ps -ef | grep zabbix'minion01:
zabbix 24282 10 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 24284242820 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 24285242820 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 24286242820 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 24287242820 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 24288242820 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
root 24307243060 16:23 ? 00:00:00 /bin/sh -c ps -ef | grep zabbix
root 24309243070 16:23 ? 00:00:00 grep zabbix
minion02:
zabbix 18617 10 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 18618186170 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 18620186170 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 18621186170 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 18622186170 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
zabbix 18623186170 16:22 ? 00:00:00 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
root 18649186480 16:23 ? 00:00:00 /bin/sh -c ps -ef | grep zabbix
root 18651186490 16:23 ? 00:00:00 grep zabbix
# salt '*'cmd.run 'chkconfig --list zabbix-agent'
minion02:
zabbix-agent 0:off1:off2:on3:on4:on5:on6:off
minion01:
zabbix-agent 0:off1:off2:on3:on4:on5:on6:off
#
页:
[1]