Troubleshooting host name overwrites of Linux EC2 instance, while adding a 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:
- Edit the configuration file "/opt/site24x7/monagent/conf/monagent.cfg"
- Change the [PRODUCT_REGISTRATION_KEY]
from site24x7 = SITE24X7
to site24x7 = SITE24X7NEW
- Change the [AGENT_INFO]
from agent_key = "AGENT_KEY"
to agent_key = 0
- Restart the agent by using "sudo /etc/init.d/site24x7monagent restart"