Store and forward mode

The gateway switches to store mode when the target database is not present or is not functioning.

In the store mode, the writer stores everything it would normally send to the database in a file named: $OMNIHOME/var/writername.destserver.store

In this filename, writername is the name of the writer and destserver is the name of the server to which the gateway is attempting to send alerts.

The gateway stores the alerts in the .store file specified by the STORE_FILE writer attribute.

When the gateway detects that the destination server is back on line, it switches into forward mode and sends the alert information held in the .store file to the destination server. Once all of the alerts in the .store file have been forwarded, the writer returns to normal operation.

Store and forward mode only works when a connection to the database destination has been established, used, and then lost. If the destination server is not running when the gateway starts, store and forward mode is not triggered and the gateway terminates.

If the gateway connects to the destination database and a store and forward file already exists, the gateway replays the contents of the store and forward file before it sends new alerts.

Note: By default, store and forward mode is enabled.