Page 1 of 1
java.io.IOException: Couldn't connect to the specified host
Posted: Thu Oct 18, 2018 4:37 am
by Samreen Mardhani
While configuring weblogic services in a server which is setup in AWS environment, we are getting error as "java.io.IOException: Couldn't connect to the specified host". Where as on the same server, we are able to do server level monitoring.
Please suggest! Are there any specified ports that has to be opened from AWS side?
Note: Nagios server is hosted in OnPremise environment(OVM) and the server on which we are setting up monitoring is hosted in AWS environment.
Re: java.io.IOException: Couldn't connect to the specified h
Posted: Thu Oct 18, 2018 3:13 pm
by cdienger
What is the plugin you're using to monitor the weblogic server? Please provide screenshots of the configuration and redact any sensitive info.
Re: java.io.IOException: Couldn't connect to the specified h
Posted: Tue Oct 23, 2018 4:17 am
by Samreen Mardhani
We have enables all the inbound and outbound ports on the server. And now we see a different error : "java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long|" while executing the below command
[nagios@lahbsimn02a01 ~]$ sh /usr/local/nagios/libexec/wlsagent/wlsagent.sh 'hostname=172.26.44.199&port=41511&username=weblogic&password=**** &thread-pool=ThreadStuckCount,5,10'
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long|
Re: java.io.IOException: Couldn't connect to the specified h
Posted: Tue Oct 23, 2018 3:50 pm
by cdienger
You may want to make sure that you're on the most recent version(
https://code.google.com/archive/p/wlsagent/downloads), but it looks like this is likely a problem with the java client that gets installed on the weblogic server not properly handling data types and this would need to be corrected by the developer.
There are other weblogic plugins you can try as well:
https://exchange.nagios.org/directory/P ... s/Weblogic
and we have documentation regarding the check_jmx plugin here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf