Difference between revisions of "IPHA - Monitoring server status"
From Zenitel Wiki
(→Error reporting) |
|||
Line 5: | Line 5: | ||
== Error reporting == | == Error reporting == | ||
− | The following strings will be reported to the System Log whenever there is a change of state: | + | The following strings will be reported to the System Log whenever there is a change of state. |
+ | |||
+ | Change of state is either: | ||
+ | * Communication between the servers is lost or resumed | ||
+ | * A server changes state from Standby to Operational, or vice versa | ||
+ | |||
* One of the servers is operational, and the other server is in standby mode: | * One of the servers is operational, and the other server is in standby mode: |
Revision as of 08:15, 2 June 2022
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.
Change of state is either:
- Communication between the servers is lost or resumed
- A server changes state from Standby to Operational, or vice versa
- 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:
Copy/paste the action commands below into the event:
Action commands:
IF %op(%sev,>=,230) IF %op(%sev,<=,232) !Primary Server is operational WUDD 1001 1 IF %op(%syse(232) ,&, %syse(230)) !Secondary Server is operational WUDD 1001 2 ENDIF IF %op(%op(%syse(230),==,0) ,&, %op(%syse(232),==,0)) !Secondary Server is operational WUDD 1001 2 ENDIF IF %syse(231) !Both servers are running WUDD 1002 1 ENDIF IF %op(%syse(231),==,0) !No communication with the other server WUDD 1002 0 ENDIF !Start a 10 sec timer $ST L%1.dir W100 L9999 ENDIF ENDIF