You start these notifiers manually. To start the notifiers, use the following syntax:
tBASEDIR/smarts/bin/sm_notify --output[=<file>] [<param> ...] <notifier> s
where <param> is one or more of the parameters listed in sm_notify parameters and descriptions and <notifier> is one of the following: mail, file, trap, script, or tibrv.
Notification adapters and names defines the Notification adapters names.
Adapter |
Adapter name |
---|---|
Email Notifier Adapter |
|
Log File Notifier Adapter |
file |
SNMP Trap Notifier Adapter |
trap |
Script Notifier Adapter |
script |
VMware Smarts Adapter for TIBCO Rendezvous |
tibrv |
Use additional parameters with the sm_notify command to override information about the Global Manager or the Broker, change logging information, or run the notifier as a daemon (UNIX only). sm_notify parameters and descriptions lists some of the parameters that can be set for sm_notify.
Parameter |
Description |
---|---|
--server=<name> |
Sets the VMware Smart Assurance Manager connection. If this is not specified, the notifier uses the value in the configuration file. |
--broker=<location> |
Overrides the use of the variable SM_BROKER (Environment variable in UNIX ). The format of <location> is <host>:<port> |
--name=<notifier_name> |
Specifies a name for the notifier. The name is used to register the notifier with the Broker. This parameter is rarely used unless directed by VMware Global Services. Notification adapters are not required to be registered with the Broker. “Starting a new log file” on page 28 contains additional information. |
--daemon |
Runs the process as a daemon (UNIX only). |
--output[=<file>] |
Redirects the output (stdout and stderr) to BASEDIR/smarts/local/logs/<file>.log by default. The filename is <file>, or the --logname value if <file> is omitted. If you run multiple instances of the same notifier on the same machine, you must specify an output location for each of the log files. The notifiers cannot write to the same log file. |
--conf[=<conf_file>] |
Specifies the configuration file to use for the notifier. If this is not specified, the notifier uses the default configuration file, <notifier>-notify.conf in BASEDIR/smarts/conf/notifier. This parameter is useful if you need to use the sm_notify command to start more than one notifier (such as two Email Notifier Adapters) on a single host. Since each notifier references a unique configuration file, the notifiers can be configured to behave differently by, for example, subscribing to different notifications or sending the notifications to different locations.“Starting the customized notification adapter” on page 67 contains additional information. |
--confdir[=<dir>] |
Specifies the location (directory) of the notifier’s configuration file. If this is not specified, the notifier uses the default directory, BASEDIR/smarts/conf/notifier. This parameter can also be used to start multiple copies of a notifier on the same host or it can be used to start many notifiers from a centrally located set of configuration files. |
<notifier> |
Notification adapter. Acceptable values are: mail, file, trap, script, or tibrv. |
For additional information about the sm_notify command, type:
BASEDIR/smarts/bin/sm_notify --help