mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-12-15 10:26:44 +00:00
add zabbix-agent
This commit is contained in:
27
zabbix-agent/normal/README.md
Normal file
27
zabbix-agent/normal/README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
|
||||
```bash
|
||||
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
|
||||
|
||||
```bash
|
||||
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
|
||||
|
||||
```bash
|
||||
pkill dd
|
||||
```
|
||||
Reference in New Issue
Block a user