Dockerfiles/zabbix-agent/normal
2019-05-06 19:43:28 +08:00
..
bootstrap.sh add zabbix-agent 2019-05-06 19:43:28 +08:00
Dockerfile add zabbix-agent 2019-05-06 19:43:28 +08:00
README.md add zabbix-agent 2019-05-06 19:43:28 +08:00

docker service create \
	--name zabbix-agent-custom \
	--hostname="{{.Node.Hostname}}" \
	--network swarm-net \
	--detach=true \
	--env ZBX_HOSTNAME="{{.Node.Hostname}}" \
	--mode global\
	--env ZBX_SERVER_HOST=zabbix-server \
	--mount type=bind,source=/etc/localtime,target=/etc/localtime \
	newnius/zabbix-agent:normal

Boil CPU

for i in `seq 1 $(cat /proc/cpuinfo |grep "physical id" |wc -l)`; do dd if=/dev/zero of=/dev/null & done

Calm it down

pkill dd