Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-6121

The VMWare Integration doesn't work if an ESX Server is not accessible due to access restrictions

    XMLWordPrintable

    Details

      Description

      After executing the vmwarecimquery command to verify if the OpenNMS server can talk with the vCenter server and the ESX servers, I see the following exception (I've removed the ESX name and their IP address for security reasons):

      Determining primary Ip address of host system ESX_NAME_HERE (powerState=poweredOn)... ESX_IPADDR_HERE
      Querying host system ESX_NAME_HERE for numeric sensors... Exception in thread "main" org.sblim.wbem.cim.CIMTransportException: EXT_ERR_UNABLE_TO_CONNECT; nested exception is:
      java.net.ConnectException: Connection refused
      at org.sblim.wbem.client.CIMClientXML.transmitRequest(CIMClientXML.java:1753)
      at org.sblim.wbem.client.CIMClientXML.enumerateInstances(CIMClientXML.java:559)
      at org.sblim.wbem.client.CIMClient.enumerateInstances(CIMClient.java:910)
      at org.sblim.wbem.client.CIMClient.enumerateInstances(CIMClient.java:960)
      at org.opennms.protocols.vmware.VmwareViJavaAccess.queryCimObjects(VmwareViJavaAccess.java:452)
      at org.opennms.protocols.vmware.VmwareViJavaAccess.queryCimObjects(VmwareViJavaAccess.java:473)
      at org.opennms.protocols.vmware.VmwareCimQuery.cimQuery(VmwareCimQuery.java:102)
      at org.opennms.protocols.vmware.VmwareCimQuery.main(VmwareCimQuery.java:181)
      Caused by: java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:382)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:241)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:228)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:431)
      at java.net.Socket.connect(Socket.java:527)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:570)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:371)
      at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:71)
      at org.sblim.wbem.http.HttpClient.resetSocket(HttpClient.java:850)
      at org.sblim.wbem.http.HttpClient.connect(HttpClient.java:324)
      at org.sblim.wbem.http.HttpUrlConnection.connect(HttpUrlConnection.java:89)
      at org.sblim.wbem.client.CIMClientXML.transmitRequest(CIMClientXML.java:1748)
      ... 7 more

      The problem is that the method queryCimObjects from VmwareViJavaAccess is not handling the ConnectException properly and for this reason, the whole operation is aborted.

      This is causing problems with the service monitors and the collectors.

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: