Bug 548488

Summary: The alert message sent to IRC and Email does not have the correct server hostname
Product: [Other] RHQ Project Reporter: wes hayutin <whayutin>
Component: AlertsAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED NOTABUG QA Contact: wes hayutin <whayutin>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: na
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-17 16:19:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 547833    
Attachments:
Description Flags
FQDN is known to RHQ none

Description wes hayutin 2009-12-17 15:56:23 UTC
Created attachment 379021 [details]
FQDN is known to RHQ

Description of problem:

I properly get an alert message from rhq when I have set up the IRC alert sender.

<rhq_alerts_wes> Alert -- test01 (on 10-16-120-153.guest.rhq.lab.eng.bos.redhat.com RHQ Agent):  http://localhost:7080/alerts/Alerts.do?mode=viewAlert&id=10002&a=10001

However the URL of the server in the alert is set to localhost.  localhost should be the fully qualified domain name of the rhq server.

THe configuration in the alert and irc plugin do not have any fields that would effect the hostname of the server. I do not think I can configure the server in any way to fix this, if I can please let me know.

The fully qualified domain name of the server is known to the server, I'll post a screenshot for that.


Here is the alert I get via email..
------------------------------

- Resource Name: 10-16-120-153.guest.rhq.lab.eng.bos.redhat.com RHQ Agent
- Alert Name: testSNMP
- Alert Severity: !! - Medium
- Alert Date/Time: Thu Dec 17 10:47:02 EST 2009
- Conditions: 
  - Condition 1: Execute Availability  Scan SUCCESS
  - Date/Time: 2009/12/17 10:47:01 EST
  - Details: Success

  
------------------------------------------

Resource Hierarchy was:

 - 10-16-120-153.guest.rhq.lab.eng.bos.redhat.com
   |
   +- 10-16-120-153.guest.rhq.lab.eng.bos.redhat.com RHQ Agent


------------------------------------------

For additional details about this alert, go to http://localhost:7080/alerts/Alerts.do?mode=viewAlert&id=10002&a=10032

This message was delivered to you by RHQ.

------------------------------

Comment 1 wes hayutin 2009-12-17 16:11:50 UTC
rhq-server.properties   set to:

# ********************************** NOTE ************************************
# If the jboss.bind.address property is set to anything besides 0.0.0.0,
# uncomment the java.rmi.server.hostname property below and set it to the same
# value - setting it to ${jboss.bind.address} will *not* work.
jboss.bind.address=0.0.0.0
#java.rmi.server.hostname=0.0.0.0

Comment 2 wes hayutin 2009-12-17 16:19:35 UTC
setting the correct URI in RHQ General Configuration Properties 
System -> Configuration 

fixes the issue