<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DataStax Support Forums &#187; Topic: Opscenter Agent JMX connection issue</title>
		<link>http://www.datastax.com/support-forums/topic/opscenter-agent-jmx-connection-issue</link>
		<description>Software, Support, and Training for Apache Cassandra</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 15:03:13 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.3</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.datastax.com/support-forums/search.php</link>
		</textInput>
		<atom:link href="http://www.datastax.com/support-forums/rss/topic/opscenter-agent-jmx-connection-issue" rel="self" type="application/rss+xml" />

		<item>
			<title>Anonymous on "Opscenter Agent JMX connection issue"</title>
			<link>http://www.datastax.com/support-forums/topic/opscenter-agent-jmx-connection-issue#post-1351</link>
			<pubDate>Mon, 12 Mar 2012 16:06:32 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1351@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;indeed that has worked for me:&#60;br /&#62;
JVM_OPTS=&#34;$JVM_OPTS -Djava.rmi.server.hostname=&#38;lt;hostname&#38;gt;&#34;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Opscenter Agent JMX connection issue"</title>
			<link>http://www.datastax.com/support-forums/topic/opscenter-agent-jmx-connection-issue#post-1345</link>
			<pubDate>Fri, 09 Mar 2012 10:40:04 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1345@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;Hi Nick&#60;/p&#62;
&#60;p&#62;Thanks for your help.&#60;/p&#62;
&#60;p&#62;The issue was to do with the way vserver manages the lo interface and 127.0.0.1 .&#60;/p&#62;
&#60;p&#62;I added the lo interface explicitly to the vserver and all works now.&#60;/p&#62;
&#60;p&#62;Dan
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nickmbailey on "Opscenter Agent JMX connection issue"</title>
			<link>http://www.datastax.com/support-forums/topic/opscenter-agent-jmx-connection-issue#post-1326</link>
			<pubDate>Wed, 07 Mar 2012 16:39:07 +0000</pubDate>
			<dc:creator>nickmbailey</dc:creator>
			<guid isPermaLink="false">1326@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;JMX is actually a two connection protocol. Cassandra will first bind JMX to port 7199 on all interfaces of the machine. When clients connect to this port it will then have them reconnect on a configurable hostname and random port.&#60;/p&#62;
&#60;p&#62;Unless you have firewall rules that are specifically blocking local traffic to 127.0.0.1 on port 7199, then I believe it is the second connection that is failing. The port for the second connection is a random port &#38;gt; 1024, so you may also have firewall rules that are preventing this connection.&#60;/p&#62;
&#60;p&#62;The interface used by this second connection is controlled by the jvm argument: '-Djava.rmi.server.hostname=&#38;lt;hostname&#38;gt;'&#60;/p&#62;
&#60;p&#62;You can add this argument to your cassandra-env.sh conf file to set this interface to something that the agents can communicate with (and has appropriate firewall rules allowing all ports &#38;gt; 1024).&#60;/p&#62;
&#60;p&#62;JVM_OPTS=&#34;$JVM_OPTS -Djava.rmi.server.hostname=&#38;lt;hostname&#38;gt;&#34;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anonymous on "Opscenter Agent JMX connection issue"</title>
			<link>http://www.datastax.com/support-forums/topic/opscenter-agent-jmx-connection-issue#post-1286</link>
			<pubDate>Mon, 05 Mar 2012 08:51:21 +0000</pubDate>
			<dc:creator>Anonymous</dc:creator>
			<guid isPermaLink="false">1286@http://www.datastax.com/support-forums/</guid>
			<description>&#60;p&#62;I have installed 2 community instances if dsc-cassandra-1.0.7 each in their own vserver. Both cassandra's communicate to each other and are working fine. I followed one of the datastax tutorials.&#60;/p&#62;
&#60;p&#62;I installed the opscenter on one of the vservers and as far as I can tell it works properly.&#60;/p&#62;
&#60;p&#62;I then installed opscenter-agent on each. However, when I run these they both try to connect to JMX on 127.0.0.1:7199 and fail since cassandra JMX port is on the server IP and not 127.0.0.1&#60;/p&#62;
&#60;p&#62;Opscenter reports both nodes as down.&#60;/p&#62;
&#60;p&#62;I am assuming this is opscenter-agent connecting to cassandra?&#60;/p&#62;
&#60;p&#62;The error is&#60;/p&#62;
&#60;p&#62; INFO [pool-4-thread-1] 2012-03-05 08:47:39,362 New JMX connection (127.0.0.1:7199)&#60;br /&#62;
ERROR [pool-4-thread-1] 2012-03-05 08:47:39,364 Error connecting via JMX: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:&#60;br /&#62;
        java.net.ConnectException: Connection refused]&#60;/p&#62;
&#60;p&#62;I have tried many things to try and force cassandra to have JMX bound to 127.0.0.1 and I have tried to force opscenter-agent to connect to the right IP.&#60;/p&#62;
&#60;p&#62;My address,yaml looks like this&#60;br /&#62;
-------&#60;br /&#62;
stomp_interface: &#34;xxx.xxx.xx.77&#34;&#60;br /&#62;
local_interface: &#34;xxx.xxx.xx.77&#34;&#60;br /&#62;
-------&#60;/p&#62;
&#60;p&#62;Anyone got any ideas with this?&#60;/p&#62;
&#60;p&#62;Dan
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
