Configuring the
The configuration file, script-notify.conf, configures this notifier. The original version of the file is located in BASEDIR/smarts/conf/notifier.
Retain the original (unedited) version of the configuration file. To modify a configuration file, use the
sm_edit
utility provided with your VMware Smart Assurance
software. This will
ensure that you modify a copy of the file and the copy is placed in the proper local subdirectory. “Editing notification adapter files” on page 20 contains additional information on modifying files and using sm_edit
.If you edit the configuration
file while the notifier is running, restart the notifier so that it rereads its configuration file.
For the to function, create a script to perform the desired
action. Whenever the notifier receives a notification, it will call the script you created. Save your custom script in BASEDIR/smarts/local/actions. The arguments for
your script are located in BASEDIR/smarts/local/rules/notifier/script/script-custom.asl.
You also need to change the scriptName
parameter in the script-notify.conf file. To do this, delete the # character at the beginning of the line and replace the string “myScript” with the name of the custom script you want to run.
The script files must have
appropriate read/execute permissions, and must return an exit status of 0 for success and non-zero for failure.