- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我已经在同一个 linux 服务器上安装了 zabbix server 和 java gateway 并启动了 zabbix-server 和 zabbix-java-gateway 服务。 OS为CentOS 6.5,java为JDK1.6.0_45,IP为192.98.12.240,zabbix server和zabbix java gateway版本为2.2.9。我已经停止了 iptables 服务。
然后在zabbix web控制台,我添加了一个启用了jmx接口(interface)的主机。我的主机 IP 是 192.98.12.198,JMX post 是 9999。在 Jconsole 中,我可以连接到这个启用 JMX 的 java 应用程序。但是在 zabbix web console 中,它显示错误:
下面是我的zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.log
LogFileSize=0
DebugLevel=4
PidFile=/var/run/zabbix/zabbix_server.pid
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
DBSocket=/var/lib/mysql/mysql.sock
JavaGateway=192.98.12.240
JavaGatewayPort=10052
StartJavaPollers=5
SNMPTrapperFile=/var/log/snmptt/snmptt.log
AlertScriptsPath=/usr/lib/zabbix/alertscripts
ExternalScripts=/usr/lib/zabbix/externalscripts
下面是我的zabbix_java_gateway.conf
LISTEN_IP=192.98.12.240
LISTEN_PORT=10052
PID_FILE="/var/run/zabbix/zabbix_java.pid"
START_POLLERS=5
下面是zabbix_server.log的一些片段
13573:20150321:100114.503 In substitute_key_macros() data:'jmx[java.lang:type=Memory,HeapMemoryUsage.used]'
13573:20150321:100114.503 End of substitute_key_macros():SUCCEED data:'jmx[java.lang:type=Memory,HeapMemoryUsage.used]'
13573:20150321:100114.503 In substitute_simple_macros() data:'9999'
13573:20150321:100114.503 In substitute_simple_macros() data:EMPTY
13573:20150321:100114.503 In substitute_simple_macros() data:EMPTY
13573:20150321:100114.503 In get_values_java() host:'myhost' addr:'192.98.12.198' num:1
13573:20150321:100114.503 getting Java values failed: cannot connect to [[192.98.12.240]:10052]: [13] Permission denied
13573:20150321:100114.503 End of get_values_java()
13573:20150321:100114.503 In deactivate_host() hostid:10106 itemid:23899 type:16
13573:20150321:100114.503 query [txnlev:1] [begin;]
13573:20150321:100114.503 query [txnlev:1] [update hosts set jmx_disable_until=1426903334,jmx_error='cannot connect to [[192.98.12.240]:10052]: [13] Permission denied' where hostid=10106]
13573:20150321:100114.504 query [txnlev:1] [commit;]
13573:20150321:100114.526 deactivate_host() errors_from:1426901309 available:2
13573:20150321:100114.526 End of deactivate_host()
13573:20150321:100114.526 End of get_values():1
下面是我的zabbix_java_gateway.log
2015-03-21 10:54:29.078 [main] INFO com.zabbix.gateway.JavaGateway - Zabbix Java Gateway 2.2.9 (revision 52686) has started
2015-03-21 10:54:29.086 [main] DEBUG c.z.gateway.ConfigurationManager - starting to parse configuration parameters
2015-03-21 10:54:29.086 [main] DEBUG c.z.gateway.ConfigurationManager - found pidFile configuration parameter with value '/var/run/zabbix/zabbix_java.pid'
2015-03-21 10:54:29.087 [main] DEBUG c.z.gateway.ConfigurationManager - received pidFile configuration parameter, daemonizing
2015-03-21 10:54:29.088 [main] DEBUG c.z.gateway.ConfigurationManager - found listenIP configuration parameter with value '192.98.12.240'
2015-03-21 10:54:29.089 [main] DEBUG c.z.gateway.ConfigurationManager - found listenPort configuration parameter with value '10052'
2015-03-21 10:54:29.089 [main] DEBUG c.z.gateway.ConfigurationManager - found startPollers configuration parameter with value '5'
2015-03-21 10:54:29.089 [main] DEBUG c.z.gateway.ConfigurationManager - finished parsing configuration parameters
2015-03-21 10:54:29.092 [main] INFO com.zabbix.gateway.JavaGateway - listening on /192.98.12.240:10052
2015-03-21 10:54:29.097 [main] DEBUG com.zabbix.gateway.JavaGateway - created a thread pool of 5 pollers
请帮忙,谢谢。
ps:我把zabbix_server.conf里面的JavaGateway改成了localhost或者127.0.0.1,也没用。
最佳答案
# Modify zabbix_server.conf
JavaGateway=127.0.0.1
# Modify zabbix_java_gateway.conf
LISTEN_IP=127.0.0.1
# Restart Services
service zabbix-server restart
service zabbix-java-gateway restart
注意:确保 SELinux 或 iptables 没有阻止请求。
关于java - zabbix服务器无法连接到java网关,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29178664/
我正在监视某些 FreeIPA 服务器,这些服务器通常 fork 300 覆盖我专门为同样继承“Template OS Linux”和“Template IPA Servers”的此类服务器创建的另一
我正在尝试设置 zabbix 代理。我的网络如下 Zabbix服务器IP:192.168.101.11(内网)Zabbix代理服务器:192.168.102.109(内网)Zabbix 代理:172.
操作系统:Debian10 应用程序:Zabbix4.0 安装的应用程序:Mariadb、Apache2、php 在 mysql 中输入此命令后,出现此错误。 create database zabb
我正在尝试测试 ZABBIX 的 IBM MQ 模块,所有代码都发布在 the ZABBIX share ,但是由于我是新手并且没有解释的步骤来做到这一点,所以我被卡住了。 所以我正在使用 ZABBI
This question already has answers here: PHP parse/syntax errors; and how to solve them (18个回答) 2年前关闭
我已经在 ubuntu 14.0 上成功安装了 Zabbix 3.2 服务器主机上的 Z 是绿色的。不幸的是,JMX 是红色的。 Zabbix 服务器:192.168.1.112 带有 tomcat
使用 Zabbix,如果某个项目无法访问(例如“ZBX_NOTSUPPORTED”或当 zabbix 代理无法提供预期的项目格式时跟踪到的任何错误),我如何触发警报? 目标是防止主机在检索项目数据时静
Closed. This question needs to be more focused。它当前不接受答案。 想改善这个问题吗?更新问题,使其仅关注editing this post的一个问题。
来自 Zabbix 手册计算的项目表达式遵循以下形式, func(|,,,...) 这对于在单个项目上使用函数进行计算非常有用,例如, max("temp1",120) 像 min() 这样的函数应该
zabbix部署文档 zabbix部署完之后 zabbix-agent操作 1.监控mysql,首先要先安装mysql ?
1、安装包下载 下载地址:https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/ 2、安装
在使用zabbix自定义脚本采集监控数据的时候,通常会遇到以下一些问题: 服务器扩容之后,监控脚本如何部署到新的服务器上? 监控脚本需要修改时,如何自动修改所有相同的监控脚本?
以zabbix自身的WEB界面为例配置web监测 环境:zabbix4.2.8 1、路径:配置――主机――选择‘WEB监测",点击右上角‘创建WEB场景" 2、填写
背景信息 最近在重新看一些关于windows 性能的书籍,对于我这样一个原来使用SCOM监控的懒人来说,Zabbix 上自带的windows OS template 的模板实在是不够用,因为之前S
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题? Update the question所以它是on-topic对于堆栈溢出。 9年前关闭。 Improve this que
大 Zabbix 粉丝在这里,对细节不熟悉。 我有一个在我的远程桌面服务器上运行的脚本,它使用当前的 TS session 写入一个文件。 Zabbix 依次读取这个文件,有 2 种不同的方式; 1、
17460:20220531:100735.556 using configuration file: /etc/zabbix/zabbix_server.conf 17460:20220531:1
再会。使用 net.if.in 和 net.if.out 键,我得到通过网络接口(interface)传输的总字节数。如果我将值存储为增量,我将获得每秒的速度。有没有办法获得每天和每周传输的数据量?先
我使用 Zabbix 作为我的 Linux 监控解决方案。 它显示 MySQL - The buffer pool utilization is less than 50% in the last 5
我想从我所有运行 zabbix agent 的服务器 ping 一个外部 ip。 我搜索并找到了一些关于zabbix用户参数的文章。在 /etc/zabbix/zabbix_agentd.conf.d
我是一名优秀的程序员,十分优秀!