How do I manually change the IP address or hostname of On-Premise Poller

How do I manually change the IP address or hostname of On-Premise Poller?

You can manually change the On-Premise Poller's IP address or hostname by following the steps below.
  1. Stop the On-Premise Poller service.
    Windows: Navigate to Start > Settings > Control Panel. Under Administrative Tools, click Services. You can also navigate to services.msc from Run. Stop the Site24x7 On-Premise Poller service as an administrator.
    Linux: Execute the following command:
    For older On-Premise Poller versions, use:
sudo sh StopServer.sh
    For On-Premise Poller version 6.7.9 and later (installed as a service), use: sudo systemctl stop site24x7-onpremise-poller
  2. Navigate to the <On-Premise_Poller_installed_directory>/conf/ folder.
    Below are the default directories for the On-Premise Poller installation:
    WindowsC:\Program Files(x86)\Site24x7OnPremisePoller
    Linux/opt/Site24x7OnPremisePoller
  3. Edit the serveragent.config file.
  4. To change the IP address, add the following key:
    LOCAL_IPADDRESS=<user_defined_ipaddress>
    To change the hostname, add this key:
    LOCAL_HOSTNAME=<user_defined_hostname that will be set to On-Premise Poller>
  5. Restart the On-Premise Poller.
    Windows: Go to services.msc and start the service SITE24X7_ONPREMISEMONITOR
    Linux: Execute the following command:
    For older On-Premise Poller versions, use:
    sudo nohup ./StartServer.sh >> logs/shell_script.log 2>&1 &
    For On-Premise Poller version 6.7.9 and later (installed as a service), use:
    sudo systemctl start site24x7-onpremise-poller
 
Notes
Changing the IP address or hostname in the On-Premise Poller will not disturb the monitoring of any of the associated monitors.