Notification watcher webhook not registered to NSX
search cancel

Notification watcher webhook not registered to NSX

book

Article ID: 422356

calendar_today

Updated On:

Products

VCF Operations for Networks VMware NSX VMware vSphere ESXi

Issue/Introduction

  • NSX Datasource in VCF Operations for Networks shows error: 

    Notification watcher webhook not registered to NSX

  • VCF Operations for Networks collector logs shows the following error:

    /var/log/arkin/collector/latest.log
    DPTaskStatus
    {
            taskId='com.vnera.dataproviders.core.impl.vmware.nsxt.tasks.NSXTNotificationStateWatcherTask_SystemEvent_CONFIG'
            collectedDataType=CONFIG
            taskExecType=SCHEDULED
            isSuccess=false
            timestamp=
            errorCode='NSXT_NOTIFICATION_WEBHOOK_DISABLED'
            errorMessage='com.vnera.dataproviders.core.impl.vmware.nsx.utils.StateWatcherException: Notification watcher webhook not registered in NSX-T.
            at com.vnera.dataproviders.core.impl.vmware.nsxt.tasks.NSXTNotificationStateWatcherTask.checkIfWebhookRegistered(NSXTNotificationStateWatcherTask.java:66)
            at com.vnera.dataproviders.core.impl.vmware.nsxt.tasks.NSXTNotificationStateWatcherTask.doRun(NSXTNotificationStateWatcherTask.java:53)
            at com.vnera.dataproviders.core.common.impl.dataprovider.tasks.AbstractTask.run(AbstractTask.java:165)
            at com.vnera.dataproviders.tasker.Tasker_ScheduledTaskWrapper.run(Tasker.java:486)
            at com.google.common.util.concurrent.MoreExecutors_ScheduledListeningDecorator_NeverSuccessfulListenableFutureTask.run(MoreExecutors.java:678)
            at java.base/java.util.concurrent.Executors_RunnableAdapter.call(Executors.java:539)
            at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
            at java.base/java.util.concurrent.ScheduledThreadPoolExecutor_ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
            at java.base/java.util.concurrent.ThreadPoolExecutor_Worker.run(ThreadPoolExecutor.java:635)
            at java.base/java.lang.Thread.run(Thread.java:840)
            taskData={timeTaken=11, healthMsgPayload=, healthMsgPayloadKey=NSXT_NOTIFICATION_WEBHOOK_STATUS}
    }

  • Running the following API call to the NSX Manager does not return any watcher.

    GET <NSX-Manager>/api/v1/notification-watchers/

Environment

VMware NSX
VMware VCF Operations for Networks

Resolution

Workaround:

To workaround issue disable/enable the NSX data source to recreate the watcher.

  1. In VCF Operations for Networks UI, go to Settings > Accounts and Data Sources.
  2. Locate the problematic NSX data source.
  3. On the right hand side use the slider to disable datasource. 
  4. Wait at least 10 minutes and enable data source again.
  5. Run the following API call to the NSX Manager and confirm a watcher is now returned.

    GET <NSX-Manager>/api/v1/notification-watchers/

  6. The error should clear from the VCF Operations for Networks UI after a few minutes.