Monitoring Server State Through the Backup Listener

How to:

As the state of the monitored ISM changes, the monitoring ISM dispatches messages.

For instance, consider the below process flow where the control agent is invoked based on the state of the monitored ISM using a decision switch. The switch is based on a signal element in the XML message generated by the backup listener.

The Status switch is a decision based object which is configured as follows:

The control agent 'Start Channels' is invoked when the listeners need to be started, that is, when they are no longer running on the configured ISM. The edges are configured as follows:

In the following example, the control agent processes the signal 'DEAD' and 'STOP' and accordingly stops the channels (Notification_Channel and DashBoard_Channel) as required by the monitoring backup application (backup listener). The control agent Start Channels is configured as shown in the figure below


Top of page

x
Procedure: How to Start the Notification and Dashboard Channels

This example will show you how to start the channels (Notification_Channel and DashBoard_Channel).

  1. Start iWay Service Manager.
  2. Publish the process flow (Failover_Processing).
  3. Add the process flow (Failover_Processing) to a route, and call it Failover_Route.
  4. Configure the Backup listener to monitor the iWay server desired.
  5. Add the listener to an inlet called backupinlet.
  6. Click Registry in the top pane.
  7. Click Channels under the Conduits section.
  8. Build, Deploy, and start the channel “backup”.
  9. Stop the monitored iWay server. The channels (Notification_Channel and DashBoard_Channel) are started when the monitored application is stopped and the signal is generated by the backup listener. The backup listener is monitoring ServerA.

iWay Software