Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jvm和tomcat监控的问题 #34

Open
huangxin121 opened this issue Feb 9, 2018 · 1 comment
Open

jvm和tomcat监控的问题 #34

huangxin121 opened this issue Feb 9, 2018 · 1 comment

Comments

@huangxin121
Copy link

huangxin121 commented Feb 9, 2018

1.队列延迟非常高.我这边实例是单机有四五个实例,目前只监控了五台服务器。最后发现,会导致所有被动式的监控普遍延迟达到2-3分钟。严重影响监控。
我现在的处理方法是,停止了部分并不是必要的监控,比方说是否开启gzip的item
考虑后期有空的时候吧被动式改为agent主动式监控。应该能解决问题

@huangxin121
Copy link
Author

另外,再加一个基于作者自动发现端口功能的端口active监控
agent.conf:
UserParameter=jmx.tomcat.status[*],/bin/sh /usr/local/zabbix/lib/jvm/active_tomcat.sh "$1"

脚本 :
cat /usr/local/zabbix/lib/jvm/active_tomcat.sh
#!/bin/bash
Active=ss -lntp |grep -o $1 |wc -l
echo $Active

item:
jmx.tomcat.status[{#BIZPORT}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant