添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Dear Forum,
I'm trying to set up JMX monitor using JMX plugin. After installing the plugin I m trying to run this script and I see the below error. Is this error because of an invalid port ? or Anything else that needs to be checked? Please advise
# ./check_alfresco -U service:jmx:rmi:///jndi/rmi://<JMX Server IP>:7091/jmxrmi -O java.lang:type=Memory -A HeapMemoryUsage -K used -I HeapMemoryUsage -J used -vvvv -w 4248302272 -c 5498760192
JMX CRITICAL Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: <JMX Server IP>; nested exception is: java.net.ConnectException: Connection refused] connecting to java.lang:type=Memory by URL service:jmx:rmi:///jndi/rmi://<JMX Server IP>:7091/jmxrmijava.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: <JMX Server IP>; nested exception is: java.net.ConnectException: Connection refused] at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:380) at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:280) at org.nagios.JMXQuery.connect(JMXQuery.java:60) at org.nagios.JMXQuery.main(JMXQuery.java:82) Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: <JMX Server IP>; nested exception is: java.net.ConnectException: Connection refused] at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:131) at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:216) at javax.naming.InitialContext.lookup(InitialContext.java:423) at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1940) at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1907) at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:297) ... 3 more Caused by: java.rmi.ConnectException: Connection refused to host: <JMX Server IP>; nested exception is: java.net.ConnectException: Connection refused at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:632) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:229) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:215) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:354) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:127) ... 8 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:370) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:231) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:213) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:404) at java.net.Socket.connect(Socket.java:643) at java.net.Socket.connect(Socket.java:590) at java.net.Socket.<init>(Socket.java:454) at java.net.Socket.<init>(Socket.java:234) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:53) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:160) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:626) ... 13 more |more;;;
Regards,
Sundar
  • Community Support Forums For Nagios Commercial Products
  • ↳   Nagios XI
  • ↳   Nagios Log Server
  • ↳   Nagios Network Analyzer
  • ↳   Nagios Fusion
  • ↳   Development on Github
  • ↳   Nagios Core
  • ↳   Nagios Plugins
  • ↳   NCPA
  • Community Support Forums For Nagios Open Source Projects
  • ↳   Open Source Nagios Projects
  •