Hi ,
I have installed Splunk4JMX and modified the config file with required host,jmxport,jmxserviceurl,jmxuser,jmxpass. And Also updated the JAVA_HOME and SPLUNK_HOME path
<jmxserver jmxServiceURL="service:jmx:iiop://xxxxx:xxxx/jndi/JMXConnector" host="xxxx" jmxport="xxx" jvmDescription="xxx" jmxuser="xxxx" jmxpass="xxx">
Also I am using JDK 1.8 version and WAS 7 version.
To work with WAS , I have added the below Jar files in the /SPLUNK4JMX/bin/lib directory
com.ibm.ws.orb_8.5.0.jar,com.ibm.ws.ejb.thinclient_8.5.0.jar,com.ibm.ws.admin.client_8.5.0.jar
ibmorbapi.jar,ibmorb.jar,ibmcfw.jar in /SPLUNK4JMX/bin/lib/boot directory
I have tried with RMI/SOAP port.But when i run the command,
$SPLUNK_HOME/bin/splunk cmd splunkd print-modinput-config jmx | $SPLUNK_HOME/bin/splunk cmd $SPLUNK_HOME/bin/python /opt/splunk/etc/apps/SPLUNK4JMX/bin/jmx.py
I got teh below error,
[Fatal Error] :-1:-1: Premature end of file.
ERROR Can't connect to Splunk REST API with the token [Splunk uiZQJ1gcYYetyDXz6bm6ED^TA2EdiCplLKjKICU^dGGAMCOuzYIRFhXv0dPlv4MWH_IE4276UkjnoCHRreWYTNGhTWLeJmTGXsXc1Woe_XA8vkHmwItpraCu2ko], either the token is invalid or SplunkD has exited : HTTP 401 -- <?xml version="1.0" encoding="UTF-8"?>
<response>
<messages>
<msg type="WARN">call not properly authenticated</msg>
</messages>
</response>
JSAS1480I: Security is not enabled because the ConfigURL property file is not set.
Exception in thread "Thread-4" java.lang.NoClassDefFoundError: sun/io/ByteToCharConverter
at com.ibm.rmi.iiop.TcsToCharConverter$1.run(TcsToCharConverter.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.rmi.iiop.TcsToCharConverter.getSunConverter(TcsToCharConverter.java:144)
at com.ibm.rmi.iiop.TcsToCharConverter.convertFromByte(TcsToCharConverter.java:95)
at com.ibm.rmi.iiop.CDRReader.readStringOrIndirection(CDRReader.java:536)
at com.ibm.rmi.iiop.CDRReader.read_string(CDRReader.java:521)
at com.ibm.rmi.IOR.read(IOR.java:361)
at com.ibm.rmi.iiop.Connection._locate(Connection.java:546)
at com.ibm.rmi.iiop.Connection.locate(Connection.java:505)
at com.ibm.rmi.iiop.GIOPImpl.locate(GIOPImpl.java:240)
at com.ibm.rmi.corba.Corbaloc.locateUsingINS(Corbaloc.java:307)
at com.ibm.rmi.corba.Corbaloc.resolve(Corbaloc.java:378)
at com.ibm.rmi.corba.ORB.objectURLToObject(ORB.java:3805)
at com.ibm.CORBA.iiop.ORB.objectURLToObject(ORB.java:3377)
at com.ibm.rmi.corba.ORB.string_to_object(ORB.java:3700)
at com.ibm.ws.naming.util.WsnInitCtxFactory.stringToObject(WsnInitCtxFactory.java:1645)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getCosRootContext(WsnInitCtxFactory.java:1338)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootContextFromServer(WsnInitCtxFactory.java:1088)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:939)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:614)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at com.ibm.websphere.management.remote.WsProvider.newJMXConnector(WsProvider.java:139)
at javax.management.remote.JMXConnectorFactory.getConnectorAsService(JMXConnectorFactory.java:476)
at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:344)
at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:269)
at com.splunk.modinput.jmx.JMXModularInput$ProcessServerThread.connect(Unknown Source)
at com.splunk.modinput.jmx.JMXModularInput$ProcessServerThread.run(Unknown Source)
ERROR It has been determined via the REST API that all inputs have been disabled.
I am not sure what is missed here as i am new to the SPLUNK.Please help me to resolve the issue
Thanks in advance.
... View more