Page 1 of 1

WLSAgent: java error

Posted: Wed Jun 29, 2016 9:48 am
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.

Re: WLSAgent: java error

Posted: Wed Jun 29, 2016 3:33 pm
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

Re: WLSAgent: java error

Posted: Fri Jul 01, 2016 9:56 am
by fmargari
It works ok.
Thanks soooo much.

Re: WLSAgent: java error

Posted: Tue Jul 05, 2016 8:57 am
by mcapra
Is it alright if we lock this thread and mark the issue as resolved?