Spectrum unable to get events from CA Performance Centre (CAPC) Event Manager - "(401)Unauthorized Error"

book

Article ID: 221935

calendar_today

Updated On:

Products

CA Infrastructure Management CA Spectrum DX NetOps CA Performance Management - Usage and Administration

Issue/Introduction

Spectrum is not able to the Event Manager on CAPC with the following error shown in the Spectrum OneClick server log:

AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode:
 faultString: (401)Unauthorized
 faultActor:
 faultNode:
 faultDetail:
        {}:return code:  401

        {http://xml.apache.org/axis/}HttpErrorCode:401

(401)Unauthorized
        at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at com.netqos.InventoryWS.InventoryWSSoapStub.beginInventory(InventoryWSSoapStub.java:504)
        at com.ca.im.netqos.integration.datasource.inventory.AxisNetqosInventoryService.getEventManagerURL(AxisNetqosInventoryService.java:77)
        at com.ca.im.netqos.integration.event.NetqosEventManager$NPCEventManagerWebserviceURLPoller.performTask(NetqosEventManager.java:626)
        at com.aprisma.util.thread.ThreadPoolMonitor$TimedThreadTask.performTask(ThreadPoolMonitor.java:135)
        at com.aprisma.util.thread.CachedThread.run(CachedThread.java:116)
Jul 21, 2021 08:25:29.439 (PoolThread-30: GlobalPool => NPCEventManagerWebserviceURLPoller) (NetqosEventLog) - (ERROR) - Unable to contact Event Manager - stopping all polling.

Cause

The faultString: (401)Unauthorized client error on Spectrum OneClick server indicates that the request to CAPC has not been accepted because it lacks valid authentication to the CAPC server.

Issue is likely that the certificate for SSO is configured with the Fully Qualified Domain Name (FQDN).  However, if the system is setup to use short hostnames, then DM/EM is accessing SSO using the short hostname and shows errors relating to subject alternate name issue.  So it cannot instantiate the bean it uses to identify the hostname, hence, it is blank.

 

Environment

DX NetOps 21.2 Spectrum / CAPM integration

Resolution

Change NpcWebServiceHost to FQHN in both SsoConfig and ~/etc/Hosts locally.

After some syncs/etc, Spectrum should start seeing events from Data Sources Manager (DM) / Event Manager (EM) on the CAPC server.