Comments (3)
zabbix parsing 好像有问题, 不知道怎么解决。
以下是tomcat.conf:
UserParameter=jmx.tomcat.discovery,python /etc/zabbix/zabbix_agent_extend/scripts/tomcat.py --list 2>/dev/null
UserParameter=jmx.tomcat.item[*],python /etc/zabbix/zabbix_agent_extend/scripts/tomcat.py -d -b "$1" -k "$2" -p $3
手动取的时候没有问题,用zabbix-agent就有。
root@zabbix-client scripts]# sudo -u zabbix python tomcat.py -d -p 10001 -b "Catalina:type=GlobalRequestProcessor,name=http-nio-8080" -k requestCount
[2018-10-18 17:37:20] INFO
beanstr: Catalina:type=GlobalRequestProcessor,name=http-nio-8080
lst_beanstr: Catalina:type=GlobalRequestProcessor,name="http-nio-8080"
key: requestCount
cmdstr: /bin/java -jar /etc/zabbix/zabbix_agent_extend/scripts/cmdline-jmxclient-0.10.3.jar - localhost:10001 'Catalina:type=GlobalRequestProcessor,name="http-nio-8080"' 'requestCount'
stdo:
stde: 10/18/2018 17:37:19 +0800 org.archive.jmx.Client requestCount: 46
retcode: 0
46
[root@zabbix-server classes]# zabbix_get -s 10.0.7.168 -k jmx.tomcat.item["Catalina:type=ThreadPool,name=http-nio-8080","currentThreadCount",10001]
Usage: tomcat.py [options]
Get Tomcat Stat
tomcat.py: error: option -p: invalid integer value: 'currentThreadCount'
from zabbix.
tomat监控,手动执行脚本会有点问题,最好是通过zabbix自动执行,然后看日志确定问题
from zabbix.
谢谢回复,zabbix自动执行有问题才来看的手动执行的呢,手动执行脚本没问题~
from zabbix.
Related Issues (20)
- 您好,请问这个key是不是没有呢? HOT 4
- NGINX监控无返回值:python nginx.py -p 80 -k accepts HOT 3
- python nginx.py -p 80 -k accepts无法获取值 HOT 1
- memcache.py中的slog在哪?
- redis连接逻辑问题 HOT 1
- tomcatde 不用自动发现 HOT 6
- nginx监控关于配置文件 HOT 1
- tomcat监控无法读取数据 HOT 3
- zabbix 监控mysql的python脚本。 都有问题,都没法执行。 你到底有没有测试这些脚本??? HOT 4
- Can not get the item of "Tomcat version"
- zabbix服务端与agentld 端都安装好了,前端页面显示不正常 HOT 1
- 咨询下tomcat问题 HOT 6
- 4.x版本导入模板失败
- jvm可以自动发现但是key获取不到值,手动再agent执行py有结果
- 你好大神!请教个问题
- zabbix服务器端获取不了数据,请帮忙看看,谢谢。
- Cannot accurately apply filter: no value received for macro "{#BIZPORT}".
- mongodb副本集监控在json.loads()出错
- jvm模板导入没有监控项
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zabbix.