Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml/xml
 <?xml version="1.0" encoding="utf-8"?>
  <SystemMonitorNotification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SystemMonitorNotification_v1.0.xsd">
	<Notification>
	    <NotificationMonitor service_name_on_error="OMS Mass Processing Problem Tracking">
            <NotificationInterface service_host="OMS Interfacing Server" monitor_port="5667" monitor_host="dipsy.sos" monitor_encryption="XOR">order history id=%ORDER_HISTORY_ID%, job chain=%JOB_CHAIN_NAME%, order id=%ORDER_ID%, step =%ORDER_STEP_STATE%, error=%ERROR_TEXT%, check = %CHECK_TEXT%</NotificationInterface>
		</NotificationMonitor>
		
                  <NotificationObject>
			<JobChains>
				<JobChain scheduler_id="scheduler" notifications="20" name="PDir/CreateGenerateOrderMY_JOB_CHAIN_NAME"/> 
			</JobChains>
			<Timers>
				<Timer>
					<JobChains>
						<JobChain notifications="20" name="PDir/CreateGenerateOrderMY_JOB_CHAIN_NAME"/>
					</JobChains>
				</Timer>
			</Timers>
		  </NotificationObject>
	</Notification>
	
	<Notification>
	    <NotificationMonitor service_name_on_success="OMS Mass Processing History">
             <NotificationInterface service_host="OMS Interfacing Server" monitor_port="5667" monitor_host="dipsy.sos" monitor_encryption="XOR">order history id=%ORDER_HISTORY_ID%, job chain=%JOB_CHAIN_NAME%, order id=%ORDER_ID%</NotificationInterface>
		</NotificationMonitor>
		
                <NotificationObject>
			<JobChains>
				<JobChain scheduler_id="scheduler" notifications="20" name="PDir/CreateGenerateOrderMY_JOB_CHAIN_NAME"/>
			</JobChains>
		</NotificationObject>
	</Notification>
  </SystemMonitorNotification>

Following For this concrete example and following the description from above (about the schema):

  1. Configuration for Notifications to a specific System Monitor: in that case it is op5 Monitor.Specifies a System Monitor notification that includes a command line invocation and the JobScheduler objects:
    (as it is defined in the System Monitor e.g. "OMS Interfacing Server")op5 Monitor
  2. Specifies the type of notification: "service_name_on_error" or "service_name_on_success"
  3. Specifies the hostname for the host the notification are sent from: "OMS Interfacing Server"
  4. Specifies the port the application to receive passive checks is running on: "5667"
  5. Specifies the hostname of the System Monitor, that is the hostname for the host the notification are sent from: "dipsy.sos"
  6. Define the type of encryption is used to send the information to the System Monitor: "XOR"
  7. Specifies how many notifications have to be sent to the System Monitor for a specific Job Scheduler object:"20" notfications for "MY_JOB_CHAIN_NAME"
  8. The same as above in case there is configured a Timer for this Job Scheduler object:"20" notfications for the Timer for "MY_JOB_CHAIN_NAME"

Job Chains

Job Chains for these solutions have to be placed under \live\notification. Four Job Chains were implemented for this solution and they have the following functions:

...