search cancel

No Alarms - 'alarm filter' 404 | Spectrum Data Publisher -> DX SaaS

book

Article ID: 241311

calendar_today

Updated On:

Products

DX Operational Intelligence DX NetOps CA Spectrum

Issue/Introduction

After configuring the Spectrum Data Publisher, we do not see any alarms.

We have been following this Doc page to configure the data publisher to connect our on-prem NetOps Spectrum to the DX Saas.

We see the Inventory show up in the SaaS but no Alarms.

Below is the what we see in the SpectrumDataPublisher.log.

2022-04-29 13:02:26,387 INFO ConnectorSyncScheduler_Worker-3: [manager.NcmSync] [subscribeForNcmConfig] - Requesting SubscriptionId for NCM sync
2022-04-29 13:02:26,394 INFO ConnectorSyncScheduler_Worker-2: [manager.AlarmSync] [subscribeForAlarm] - Requesting SubscriptionId for Partial sync
2022-04-29 13:02:26,403 ERROR ConnectorSyncScheduler_Worker-2: [handler.HttpResponseHandler] [handleResponse] - HTTP response- Url : http://dxspectrum01.com:8080/spectrum/restful/subscription , error code: 400 , message:
2022-04-29 13:02:26,404 INFO ConnectorSyncScheduler_Worker-2: [healthmetadata.HealthMetadataProcessor] [addToQueue] - Adding PRODUCT update to HealthMetadataQueue
2022-04-29 13:02:26,405 WARN ConnectorSyncScheduler_Worker-2: [handler.SpectrumHttpErrorHandler] [handleResponse] - Handling Spectrum error ALARM sync for HTTP error code : 400
2022-04-29 13:02:26,405 INFO Thread-2: [healthmetadata.HealthMetadataProcessor] [processTasQueue] - Sending HealthMetadata PRODUCT graph to TAS
2022-04-29 13:02:26,406 FATAL ConnectorSyncScheduler_Worker-2: [handler.SpectrumHttpErrorHandler] [handleResponse] - http://dxspectrum01.com:8080/spectrum/restful/subscription  server has encountered an error, HTTP error code : 400
2022-04-29 13:02:26,406 ERROR ConnectorSyncScheduler_Worker-2: [handler.AbstractHttpErrorHandler] [restartSync] - Restarting the sync ALARM
2022-04-29 13:02:26,407 INFO ConnectorSyncScheduler_Worker-2: [manager.AlarmSync] [stopSchedules] - Stopping alarm schedules.
2022-04-29 13:02:26,409 ERROR ConnectorSyncScheduler_Worker-2: [client.AbstractHttpClient] [execute] - HTTP error code: 400
2022-04-29 13:02:26,412 INFO ConnectorSyncScheduler_Worker-3: [manager.NcmSync] [execute] - NCM_SUBSCRIPTION_JOB is running...
2022-04-29 13:02:26,412 INFO ConnectorSyncScheduler_Worker-3: [manager.NcmSync] [stopSchedules] - Stopping ncm schedules.
2022-04-29 13:02:26,412 INFO ConnectorSyncScheduler_Worker-3: [manager.NcmSync] [performNcmSync] - Performing NCM Sync. id : a301126e-ec39-443d-90a3-2adf4ec18649
2022-04-29 13:02:26,409 ERROR ConnectorSyncScheduler_Worker-2: [manager.AlarmSync] [subscribeForAlarm] - Catching
com.google.api.client.http.HttpResponseException: 400
POST http://dxspectrum01.com:8080/spectrum/restful/subscription
JAXBException occurred : cvc-complex-type.2.4.a: Invalid content was found starting with element 'alarm-filter'. One of '{"http://www.ca.com/spectrum/restful/schema/request":requested-attribute}' is expected..
 at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1116) ~[google-http-client-1.40.1.jar:1.40.1]
 at com.ca.spectrum.spub.client.AbstractHttpClient.execute(AbstractHttpClient.java:330) ~[spectrum-data-publisher100.jar:?]
 at com.ca.spectrum.spub.client.SpectrumHttpClient.execute(SpectrumHttpClient.java:128) ~[spectrum-data-publisher100.jar:?]
 at com.ca.spectrum.spub.client.SpectrumHttpClient.createSubscription(SpectrumHttpClient.java:117) ~[spectrum-data-publisher100.jar:?]
 at com.ca.spectrum.spub.manager.AlarmSync.subscribeForAlarm(AlarmSync.java:235) [spectrum-data-publisher100.jar:?]
 at com.ca.spectrum.spub.manager.AlarmSync.execute(AlarmSync.java:71) [spectrum-data-publisher100.jar:?]
 at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [quartz-2.3.2.jar:?]
 at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [quartz-2.3.2.jar:?]
2022-04-29 13:02:26,412 INFO ConnectorSyncScheduler_Worker-2: [manager.AlarmSync] [execute] - Scheduler ended: ALARM_SUBSCRIPTION_JOB

Cause

The REST integration was not supported in Spectrum until release 21.2.4 and above.

Environment

Release : 21.3

Component : CA DOI OI CONNECTOR

Resolution

Spectrum was upgraded which resolved the issue. This error can happen in Spectrum releases 21.2.1 or before as the rest alarm subscription wasn't introduced until Spectrum 21.2.4 and above.