Start a Conversation

Unsolved

This post is more than 5 years old

1150

December 19th, 2011 19:00

Notification Adapter to log RCA event and its symptom to a file

Hi,

I'm looking at ways to have a notification adapter to log RCA event and its symptom to a file.

The File notifictation adapter can write to a file, but I dont think it can list down the symptom right?

Has anyone done this before?

Thanks

Fauzan

6 Posts

December 27th, 2011 01:00

Hi All,

I tried exploring the notification adapter for file, I dont see it has a capability to list down a list of symptom for a problem.

I found a way from the ASL adapter course to use getExplains and getClosure, but everytime I ran it it didnt return anything. My 2 sample scripts as below. I would really appreciate if anyone can point out why it didnt print the symptom?

Thanks!

Fauzan

Sample 1

=======

START() {

    TIMESTAMP

    EVENT

}

TIMESTAMP() {

    timestamp: integer fs

} do {

    timestring = time(timestamp);

}

EVENT() {

    "NOTIFY"           fs NOTIFY

}

NOTIFY() {

       class: word       fs

    instance: word       fs

       event: word       fs

    certainty: word      fs eol

} do {

      print("\nCLASS:" .class. " INSTANCE: " .instance. " EVENT: " .event. " TIME: " .timestring. " ROOTCAUSE: " .getClosure(class,instance,event))?IGNORE;           

}

Sample 2

=======

START() {

    TIMESTAMP

    EVENT

}

TIMESTAMP() {

    timestamp: integer fs

} do {

    timestring = time(timestamp);

}

EVENT() {

    "NOTIFY"           fs NOTIFY

}

NOTIFY() {

       class: word       fs

    instance: word       fs

       event: word       fs

    certainty: word      fs eol

} do {

              print("\nCLASS: ".class.

                    " INSTANCE: ".instance.

                    " EVENT: ".event.

                    " TIME: ".timestring);

          x = getExplains(class,instance,event);

          foreach y (x)

          {

                    print("\tSymptom: ".y);

          }

}

1 Message

February 6th, 2012 08:00

I'm also trying to understand how the notification adapters work and found this in one of the pdf (SAM Notification Adapters User Guide 7.0 A01). Not sure if setting symptoms to TRUE will help or not.

GA_ChoiceSubscription::mail-All-Subscriptions

{

className = ".*"

instanceName = ".*"

eventName = ".*"

problems = TRUE

aggregates = FALSE

symptoms = FALSE

}

No Events found!

Top