Using sm_notify file to log all active events in Smarts IP domain to a file
search cancel

Using sm_notify file to log all active events in Smarts IP domain to a file

book

Article ID: 322917

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:


How to log all events correlated by IP domain to a file


Environment

VMware Smart Assurance - SMARTS

Resolution

Setting up of file logger against an IP domain is similar to setting it up against SAM. When the sm_notify runs against an IP domain, it has to use Choice Subscription and not a Notification list like it does in SAM.  Make sure you run it from <BASEDIR>/IP/smarts/bin/ file.

Be sure the section for Notification List subscription is commented out and that notifier subscribes to problems and symptoms is used. By default, the choice subscription is not subscribing to symptoms. This needs to be changed to TRUE in order to log both Root Cause (problem events) and Symptoms. A full configuration file is at the bottom of the article.

SubscribesTo =

{

Choice subscription.

GA_ChoiceSubscription::file-All-Problems-Subscriptions

{

className = ".*"

instanceName = ".*"

eventName = ".*"

problems = TRUE

aggregates = FALSE

symptoms = TRUE

}

Use this command to start the notifier:

sm_service install --force --name=ic-file-notifier "--description=File Notifier" --startmode=runonce <BASEDIR>\IP\smarts\bin\sm_notify "--output" "file" 

Subscriptions.

SubscribesTo =

{

Choice subscription.

GA_ChoiceSubscription::file-All-Problems-Subscriptions

{

className = ".*"

instanceName = ".*"

eventName = ".*"

problems = TRUE

aggregates = FALSE

symptoms = TRUE

}

NL subscription.

GA_NLSubscription::file-Default-NL-Subscriptions

{

NLName = "Default"

}

Profile subscription.

GA_ProfileSubscription::file-Default-Profile-Subscriptions

{

profileName = "default"

}

}

}

How long, in seconds, to ignore notifications from the server after it connects. Use this parameter to avoid receiving the initial flood of notifications when the server (re)connects.

initialEventDelay = 0

}

Local Variables:

mode: Makefile

comment-column: 32

fill-column: 79

End: