在我目前的项目中,我们使用jmeter进行性能测试。为了监控服务器端指标,我们计划使用zabbix。我们尝试使用jmeter附带的perfmon指标收集器插件,但无法在无头执行模式下捕获图形结果。作为zabbix的新手,我想知道集成zabbix和jmeter.Thanks的步骤以获得帮助
发布于 2015-09-22 05:24:34
Two ways to do that.
1- Client Side
a) Write a script to execute your jmeter tests
b) Make your way to execute this script periodically (cron(linux) or Scheduler(Windows))
c) use the zabbix_sender (CLI) that comes with zabbix agent to send the data to Zabbix server.
2 - Server side (I prefer this way)
a) Write a script to execute your jmeter tests
b) Configure this script on the agentd configurarion file like this
UserParameter=jmeter_stats[*], /etc/my_script_folder/jmeter_stats.py $1
jmeter_stats.py = Your script to execute jmeter tests
$1 = Parameters (if you have any)
jmeter_stats[*] = The Key you will configure on Zabbix
c) Create a new item on Zabbix server with type zabbix_agent and key jmeter_stat
key:jmeter_stats[you_script_parameter_here]https://stackoverflow.com/questions/32655783
复制相似问题