Comments (5)
按下面操作看看
1)在zabbix server上执行下面命令看看输出什么,正常是一带有JMX端口信息的JSON串:
zabbix_get -s YOUR_IP_OR_HOST -k "jmx.jvm.discovery"
2)到这台装有zabbix agent的主机上执行如下命令,看看输出是什么:
java -version && ps -ef | grep java | grep -v grep && netstat -nlpt
/usr/bin/java -jar /usr/local/zabbix/scripts/cmdline-jmxclient-0.10.3.jar - localhost:12345 java.lang:type=Memory NonHeapMemoryUsage
from zabbix.
之前用这种方式取值#zabbix_get -s 192.168.40.217 -k jmx.jvm.item[java.lang:type='Memory name=HeapMemoryUsage',committed,12345] 没有数据返回为空。
后来调整这种方式就有了#zabbix_get -s 192.168.40.217 -k jmx.jvm.item['java.lang:type=Memory','HeapMemoryUsage.committed',12345],不过不清楚为什么执行这条命令获取到数据后,日志文件中其它的也都有数据了,怪怪的。
from zabbix.
应该做了其他操作了吧,例如把日志文件权限调整了?
key名,你用zabbix_get测试的时候,最好看下模板中提供的key名,我做了优化的,如果还不明白,就看下源码,或者从日志中找到对应的cmdstr,手动执行看下效果,方法很多,了解原理和这么做的**,很简单。
from zabbix.
from zabbix.
执行命令的时候提示的是py脚本的错误
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
- 手动取值没问题,网页前端显示Timeout while executing a shell script HOT 3
- 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.