You can set up automatic event notification for two types of library events:
LibMON allows you to set various thresholds for each device within the library. When the device exceeds a set threshold, LibMON automatically notifies the library contact by sending an email message and/or executing a user-defined command. This feature is intended to provide notification of conditions that could eventually cause a library component to become unavailable.
You set threshold values through the Library Property Book Page.
You can configure LibMON to notify you automatically when the library transitions between available and unavailable states. You do this through the Library Property Book Page.
Command definition files specify what actions will be executed when a library event occurs that triggers user-defined notification. Each command definition file must be located in the /SUNWlmon/command/user directory, and have the extension .des. For your assistance, the /SUNWlmon/command/user directory contains a template file, template.des.
Each line of the command definition file should contain one of the following:
The following table describes the keywords that must appear in the command definition file.
1 You must specify values for these keywords. All other values are optional. |
The following table lists the LibMON predefined arguments.
The following is a sample command definition file.
The sample file above defines a command with the title "Display Event Information." When an action associated with this command definition is initiated, the buildEvent.sh command in the /export/LibMON/bin directory is executed.
When building command definition files, use the CHECK-USER-COMMANDS script in the /opt/SUNWlmon directory to verify correct syntax usage. When you are sure the command definition file is correct, either restart the LibMON server or select the Refresh option on the LibMON Home Page. This causes the server to recognize the new command definition.