Starting the On-Premise Poller as a service in Linux

Starting the On-Premise Poller as a service in Linux

For Linux, it is suggested to start the On-Premise Poller as a service. 
Use the command below to start the On-Premise Poller as a service:
/etc/init.d/site24x7-onpremise-poller  start

You can also stop, restart, uninstall, or get the running status of the service by using the commands below:
sudo /etc/init.d/site24x7-onpremise-poller  stop
sudo /etc/init.d/site24x7-onpremise-poller  restart
sudo /etc/init.d/site24x7-onpremise-poller  uninstall
sudo /etc/init.d/site24x7-onpremise-poller  status

If the service is not installed, you can install the service by navigating to the <poller_installed_directory> and running the InstallService.sh file.
For example: opt/Site24x7OnPremisePoller/InstallService.sh

Common issues in starting the On-Premise Poller as a service
By default, the Bash script command will be used to run our script. If the Bash has issues, the script running the On-Premise Poller as a service will throw errors.

To fix the issue: 
1. Edit the service script by running the command below:
sudo vi /etc/init.d/site24x7-onpremise-poller

2. Next, edit the lines below under the start(), stop(), and restart() functions:
  ./StartServer.sh & to sh StartServer.sh &
  ./StopServer.sh & to sh StopServer.sh &

3. Save the file.

    • Related Articles

    • Set proxy for Linux On-Premise Poller during installation

      There are 3 ways through which you can configure a proxy in an On-Premise Poller for a Linux server. During installation using the Installation Wizard Using the console During the silent installation of the On-Premise Poller Linux agent 1. During ...
    • Installation of Linux On-Premise Poller using the console

      Copy, paste, and execute the following commands in your terminal to install the On-Premise Poller 64 bit OS: sudo wget http://staticdownloads.site24x7.com/probe/Site24x7OnPremisePoller_64bit.bin sudo chmod 755 Site24x7OnPremisePoller_64bit.bin sudo ...
    • How do I uninstall an On-Premise Poller

      The default directories for installing the On-Premise Poller are: Windows: C:\Program Files(x86)\Site24x7OnPremisePoller Linux: /opt/Site24x7OnPremisePoller Follow the steps given below to uninstall the On-Premise Poller from your Windows or Linux ...
    • Adding On-Premise Poller on a Linux platform

      If your machine has SELinux configured, it needs to be temporarily disabled for the On-Premise Poller installation to be successful. To disable SELinux: Open a Terminal with root privileges and execute this command: setenforce 0 To add an On-Premise ...
    • Troubleshooting steps for On-Premise Poller

      Prerequisites and basic details: Prerequisites for installing On-Premise Poller Necessary ports to allow access to the installed On-Premise Poller How secure is On-Premise Poller Amount of bandwidth consumed by the On-Premise Poller software Adding ...