Hook script not invoked for some alarms
search cancel

Hook script not invoked for some alarms

book

Article ID: 383805

calendar_today

Updated On:

Products

VMware Telco Cloud Service Assurance VMware Smart Assurance

Issue/Introduction

Hook script not invoked for some alarms. Existing logs are not helping in arriving at the root cause of the issue.

Environment

SMARTS - 10.1.x

SMARTS - 2.x 

TCSA  - 2.x

Resolution

  • In ics-nl-processing.asl, there are 2 places hook is being called, look for hook->start() in the script and put logs around it for further debugging. PFB for reference:
[~]# grep -B1 'hook->start()' ics-nl-processing_updated.asl
        print("Debug 1 test Hook Started: NotificationName ".eventObj->Name);
        hook->start() ? LOG;
--
    print("Debug 2 test Hook Started: NotificationName ".notifObj->Name);
    hook->start() ? LOG;
  • Restart SAM domain for changes to take effect. Debug logs should be printed in SAM domain logs, PFB screenshot: