...
This article describes individual configuration parameters and provides examples of their use with monitors such as op5 and Zabbix and using of the mail und JMS interfaces.
Download: notification.xml
Send notifications
Notify on error
...
The JobScheduler Interface Monitor can be used to monitor the messages for the 3 use cases:
- error case
- an error has occured occurred / been recovered during a job chain / job execution
- the
service_name_on_error
setting is responsible for this monitoring case
- the
- an error has occured occurred / been recovered during a job chain / job execution
- success case
- a job chain / job ends succesfullysuccessfully
- the
service_name_on_success
setting is responsible for this monitoring case
- the
- a job chain / job ends succesfullysuccessfully
- performance check (see
Timer
)- usually the
service_name_on_error
setting is responsible for this monitoring case but the performance check will also work if only theservice_name_on_success
setting has been defined.
- usually the
...
- attributes
service_name_on_error
andservice_name_on_success
- at least one of these attributes must be configured
- both attributes can be configured together
- the use of this settings must be unique within one SystemNotification
NotificationMonitor
supports the following attributes:
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<!-- Example
op5 NSCA Status:
0 - OK
1 - WARNING
2 - CRITICAL
3 - UNKNOWN -->
...
<!-- Sending occurred errors as CRITICAL (default) -->
<NotificationMonitor service_name_on_error="JobScheduler Monitoring Errors">
...
<!-- Sending occurred errors as WARNING -->
<NotificationMonitor service_name_on_error="JobScheduler Monitoring Errors" service_status_on_error="1">
... |
...
Attribute | Usage | Description |
---|---|---|
monitor_host | Required | This setting specifies the host name or ip IP address of the System Monitor host. |
monitor_port | Required | This setting specifies the TCP port that the System Monitor would will listen to. |
monitor_password | Optional | This setting specifies the password
|
monitor_connection_timeout | Optional | This setting specifies the connection timeout in ms. Default: |
monitor_response_timeout | Optional | This setting specifies the response timeout in ms. |
monitor_encryption | Optional | This setting specifies that the communication with the System Monitor is encrypted. By default no encryption is used.
|
service_host | Required | This setting specifies the name of the host that executes the passive check. The name must match the corresponding setting in the System Monitor. |
plugin | Optional | Default:
|
...
Note | ||
---|---|---|
| ||
In case you are using Opsview OpsView as the monitoring tool, the plugin used in Instead, you should use the XML element |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
... <Body><![CDATA[<style type<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/css"> html; charset=utf-8"/> <style>.tg {border-collapse:collapse;border-spacing:0;border-color:#bbb#aaa;} .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#aaa;color:#594F4F#333;background-color:#E0FFEB#fff;} .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normalbold;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#bbb#aaa;color:#493F3F#fff;background-color:#9DE0AD#f38630;}</style> <title>JobScheduler Notification</title> </style>head> <body> <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> ... </body> </html> |
SystemMonitorNotification / Notification / NotificationMonitor / NotificationJMS
...