Bug 548488 - The alert message sent to IRC and Email does not have the correct server hostname
Summary: The alert message sent to IRC and Email does not have the correct server hos...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: RHQ Project
Classification: Other
Component: Alerts
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Heiko W. Rupp
QA Contact: wes hayutin
URL: na
Whiteboard:
Depends On:
Blocks: RHQ_Alerts
TreeView+ depends on / blocked
 
Reported: 2009-12-17 15:56 UTC by wes hayutin
Modified: 2009-12-17 16:19 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-17 16:19:35 UTC
Embargoed:


Attachments (Terms of Use)
FQDN is known to RHQ (314.92 KB, image/png)
2009-12-17 15:56 UTC, wes hayutin
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.