java.io.IOException: Couldn't connect to the specified host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Samreen Mardhani
Posts: 6
Joined: Wed Jun 06, 2018 9:03 am

java.io.IOException: Couldn't connect to the specified host

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: java.io.IOException: Couldn't connect to the specified h

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Samreen Mardhani
Posts: 6
Joined: Wed Jun 06, 2018 9:03 am

Re: java.io.IOException: Couldn't connect to the specified h

Post 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|
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: java.io.IOException: Couldn't connect to the specified h

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked