It's better to put the name you want to refer to a system as in the hosts.cfg name field and then use the CLIENT: directive to map what the machine thinks its name is to what you want to call it. You can switch things over to using CLIENT easily enough if there aren't too many hosts using NAME. Simply edit hosts.cfg, moving the entry behind NAME to the name field, deleting NAME and adding CLIENT. Then use the rename command in xymon to move all the history over.
Thanks, Larry Barber
On Thu, Apr 25, 2013 at 12:50 PM, Root, Paul T <Paul.Root at centurylink.com>wrote:
--hostname <hostname> on the command line of the runclient.sh script.****
*From:* xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] *On Behalf Of *deepak deore *Sent:* Thursday, April 25, 2013 12:35 PM *To:* xymon at xymon.com *Subject:* [Xymon] how to get the alias (diff hostname than the actual) in mail alert?****
we are using NAME for the odd hostnames on amazon EC2,****
NAME:server01-prod****
But when we get the mail alerts, the actual servername comes which is confusing, how can we set the same name of the host in mail which is set in NAME option in hosts.cfg.****
Thanks,****
Deepak****
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon