Created
June 4, 2014 15:49
-
-
Save itxx00/b23f5f22d36f04b8dc2b to your computer and use it in GitHub Desktop.
zabbix tomcat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \ | |
-Dcom.sun.management.jmxremote.ssl=false \ | |
-Dcom.sun.management.jmxremote.authenticate=false" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
iptables -A INPUT -i lo -j ACCEPT | |
iptables -A INPUT -s 10.0.0.110/32 -p tcp -m tcp --dport 12345 -m state --state NEW -j ACCEPT | |
iptables -A INPUT -s 10.0.0.110/32 -p tcp -m tcp --dport 12346 -m state --state NEW -j ACCEPT | |
iptables -A INPUT -j REJECT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception in thread "main" java.rmi.ConnectIOException: Exception creating connection to: 10.0.0.2; nested exception is: | |
java.net.NoRouteToHostException: No route to host | |
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:631) | |
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216) | |
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202) | |
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:129) | |
at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source) | |
at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2392) | |
at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:308) | |
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268) | |
at org.archive.jmx.Client.execute(Client.java:225) | |
at org.archive.jmx.Client.main(Client.java:154) | |
Caused by: java.net.NoRouteToHostException: No route to host | |
at java.net.PlainSocketImpl.socketConnect(Native Method) | |
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339) | |
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200) | |
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182) | |
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) | |
at java.net.Socket.connect(Socket.java:579) | |
at java.net.Socket.connect(Socket.java:528) | |
at java.net.Socket.<init>(Socket.java:425) | |
at java.net.Socket.<init>(Socket.java:208) | |
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40) | |
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147) | |
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613) | |
... 9 more |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Listener className="org.apache.catalina.mbeans.JmxRemoteLifecycleListener" | |
rmiRegistryPortPlatform="12345" rmiServerPortPlatform="12346" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \ | |
-Dcom.sun.management.jmxremote.port=12345 \ | |
-Dcom.sun.management.jmxremote.ssl=false \ | |
-Dcom.sun.management.jmxremote.authenticate=false" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment