Configuring the HP Service Manager monitor adapter
You configure an adapter in TrueSight Orchestration Grid Manager. The configuration provides information about how the adapter interacts with the HP Service Manager application. Though each adapter must have a unique name, you can create multiple adapters with the same adapter type to allow for different configuration properties.
The form view provides an easy-to-use interface for configuring adapters. The form view prevents errors that might occur when you copy the configuration XML from the adapter documentation into the UI during configuration. You can switch to the XML view to configure those elements and attributes that are not available as fields or to configure all the elements and attributes by using XML only. However, after you switch to the XML view and save the configuration in the XML form, you cannot thereafter use the form view for modifying the configuration. For details about the procedure to configure a monitor adapter, see the procedure in Configuring the HP Service Manager actor adapter.
The following table describes the configuration elements for the monitor adapter. You cannot use the form view to configure elements and attributes that do not have an entry in the UI label column.
Node elements for configuring the monitor adapter
UI label | Element | Description | Required |
---|---|---|---|
None |
| Contains elements required for configuring the monitor adapter | Yes |
Target |
| Specifies the host name or an IP address of the POP3 server | Yes |
Port |
| Specifies the port on which the POP3 server listens | No |
User Name |
| Specifies the user name for the email account to be monitored | Yes |
Password |
| Specifies the password that corresponds to the specified user name | Yes |
Javamail Debug |
| Indicates whether to use javamail debug message logging | No |
Email Address |
| Specifies the email address of the account to be monitored | Yes |
Protocol |
| Specifies the email protocol to be used | Yes |
Refresh |
| Specifies the interval, in seconds, between checks for new messages | No |
Mail Timeout |
| Specifies the time, in seconds, to maintain an established connection | No |
Connection Timeout |
| Specifies the time, in seconds, to wait when establishing a connection | No |
Disable Auth Login |
| Specifies whether to prevent the use of the nonstandard | No |
Disable Auth Plain |
| Specifies whether to prevent the use of the | No |
Delete After Read |
| Specifies whether a message should be deleted from the server after the adapter reads it | Conditional; required if the |
Max Messages Per Connection |
| Specifies the maximum number of messages to be pulled for a connection attempt | No |
Ignore Attachments |
| Indicates whether to ignore attachments and exclude them from the adapter event | No |
Create Subdirectory |
| Indicates whether each attachment must be downloaded in a separate directory | No |
Attachment Download Directory |
| Specifies the path and directory where the attachments for the monitored email messages will be downloaded | No |
Attachment Overwrite Existing |
| Specifies whether to overwrite a downloaded attachment file with the new (current) attachment, if the file name is the same | No |
Attachment Ttl |
| Specifies the time for which an attachment is permitted to reside in the download directory, before being deleted
| No |
Max Attachment Size |
| Specifies the maximum file size, in MB, that can be downloaded from a mail message | No |
Max Pool Threads |
| Specifies the maximum number of threads to be used to download attachments in parallel | No |
Delete Attachments On Exit |
| Specifies whether to delete all downloaded attachments when the adapter is stopped or disabled | No |
Disk Cleanup Interval |
| Specifies the interval between deletions of attachments that have exceeded the value of
| No |
None |
| Contains one or more | Conditional; required if a |
File Name Filter |
| Specifies the file name filter for the attachment files that can be downloaded
| No |
None |
| Contains one or more | Conditional; required if a |
File Type Filter |
| Specifies the file type of an attachment that can be downloaded | No |
Use Ssl Certificate |
| Specifies whether SSL certificates can be used for authentication | No |
Allow Unsigned Certificates |
| Specifies whether unsigned certificates are permitted for SSL authentication | No |
Install Certificate |
| Specifies whether to update the default keystore file (<java.home>\jre\lib\security\cacerts ) with the certificates sent by the target URL during the SSL handshake | No |
Passphrase |
| Specifies the passphrase for the keystore file to be used to install certificates | No |
The following figures show XML templates for the monitor adapter configuration with a plain and an encrypted password.
XML template for configuring the monitor adapter with a plain password
<config>
<target></target>
<user-name></user-name>
<password></password>
<javamail-debug></javamail-debug>
<email-address></email-address>
<protocol></protocol>
<refresh></refresh>
<mail-timeout></mail-timeout>
<connection-timeout></connection-timeout>
<disable-auth-login></disable-auth-login>
<disable-auth-plain></disable-auth-plain>
<delete-after-read></delete-after-read>
<max-messages-per-connection></max-messages-per-connection>
</config>
XML template for configuring the monitor adapter with an encrypted base64 password
<config>
<target></target>
<user-name></user-name>
<password encryption-type="Base64"></password>
<javamail-debug></javamail-debug>
<email-address></email-address>
<protocol></protocol>
<refresh></refresh>
<mail-timeout></mail-timeout>
<connection-timeout></connection-timeout>
<disable-auth-login></disable-auth-login>
<disable-auth-plain></disable-auth-plain>
<delete-after-read></delete-after-read>
<max-messages-per-connection></max-messages-per-connection>
</config>
Enabling custom logging
To enable custom logging for the adapter, you must specify a log file name. You can also provide additional parameters for logging.
Note
You must be using TrueSight Orchestration version 8.1 or later to use the custom logging feature. These parameters will be ignored in earlier versions of TrueSight Orchestration Platform.
These parameters are available with supported adapter versions. See TrueSight Orchestration Content documentation for details.
- Log File Name: Provide a name for the log file.
This file will be stored in the AO_HOME/tomcat/logs directory. If Log File Max Backup Index value is greater than 0, the log file name is suffixed with the backup index. For example, if the parameter value is a.log, backup log files will have names, such as a.log.1, a.log.2. - Log File Size: Specify a size limit for the log file.
If the value specified for Log File Max Backup Index is greater than 0, when the specified size is reached, the current file is renamed with the suffix .1. Otherwise, the log file will be reset and over-written. The default value is 10MB. The available units are KiloBytes (KB), MegaBytes (MB) or GigaBytes (GB). - Log File Max Backup Index: Enter the maximum number of backup files allowed. The default value is 10.
- Log File Append: Select this option to append new log information to the existing information in the file. If unselected, the file will be overwritten with new log information.
Log Level: Enter the logging level using one of the following choices:
Logging level
Description
DEBUG
The most detailed logging level; logs low-level messages, normal execution, recoverable erroneous conditions, and unrecoverable erroneous conditions
INFO
(default)
Logs normal execution, recoverable erroneous conditions, and unrecoverable erroneous conditions
WARN
Logs recoverable erroneous conditions and unrecoverable erroneous conditions
ERROR
The least detailed logging level; logs only error conditions that are not usually recoverable
Encrypting an element's contents
You can add the attribute secure="true"
to an XML adapter element XML view to ensure that the element's contents is encrypted when displayed.
Note
You must be using TrueSight Orchestration Platform version 8.1 or later to use this encryption attribute.
Comments
Log in or register to comment.