...
SystemMonitorNotification / Notification
Notification
supports the following attributes:
Attribute | Usage | Description |
---|---|---|
name | optional | Notification description |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
...
<Notification name="Mail: on failed job">
...
|
The following elements may be nested inside a Notification
element:
...
Element | Element description | Description |
---|---|---|
NotificationInterface | Optional, once inside of NotificationMonitor element | PlugNSCA plug-in Interface to be executed for System Monitor notification |
NotificationCommand | Optional, once inside of NotificationMonitor element | Command line to be executed for System Monitor notification |
NotificationMail | Optional, once inside of NotificationMonitor element | Mail interface to be executed for System Monitor notification |
NotificationJMS | Optional, once inside of NotificationMonitor element | JMS interface to be executed for System Monitor notification |
SystemMonitorNotification / Notification / NotificationMonitor / NotificationInterface
NSCA plug-in Interface to be executed for System Monitor notification.
NotificationInterface
support the following attributes:
...
SystemMonitorNotification / Notification / NotificationMonitor / NotificationCommand
Command line to be executed for System Monitor notification.
NotificationCommand
support the following attributes:
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
... <NotificationCommand><![CDATA[ echo scheduler id=${MON_N_SCHEDULER_ID}, history id=${MON_N_ORDER_HISTORY_ID}, job_chain=${MON_N_JOB_CHAIN_NAME}(${MON_N_ORDER_ID}), step =${MON_N_ORDER_STEP_STATE}, error=${MON_N_ERROR_TEXT} > D://errors.txt ]]></NotificationCommand> ... _N_ORDER_ID}), step =${MON_N_ORDER_STEP_STATE}, error=${MON_N_ERROR_TEXT} > D://errors.txt ]]></NotificationCommand> ... |
SystemMonitorNotification / Notification / NotificationMonitor / NotificationMail
Jira server SOS JIRA columns key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution serverId 6dc67751-9d67-34cd-985b-194a8cdc9602 key JS-1388
Mail interface to be executed for System Monitor notification.
Mail interface reads some values of the following configuration files:
config/factory.ini
- Section
spooler
log_mail_from
log_mail_to
log_mail_cc
log_mail_bcc
smtp
mail_queue_dir
mail_queue_only
- Section
smtp
mail.smtp.user
mail.smtp.password
mail.smtp.port
mail.smtp.connectiontimeout
mail.smtp.timeout
- Section
config/private/private.conf
joc.url
NotificationMail
support the following attributes:
Attribute | Usage | Description |
---|---|---|
content_type | Optional | Content type of the e-mail. Possible values:
Default: |
charset | Optional | Charset of the e-mail.
Default: |
encoding | Optional | Encoding of the e-mail. Possible values:
Default: |
priority | Optional | Priority of the e-mail. Possible values:
Default: |
plugin | Optional | Java class of the plugin implementation (extends
Default: |
The following elements can be nested inside a NotificationMail
element:
Element | Element description | Description |
---|---|---|
From | Optional or once inside of NotificationMail element | E-mail address of the account that sends e-mail. |
To | Optional or once inside of NotificationMail element | E-mail address of the recipient(s) of a notification e-mail. |
CC | Optional or once inside of NotificationMail element | E-mail address of the recipient(s) of a carbon copy notification e-mail. |
BCC | Optional or once inside of NotificationMail element | E-mail address of recipient(s) of a blind carbon copy notification e-mail. |
Subject | Required, once inside of NotificationMail element | Subject of an e-mail notification. |
Body | Required, once inside of NotificationMail element | Body of an e-mail notification. |
SystemMonitorNotification / Notification / NotificationMonitor / NotificationMail / From
E-mail address of the account that sends e-mail.
The mail notification interface uses the value of the log_mail_from
entry (configuration file config/factory.ini
) when this element is not set.
SystemMonitorNotification / Notification / NotificationMonitor / NotificationMail / To
E-mail address of the recipient(s) of a notification e-mail.
When this element
- is not set
will be usedlog_mail_to
- is set
-
log_mail_to
, log_mail_cc, log_mail_bcc
are not used
-
SystemMonitorNotification / Notification / NotificationMonitor / NotificationMail / CC
E-mail address of the recipient(s) of a carbon copy notification e-mail.
When this element
- is not set
will be used (if thelog_mail_cc
NotificationMail/To
element is not defined - see above)
- is set
-
log_mail_cc, log_mail_bcc
are not used
-
SystemMonitorNotification / Notification / NotificationMonitor / NotificationMail / BCC
E-mail address of recipient(s) of a blind carbon copy notification e-mail.
When this element
- is not set
will be used (if thelog_mail_bcc
NotificationMail/To
orNotificationMail/CC
elements are not defined - see above)
- is set
-
log_mail_bcc
are not used
-
SystemMonitorNotification / Notification / NotificationMonitor / NotificationMail / Subject
Subject of an e-mail notification.
The Subject
can contain the JobScheduler Monitoring Interface variables.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
...
<Subject><![CDATA[JobScheduler notification: ${SERVICE_MESSAGE_PREFIX}, job executed with errors: ${MON_N_JOB_NAME}]]></Subject>
...
|
SystemMonitorNotification / Notification / NotificationMonitor / NotificationMail / Body
Body of an e-mail notification.
The Body
can contain the JobScheduler Monitoring Interface variables.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
...
<Body><![CDATA[<style type="text/css">
.tg {border-collapse:collapse;border-spacing:0;border-color:#bbb;}
.tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#bbb;color:#594F4F;background-color:#E0FFEB;}
.tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#bbb;color:#493F3F;background-color:#9DE0AD;}
</style>
<table class="tg">
<tr>
<th colspan="4">Error</th>
</tr>
<tr>
<td>Code:</td><td>${MON_N_ERROR_CODE}</td>
<td>Messsage</td><td>${MON_N_ERROR_TEXT}</td>
</tr>
<tr>
<th colspan="4">JobScheduler</th>
</tr>
<tr>
<td>JobScheduler ID</td><td>${MON_N_SCHEDULER_ID}</td>
<td>Agent URL</td><td>${MON_N_AGENT_URL}</td>
</tr>
<tr>
<th colspan="4">Order</th>
</tr>
<tr>
<td>Order ID</td><td><a href="${JOC_HREF_ORDER}">${MON_N_ORDER_ID}</a></td>
<td>Order Title</td><td>${MON_N_ORDER_TITLE}</td>
</tr>
<tr>
<td>Job Chain Name</td><td><a href="${JOC_HREF_JOB_CHAIN}">${MON_N_JOB_CHAIN_NAME}</a></td>
<td>Job Chain Title</td><td>${MON_N_JOB_CHAIN_TITLE}</td>
</tr>
<tr>
<td>Job Name</td><td><a href="${JOC_HREF_JOB}">${MON_N_JOB_NAME}${MON_N_JOB_NAME}</a></td>
<td>Job Title</td><td>${MON_N_JOB_TITLE}</td>
</tr>
<tr>
<th colspan="4">Task History</th>
</tr>
<tr>
<td>Task ID</td><td>${MON_N_TASK_ID}</td>
<td>Time elapsed</td><td>${MON_N_TASK_TIME_ELAPSED}</td>
</tr>
<tr>
<td>Start Time</td><td>${MON_N_TASK_START_TIME}</td>
<td>End Time</td><td>${MON_N_TASK_END_TIME}</td>
</tr>
</table>]]></Body>
...
|
SystemMonitorNotification / Notification / NotificationMonitor / NotificationJMS
Jira server SOS JIRA columns key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution serverId 6dc67751-9d67-34cd-985b-194a8cdc9602 key JITL-280
JMS Interface to be executed for System Monitor notification.
NotificationJMS
support the following attributes:
Attribute | Usage | Description |
---|---|---|
client_id | Optional | The client identifier for this connection. |
destination | Optional | A Possible values:
See: Destination
Default: |
acknowledge_mode | Optional | Session acknowledgment mode. Possible values:
See: Session
Default: |
delivery_mode | Optional | Delivery mode. Possible values:
See:
Default: |
priority | Optional | The producer's default priority. See: MessageProducer.setPriority
Default: |
time_to_live | Optional | Sets the default length of time in milliseconds from its dispatch time that a produced message should be retained by the message system. See: MessageProducer.setTimeToLive Possible values:
Default: |
plugin | Optional | Java class of the plugin implementation (extends
Default: |
SystemMonitorNotification / Notification / NotificationObjects
...
SystemMonitorNotification / Notification / NotificationObjects / JobChain
JobChain
supports the following attributes:
...
Element | Element description | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
TimerJob | Optional, once or once more inside of Timer element | Restricts notifications for
| ||||||||||
TimerJobChain | Optional, once or once more inside of Timer element | Restricts notifications for job chains | ||||||||||
Minimum | Optional or once inside of Timer element | Minimum required execution time for job chains or selected job nodes. Allows script code to be executed that returns the minimum execution time in seconds. | ||||||||||
Maximum | Optional or once inside of Timer element | Maximum allowed execution time for job chains or selected job nodes. Allows script code to be executed that returns the maximum execution time in seconds. |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
service name = ${SERVICE_NAME} |
OS environment variables variables
All existing OS environment variables can be defined by message using the syntax %<variable name>%
(Windows) or $<variable name>
(Unix)
.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
%TEMP%/test.exe |
JOC Cockpit variables
...
Jira server SOS JIRA columns key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution serverId 6dc67751-9d67-34cd-985b-194a8cdc9602 key JS-1388
Note:
- the JOC Cockpit variables will be substituted only when the
NotificationMail
interface is used.
Requirement:
-
config/private/private.conf
configuration file is active and contains the configuredjoc.url
entry.
Expand | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
|
...