Consultor Eletrônico



Kbase P130404: How to get the domain name of the host for OpenEdge Management alerts?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/04/2008
Status: Unverified

GOAL:

How to get the domain name of the host for OpenEdge Management alerts?

FACT(s) (Environment):

All Supported Operating Systems
Progress 9.x
OpenEdge 10.x

FIX:

The host name may appear in many places. It depends on where the domain name is to be displayed as to which approach should be used.


1. If it is the domain name of the host that is sending the alert is wanted then that should be available in the "Host:" field of the message body as shown below.


OpenEdge Management Alert [2]
Alert Name: SystemMemoryUsedThresholdExceeded
Severity: Error
Host: tsbreak.tsx.com
Container: tsbreak
Resource: Memory
Occurred: Apr 8, 2008 4:57:46 PM
Reason: System Memory Used Threshold Exceeded! Value: 99.4, Threshold 50.0 (9619) Occurrence Count: 10 Trigger value: 50.0 Link to OpenEdge Management:

2. With the above example if the fully qualified domain name is not shown on the "Host:" line check the hosts file for the server to see how it was entered.
The hosts file is in /etc/hosts on UNIX and in C:\WINDOWS\system32\drivers\etc on MS Windows.
The command "hostname" could also be run to indicate how the host was named.

OpenEdge Management is using a " getHostName " to obtain this value and will only display what is found in the hosts file.


3. If the domain name is desired in the subject line, a customized e-mail alert must be used. Use the %HOST% or the fully qualified domain name in the subject line.
%HOST% is dependant upon the HOST file entry. If this does not provide the fully qualified path, either edit the host file with the fully qualified path or use the Fully Qualified Domain Path rather than %HOST% in the Subject Line.

ie.

Subject: OpenEdge Management Alert %HOST% %CONTAINERNAME%.%RESOURCENAME% %ALERTNAME%

or

Subject: OpenEdge Management Alert myhost@domain.name.com %CONTAINERNAME%.%RESOURCENAME% %ALERTNAME%

Message:
OpenEdge Management Alert [%ALERTID%]
Alert Name: %ALERTNAME%
Severity: %ALERTSEVERITY%
Host: myhost@domain.name.com
Container: %CONTAINERNAME%
Resource: %RESOURCENAME%
Occurred: %ALERTLASTOCCURRENCE%
Reason: %ALERTREASON%
Occurrence Count: %ALERTCOUNT%
Trigger value: %ALERTTRIGVALUE%
Link to OpenEdge Management: %HOSTLINK%
Link to resource: %RESOURCELINK%
Link to alert: %ALERTLINK%