Pages

Wednesday, May 7, 2014

configuring hq server for smtp server hyperic 5.0.0

configuring hq server for smtp server hyperic 5.0.0

This post is about configuring SMTP Server [ For sending email - alerts ] in Hyperic 5.0.0.

Let us assume hyperic server is installed at  /home/hyperic/server-5.0.0
This is our base directory.

In Hyperic 4.2.0.7, we are required to configure two files. where as 5.0.0 version configuring one file is enough.

We need to do the following:

  1. One files is required to be updated.
  2. Configure URL Correctly in Hyperic Server Portal
Part 1:

Edit <HQ Server directory>/conf/hq-server.conf

(1) Configuring Without Password

# Change to the SMTP gateway server
# maps to mail.smtp.host,
  server.mail.host=localhost
# Change to SMTP port
  mail.smtp.port=25
# SMTP properties
  mail.smtp.auth=false
  mail.smtp.socketFactory.class=javax.net.SocketFactory
  mail.smtp.socketFactory.fallback=false
  mail.smtp.socketFactory.port=25
  mail.smtp.starttls.enable=false
 
(2) Configuring With Password  
 
server.mail.host=smtp.server.ip
# Change to SMTP port
  mail.smtp.port=25
# SMTP properties
  mail.user=Someone@server.in
  mail.password=Password
  mail.smtp.auth=true
#  mail.smtp.socketFactory.class=javax.net.SocketFactory
#  mail.smtp.socketFactory.fallback=false
#  mail.smtp.socketFactory.port=25
#  mail.smtp.starttls.enable=false
  
Part 2:

Configure URL Correctly in Hyperic Server Portal :

Login to Hyperic Portal and click

Administration -> HQ Server Settings 


Set the following fields correctly
  • Base URL
  • From Email Address

Now Restart Hyperic Server and try to

  • Configure alert [Ex: Availability Alert]
  • Stop Agent in a machine
  • Check whether Alert is triggered and you get intimation via E-mail.
Reference:
http://pubs.vmware.com/vfabric5/index.jsp?topic=/com.vmware.vfabric.hyperic.4.6/Configuring_Hyperic_Server_for_SMTP_Server.html

No comments:

Post a Comment