Heartbeat

<< Click to Display Table of Contents >>

Navigation:  Technical Documentation > MosGateway > Workflow >

Heartbeat

Heartbeats are used to test communication between MOS gateway servers and insure that they can handle MOS messages.

 Heartbeat interval is defined in heartbeatPeriodInSeconds of NetiaMosGatewayCore.config. Default value is set at 120 seconds.

 

Here’s an example of the Heartbeat message: 

 

<mos>

  <mosID>netia.om.mtp.city.mos</mosID>

  <ncsID>2008R2ENPS7VM</ncsID>

  <messageID>5</messageID>

  <heartbeat>

    <time>2018-03-22T17:41:46</time>

  </heartbeat>

</mos>

 

Information on the NMG that sends out the heartbeat. The message is sent on the lower port. NMG receive the response on the same socket:

 

 Response:

 

<mos>

<mosID>netia.om.mtp.city.mos</mosID>

<ncsID>openmedia.annova.mos</ncsID>

<messageID>8</messageID>

<heartbeat>

<time>2018-03-22T17:47:50</time>

</heartbeat>

</mos>

 

Upon reception, NMG logs the event and update the « heartbeat » field of the GUI and notify the Monitoring.