Configuring the BMC Remedyforce monitor adapter
You configure an adapter in Grid Manager. The configuration provides information about how the adapter interacts with the BMC Remedyforce application.
The form view provides an easy-to-use interface for configuring adapters. The form view prevents human errors that might occur as a result of copying the configuration XML from the XML sample into the UI when configuring an adapter. 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 using XML only. However, after you switch to the XML view, and save the configuration in the XML from that view, you cannot use the form view for modifying that configuration.
To configure the monitor adapter:
- Log on to the TrueSight Orchestration Grid Manager.
- To access the adapters page, click the Manage tab, and then click the Adapters tab.
- In the Adapters in Repository, select the bmc-ao-adapter-remedyforce-monitor check box.
- Click Add to Grid to include the adapter in the Adapters on Grid list.
- Click Configure corresponding to the newly added adapter.
- On the Add an Adapter Configuration page, perform the following substeps to configure the adapter using the form view or skip to step 7 to configure the adapter using the XML view:
Enter a name for the adapter.
Note
The Name field does not support single-quote (') and ampersand (&) characters.
- Enter a description for the adapter.
- Under Properties, enter or select values for the configuration elements.
Include all required elements, indicated with an asterisk (*).
- (optional) Configure the adapter in the XML view using the following substeps:
- Enter a name and a description for the adapter.
- Click Switch to XML View.
- On the Warning message that appears, click Switch View.
Copy the configuration elements and attributes from the XML sample into the Properties text box, and then click OK.
Note
If the default value for an optional element is acceptable, omit the element. Do not include empty elements.
- On the Warning message that appears, click Save.
This action saves the adapter configuration with settings in the XML view permanently. The newly configured adapter is now listed in the Adapters on Grid list.
The following table describes the node elements required for configuring the monitor adapter:
Node elements required to configure the monitor adapter
UI label | Element | Description | Required |
---|---|---|---|
Target |
| Specifies the host name or the IP address of the POP3 or IMAP mail server | Yes |
Port |
| Specifies the port on which the POP3 or IMAP server listens for events | No |
User Name |
| Specifies the user name for the account to be monitored | Yes |
Password |
| Specifies the password that corresponds to the | Yes |
Encryption Type |
| Indicates whether the password specified is encrypted | No |
Javamail Debug |
| Specifies whether to turn on the debug message logging for JavaMail | No |
Email Address |
| Specifies the email-address of the account to be monitored BMC recommends that you do not configure multiple POP mail monitor adapters to monitor the same email-address. | Yes |
Protocol |
| Specifies the email protocol to be used | Yes |
Refresh |
| Specifies the interval, in seconds, to check for new messages | No |
Mail Timeout |
| Specifies the time, in seconds, to maintain an established connection | No |
Connection Timeout |
| Specifies the time, in seconds, after which the session expires | No |
Process all unread mails |
| Specifies whether to read the unread messages Note This element is valid only if you use the IMAP mail server.
| No |
Disable Auth Login |
| Prevents the use of non-standard | No |
Disable Auth Plain |
| Prevents the use of | No |
Delete After Read |
| Determines whether a message must be deleted from the server after it is read by the adapter Note This element is valid only if you use the POP mail server.
| Conditional; required to use the |
Max Messages Per Connection |
| Specifies the maximum number of messages to be pulled per connection attempt Note This element is valid only if you use the POP mail server. Default value: 20 | No |
Ignore Attachments |
| Indicates whether the attachments must be ignored and excluded from the adapter event | No |
Create Subdirectory |
| Indicates whether each attachment must be downloaded into a separate directory | No |
Attachment Download Directory |
| Specifies the path and the directory where the attachments on the monitored email messages are downloaded | No |
Attachment Overwrite Existing |
| Indicates whether an attachment with the same file name has already been downloaded and overwrites that file with the current attachment | No |
Attachment Ttl |
| Specifies the period 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, which can be attached to a mail message | No |
Max Pool Threads |
| Specifies the maximum number of threads that can be used to download the attachments simultaneously | No |
Delete Attachments On Exit |
| Deletes all downloaded attachments when the adapter is stopped or disabled | No |
Disk Cleanup Interval |
| Specifies the interval after which the attachments that have exceeded the
| No |
File Name Filter |
| Contains the elements that specify the file name criteria for downloading a file | Conditional; required if the |
File Type Filter |
| Contains the elements that specify the file type criteria for downloading an attachment | Conditional; required if the |
Use Ssl Certificate |
| Specifies whether SSL certificates are used for authentication Note Set this element to true if you want to establish a secure connection with the specified target. | No |
Allow Unsigned Certificate |
| Specifies whether unsigned certificates are permitted for SSL authentication Note You do not need this element if the
| No |
Install Certificate |
| Updates the default keystore file, java.Home\jre\lib\security\cacerts with the certificates sent by the target URL during the SSLHandshake Note
| No |
Passphrase |
| Specifies the password to the keystore file (cacerts) local to the TrueSight Orchestration peer Note
| No |
Expand Plaintext Attachment |
| Specifies whether the plain text content of a message that is sent as an attachment appears in the | No |
Expand Htmltext Attachment |
| Specifies whether the HTML data content of a message that is sent as an attachment appears in an adapter event | No |
Character Set |
| Specifies the supporting CharSet | No |
None |
| Specifies whether to return the bodypart in the email messages in either of the following formats:
Note: This element is not available in the Form View. You can add it by switching to the XML view. | No |
The following figure shows an XML sample for configuring the monitor adapter:
XML sample for configuring the monitor adapter
<config>
<target>pop.gmail.com</target>
<port>995</port>
<user-name>allen.brooke@gmail.com</user-name>
<password encryption-type="Plain">hasini23</password>
<javamail-debug>false</javamail-debug>
<email-address>allen.brooke@gmail.com</email-address>
<protocol>pop3</protocol>
<refresh>30</refresh>
<mail-timeout>60</mail-timeout>
<connection-timeout>30</connection-timeout>
<process-all-unread-mails>false</process-all-unread-mails>
<disable-auth-login>false</disable-auth-login>
<disable-auth-plain>false</disable-auth-plain>
<ignore-attachments>false</ignore-attachments>
<create-subdirectory>false</create-subdirectory>
<attachment-overwrite-existing>false</attachment-overwrite-existing>
<attachment-ttl>10d</attachment-ttl>
<max-attachment-size>10</max-attachment-size>
<max-pool-threads>1</max-pool-threads>
<delete-attachments-on-exit>false</delete-attachments-on-exit>
<disk-cleanup-interval>10m</disk-cleanup-interval>
<use-ssl-certificate>true</use-ssl-certificate>
<allow-unsigned-certificate>false</allow-unsigned-certificate>
<install-certificate>true</install-certificate>
<passphrase>changeit</passphrase>
<expand-plaintext-attachment>false</expand-plaintext-attachment>
<expand-htmltext-attachment>false</expand-htmltext-attachment>
<ignore-peer-name-in-attachment>false</ignore-peer-name-in-attachment>
</config>
<config>
The following figure shows an XML sample with POP3 and SSL disabled:
XML sample with protocol POP3 and SSL disabled
<config>
<target>imap.gmail.com</target>
<port>993</port>
<user-name>remedyforcemonitor </user-name>
<password encryption-type="Plain">bmcTest@1</password>
<javamail-debug>false</javamail-debug>
<email-address>remedyforcemonitor @gmail.com</email-address>
<protocol>imap</protocol>
<refresh>300</refresh>
<mail-timeout>60</mail-timeout>
<connection-timeout>30</connection-timeout>
<process-all-unread-mails>false</process-all-unread-mails>
<disable-auth-login>false</disable-auth-login>
<disable-auth-plain>false</disable-auth-plain>
<ignore-attachments>false</ignore-attachments>
<create-subdirectory>false</create-subdirectory>
<attachment-overwrite-existing>false</attachment-overwrite-existing>
<attachment-ttl>10d</attachment-ttl>
<max-attachment-size>10</max-attachment-size>
<max-pool-threads>1</max-pool-threads>
<delete-attachments-on-exit>false</delete-attachments-on-exit>
<disk-cleanup-interval>10m</disk-cleanup-interval>
<use-ssl-certificate>true</use-ssl-certificate>
<allow-unsigned-certificate>false</allow-unsigned-certificate>
<install-certificate>true</install-certificate>
<passphrase>changeit</passphrase>
<expand-plaintext-attachment>false</expand-plaintext-attachment>
<expand-htmltext-attachment>false</expand-htmltext-attachment>
<ignore-peer-name-in-attachment>false</ignore-peer-name-in-attachment>
</config>
The following figure shows an XML sample with IMAP and SSL disabled:
XML sample with IMAP and SSL disabled
<config>
<target>imap.gmail.com</target>
<port>143</port>
<user-name>remedyforcemonitor</user-name>
<password encryption-type="Plain">bmcTest@1</password>
<javamail-debug>false</javamail-debug>
<email-address>remedyforcemonitor@gmail.com</email-address>
<protocol>imap</protocol>
<refresh>300</refresh>
<mail-timeout>60</mail-timeout>
<connection-timeout>30</connection-timeout>
<process-all-unread-mails>false</process-all-unread-mails>
<disable-auth-login>false</disable-auth-login>
<disable-auth-plain>false</disable-auth-plain>
<ignore-attachments>false</ignore-attachments>
<create-subdirectory>false</create-subdirectory>
<attachment-overwrite-existing>false</attachment-overwrite-existing>
<attachment-ttl>10d</attachment-ttl>
<max-attachment-size>10</max-attachment-size>
<max-pool-threads>1</max-pool-threads>
<delete-attachments-on-exit>false</delete-attachments-on-exit>
<disk-cleanup-interval>10m</disk-cleanup-interval>
<use-ssl-certificate>false</use-ssl-certificate>
<allow-unsigned-certificate>false</allow-unsigned-certificate>
<install-certificate>true</install-certificate>
<passphrase>changeit</passphrase>
<expand-plaintext-attachment>false</expand-plaintext-attachment>
<expand-htmltext-attachment>false</expand-htmltext-attachment>
<ignore-peer-name-in-attachment>false</ignore-peer-name-in-attachment>
</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.