Creating an lmadmin Alerter Service
The lmadmin license server installation includes an example of how to implement an email alerter service. This service will poll for alerts and then send a user an email when an alert has been triggered.
Using the Alerter Service Email Alerts
The sample Alerter service utility runs on the license server and enables a user to receive alert notifications by email. To use the Alerter service, Java Runtime Environment (JRE) 1.6 or later (for OS X: JRE 1.7 or later) must be installed on the license server.
To start the Alerter service, there are two files in the <lmadmin_install_dir>\examples\alerter directory:
| • | For Windows systems, the runalerter.bat file. |
| • | For UNIX systems, the runalerter file. |
When starting this service, you must configure certain command-line arguments to define the mail server, sender, receiver, and so on. To see the list of available command-line arguments for the runalerter script, type the following command:
runalerter -help
The source code for this utility is in the <lmadmin_install_dir>\examples\alerter\src directory.