WLSAgent: java error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
fmargari
Posts: 13
Joined: Fri Feb 26, 2016 2:16 pm

WLSAgent: java error

Post by fmargari »

Hello.
I have installed WLSAgent on a WebLogic Server, following the steps listed in "https://assets.nagios.com/downloads/nag ... ios-XI.pdf"
Agent Version:
wlsagent-r185.tar.gz

Linux Version:
Red Hat Enterprise Linux Server release 6.7 (Santiago)

Java Version:
1.7.0_51


When I execute the agent, it outputs the following error:

"java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long|"

Example:
./wlsagent.sh 'hostname=localhost&port=7001&username=weblogic&password=welcome&jvm=UsedMemory,90,95'


Does anyone have any idea to solve this error? Thanks in advance.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: WLSAgent: java error

Post by ssax »

Please try using the attached jar file (unzip it first) that I've updated with these code changes:

https://github.com/Yannig/wlsagent/issues/24
wlsagent-r185.zip
Let us know the results.

Thank you
You do not have the required permissions to view the files attached to this post.
fmargari
Posts: 13
Joined: Fri Feb 26, 2016 2:16 pm

Re: WLSAgent: java error

Post by fmargari »

It works ok.
Thanks soooo much.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: WLSAgent: java error

Post by mcapra »

Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
Locked