Troubleshooting host name overwrites of Linux EC2 instance, while adding a Linux server monitoring agent

Troubleshooting host name overwrites of Linux EC2 instance, while adding a Linux server monitoring agent

You can monitor system level metrics of Linux EC2 instances by installing Site24x7's Linux server monitoring agent
  
Once the agent is installed, the instance will be automatically added to your Site24x7 account. Please note that Site24x7 uses host name and IP address to uniquely identify individual EC2 instances. However, if you find two different EC2 instances with the same host name in the monitor details page, then please follow the steps below.
 
Please do the following edits in the Linux server monitoring agent installed in the EC2 instance showing the duplicate host name entry:
  1. Edit the configuration file "/opt/site24x7/monagent/conf/monagent.cfg"
  2. Change the [PRODUCT_REGISTRATION_KEY]
    from site24x7 = SITE24X7
    to site24x7 = SITE24X7NEW
  3. Change the [AGENT_INFO]
    from agent_key = "AGENT_KEY"
    to agent_key = 0
  4. Restart the agent by using "sudo /etc/init.d/site24x7monagent restart"