diff --git a/README.md b/README.md index 970bd40..51ae855 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ Benchmarking and stress testing tool for the Zabbix server +## Populate data + +Run `./generate-template-metrics.sh > template.xml` and upload template with metrics. +Run `./generate-template-clients.sh > clients.xml` and upload template with clients. + +## Run benchmark + ```bash Usage of zabbix-bench: -client int diff --git a/generate-template-clients.sh b/generate-template-clients.sh new file mode 100644 index 0000000..d9f2a2a --- /dev/null +++ b/generate-template-clients.sh @@ -0,0 +1,71 @@ +#!/usr/bin/env bash + +TEMPLATE_NAME="zabbix-bench" +GROUP_NAME="Linux servers" +CLIENT_PREFIX="client" +CLIENTS=200 + +echo " + + 3.0 + 2016-11-14T15:56:40Z + + + ${GROUP_NAME} + + + " + +for I in $(seq 1 1 $CLIENTS) +do + echo " + + $CLIENT_PREFIX-$I + $CLIENT_PREFIX-$I + + + 0 + -1 + 2 + + + 1 + 1 + + + + + + + + + + ${GROUP_NAME} + + + + + 1 + 1 + 1 + 127.0.0.1 + + 10050 + 1 + if1 + + + + + + + + " +done + +echo " + + +" diff --git a/generate-template-metrics.sh b/generate-template-metrics.sh new file mode 100644 index 0000000..b1b0e20 --- /dev/null +++ b/generate-template-metrics.sh @@ -0,0 +1,96 @@ +#!/usr/bin/env bash + +TEMPLATE_NAME="zabbix-bench" +APPLICATION_NAME="zabbix-bench" +METRIC_PREFIX="metric" +METRICS=200 + +echo " + + 3.0 + 2016-11-14T15:57:58Z + + + Linux servers + + + Templates + + + + + + +"