grehon / wlsagent

Automatically exported from code.google.com/p/wlsagent
GNU General Public License v3.0
0 stars 0 forks source link

No output from wlsagent.sh or run.sh #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I unzipped wlsagent-r160 on my nagios server
2. Added weblogic.jar, wlclient.jar and wljmxclient.jar to lib directory
3. Edit run.sh to my JAVA_HOME directory on nagios server
4. ran ./run.sh [It executed without any output]
5. ran 
./wlsagent.sh 
'hostname=myserver&port=7001&username=weblogic&password=weblogic&jvm=UsedMemory;
90;95'

What is the expected output? What do you see instead?

Expected Output
server1 is in RUNNING state, status OK|HeapSize=256M;;;0;512 
UsedMemory=194M;;;0;512

Actual Output - [Blank][i.e. No ouput, return back to commandline]

What version of the product are you using? On what operating system?

Weblogic 11g [10.3]
Nagios Server is on [RHEL6 - Linux]
Weblogic Server is on [RHEL6 - Linux]

Please provide any additional information below.

I am trying out this plugin for the first time. Please let me know, if any 
additional step needed to run this plugin.

jvisualvm works for my weblogic server. I am able to connect it and monitor.

Original issue reported on code.google.com by doshihar...@gmail.com on 26 Feb 2013 at 6:07

GoogleCodeExporter commented 8 years ago
Hello,

After starting the plugin, is it listening on the connector mentionned in the 
run.sh file ?

Can you please try to remove the redirection at the end of the starting command 
(i.e. "> /dev/null 2>&1") ? The startup script should display some useful 
information about the issue.

Original comment by yann.lambret@gmail.com on 26 Feb 2013 at 6:45

GoogleCodeExporter commented 8 years ago
Thanks Yann. 

Just after posting the issue. I figured out, that JAVA_HOME which I had set had 
a typing mistake. Everything is running as expected.

Though, when I am trying this thing from NagiosXI, it is not taking "&" in a 
proper way and terminates string at hostname=myserver, which in turn gives 
MalFormed URL exception from the plugin.

Please let me know, if you have face this situation with NagiosXI. I know, 
there is some sort of escaping which happens from NagiosXI, which is different 
from NagiosCore while editing cfg files.

Thank you for your quick response to my query.

Original comment by doshihar...@gmail.com on 26 Feb 2013 at 9:50

GoogleCodeExporter commented 8 years ago
Based on issue 17, I guess I can also close this one.

Original comment by yann.lambret@gmail.com on 17 Jul 2013 at 7:49

GoogleCodeExporter commented 8 years ago
hi yann
i am currently using weblogic 12c. when i trying to run ./run.sh i got an error 

./run.sh
 2014-11-19 12:17:38.291:INFO:oejs.Server:jetty-7.6.2.v20120308
2014-11-19 12:17:38.322:INFO:oejsh.ContextHandler:started 
o.e.j.s.ServletContextHandler{/wlsagent,null}
2014-11-19 12:17:38.329:WARN:oejuc.AbstractLifeCycle:FAILED 
SelectChannelConnector@myserver:7001: java.net.BindException: Address already 
in use
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:444)
        at sun.nio.ch.Net.bind(Net.java:436)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:182)
        at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:311)
        at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:260)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at org.eclipse.jetty.server.Server.doStart(Server.java:272)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at net.wait4it.nagios.wlsagent.core.WLSAgent.main(Unknown Source)
2014-11-19 12:17:38.330:WARN:oejuc.AbstractLifeCycle:FAILED 
org.eclipse.jetty.server.Server@7239c5c6: java.net.BindException: Address 
already in use
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:444)
        at sun.nio.ch.Net.bind(Net.java:436)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:182)
        at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:311)
        at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:260)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at org.eclipse.jetty.server.Server.doStart(Server.java:272)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at net.wait4it.nagios.wlsagent.core.WLSAgent.main(Unknown Source)
Exception in thread "main" java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:444)
        at sun.nio.ch.Net.bind(Net.java:436)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:182)
        at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:311)
        at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:260)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at org.eclipse.jetty.server.Server.doStart(Server.java:272)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
        at net.wait4it.nagios.wlsagent.core.WLSAgent.main(Unknown Source)

ps ax|grep wlsagent
 7780 pts/4    Sl     0:01 /u01/jdk1.7.0_51/bin/java -Xmx32m -cp .:wlsagent-r185.jar:lib/servlet-api-2.5.jar:lib/jetty-servlet-7.6.2.v20120308.jar:lib/wlclient.jar:lib/wljmxclient.jar:lib/wlfullclient.jar net.wait4it.nagios.wlsagent.core.WLSAgent myserver 7001

when i going to run 
./wlsagent.sh 
'hostname=myserver&port=7001&username=weblogic&password=****&jvm=UsedMemory,90,9
5'

its showing northing .. could you please let me know what is the issue..

Original comment by gopi.a.w...@gmail.com on 19 Nov 2014 at 5:47

GoogleCodeExporter commented 8 years ago
Hi ,

when i am running ./run.sh its giving me output 

[root@XYZ.abc.kj wlsagent]# ./run.sh
2015-03-25 16:58:43.786:INFO:oejs.Server:jetty-7.6.2.v20120308
2015-03-25 16:58:43.865:INFO:oejsh.ContextHandler:started 
o.e.j.s.ServletContextHandler{/wlsagent,null}
2015-03-25 16:58:43.928:INFO:oejs.AbstractConnector:Started 
SelectChannelConnector@0.0.0.0:9090

But when i am running ./wlsagent with argumets its showing me nothing.(blank)

Please help me.

Thanks
Arvinder.

Original comment by arvinder...@gmail.com on 25 Mar 2015 at 7:09