Did you change the instance name in etc/system.properties:
karaf.name=root
The JMX URL is based on the karaf.name, so, if you changed it, you have
to use:
service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
FYI, I tested Decanter with Karaf 3.0.3 without problem.
For the Operating System panel, you have to collect the system data
using the system-collector that you customize:
http://karaf.apache.org/manual/decanter/latest-1/index.html#_system
You have to provide bat scripts depending what you want to retrieve.
Regards
JB
On 08/31/2015 12:55 PM, hsinchen wrote:
Hi,
I use the url=service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root. It
shows ERROR below at Karaf 3.0.3.
2015-08-31 14:50:28,449 | ERROR | scheduler-simple | JmxCollector
| 95 - org.apache.karaf.decanter.collector.jmx - 1.0.0 | Can't connect to
MBeanServer service:jmx:rmi:///jndi/rmi://localhost:1099/karaf-root
(jmx-local)
java.io.IOException: Failed to retrieve RMIServer stub:
javax.naming.NameNotFoundException: karaf-root
at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:357)[:1.7.0]
at
javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:267)[:1.7.0]
at
org.apache.karaf.decanter.collector.jmx.JmxCollector.run(JmxCollector.java:85)[95:org.apache.karaf.decanter.collector.jmx:1.0.0]
at
org.apache.karaf.decanter.scheduler.simple.SimpleScheduler.run(SimpleScheduler.java:64)[94:org.apache.karaf.decanter.scheduler.simple:1.0.0]
at java.lang.Thread.run(Thread.java:722)[:1.7.0]
Caused by: javax.naming.NameNotFoundException: karaf-root
at
com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:116)[:1.7.0]
at
com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)[:1.7.0]
at javax.naming.InitialContext.lookup(InitialContext.java:411)[:1.7.0]
at
javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1924)[:1.7.0]
at
javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1891)[:1.7.0]
at
javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:274)[:1.7.0]
... 4 more
Then, I use Karaf 3.0.4. But, need to still check if any setting problem at
url.
karaf@root()> feature:install elasticsearch
karaf@root()> feature:install kibana
Refreshing bundles org.apache.servicemix.bundles.elasticsearch
karaf@root()> feature:install decanter-appender-elasticsearch
karaf@root()> feature:install decanter-collector-jmx
karaf@root()> feature:install decanter-collector-log
The Karaf Dashboard in Kibana works except the "OPERATING SYSTEM" panel.
There is a warn in log about the connection was terminated..."connection was
stopped by a software in your computer"
2015-08-31 18:43:06,780 | INFO | 6]-nio2-thread-1 | ServerSession
| 28 - org.apache.sshd.core - 0.14.0 | Server session created from
/127.0.0.1:54898
2015-08-31 18:43:06,782 | WARN | 6]-nio2-thread-1 | ServerSession
| 28 - org.apache.sshd.core - 0.14.0 | Exception caught
java.io.IOException: ³s½u¤w³Q±z¥D¾÷¤Wªº³nÅ餤¤î¡C
at sun.nio.ch.WindowsAsynchronousSocketChannelImpl.read0(Native
Method)[:1.7.0]
at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.access$700(WindowsAsynchronousSocketChannelImpl.java:40)[:1.7.0]
at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ReadTask.run(WindowsAsynchronousSocketChannelImpl.java:488)[:1.7.0]
at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.implRead(WindowsAsynchronousSocketChannelImpl.java:633)[:1.7.0]
at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:272)[:1.7.0]
at
sun.nio.ch.AsynchronousSocketChannelImpl.read(AsynchronousSocketChannelImpl.java:293)[:1.7.0]
at
java.nio.channels.AsynchronousSocketChannel.read(AsynchronousSocketChannel.java:407)[:1.7.0]
at
org.apache.sshd.common.io.nio2.Nio2Session.startReading(Nio2Session.java:170)[28:org.apache.sshd.core:0.14.0]
at
org.apache.sshd.common.io.nio2.Nio2Acceptor$AcceptCompletionHandler.onCompleted(Nio2Acceptor.java:135)[28:org.apache.sshd.core:0.14.0]
at
org.apache.sshd.common.io.nio2.Nio2Acceptor$AcceptCompletionHandler.onCompleted(Nio2Acceptor.java:120)[28:org.apache.sshd.core:0.14.0]
at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler$1.run(Nio2CompletionHandler.java:32)
at java.security.AccessController.doPrivileged(Native Method)[:1.7.0]
at
org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:30)[28:org.apache.sshd.core:0.14.0]
at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)[:1.7.0]
at sun.nio.ch.Invoker$2.run(Invoker.java:206)[:1.7.0]
at
sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)[:1.7.0]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0]
at java.lang.Thread.run(Thread.java:722)[:1.7.0]
--
View this message in context:
http://karaf.922171.n3.nabble.com/Karaf-Decanter-tp4042096p4042167.html
Sent from the Karaf - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com