Actions

Difference between revisions of "IPHA - Monitoring server status"

From Zenitel Wiki

(Configuration)
(Configuration)
Line 24: Line 24:
  
 
{{Code2|
 
{{Code2|
  IF %op(%sev,>=,230)
+
  IF %op(%sev,><nowiki>=</nowiki>,230)
  IF %op(%sev,<=,232)
+
  IF %op(%sev,<<nowiki>=</nowiki>,232)
 
  !Primary Server is operational
 
  !Primary Server is operational
 
  WUDD 1001 1
 
  WUDD 1001 1
Line 32: Line 32:
 
  WUDD 1001 2
 
  WUDD 1001 2
 
  ENDIF
 
  ENDIF
  IF %op(%op(%syse(230),==,0) ,&, %op(%syse(232),==,0))
+
  IF %op(%op(%syse(230),<nowiki>==</nowiki>,0) ,&, %op(%syse(232),==,0))
 
  !Secondary Server is operational
 
  !Secondary Server is operational
 
  WUDD 1001 2
 
  WUDD 1001 2
Line 40: Line 40:
 
  WUDD 1002 1
 
  WUDD 1002 1
 
  ENDIF
 
  ENDIF
  IF %op(%syse(231),==,0)
+
  IF %op(%syse(231),<nowiki>==</nowiki>,0)
 
  !No communication with the other server
 
  !No communication with the other server
 
  WUDD 1002 0
 
  WUDD 1002 0

Revision as of 08:11, 2 June 2022

AlphaCom icon 300px.png

The IP-HA system reports changes of the server state to the Event Handler.

This article describes how to configure the Event Handler in order to report current server state to the System log.

Error reporting

The following strings will be reported to the System Log whenever there is a change of state:

  • One of the servers is operational, and the other server is in standby mode:
Primary Server is operational. Both servers are running.


Secondary Server is operational. Both servers are running.


  • One of the servers is operational, and the other server is Out of Service:
Primary Server is operational. WARNING: No communication with the other server.


Secondary Server is operational. WARNING: No communication with the other server.


Configuration

From AlphaPro, select Exchange & System > Events, and Insert a new event with the following properties:

Event to report status changes in an IPHA system


Copy/paste the action commands below into the event:

Action commands:

{{{1}}}