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
Notes
If the error ./StartServer.sh: Permission denied occurs while executing
/etc/init.d/site24x7-onpremise-poller start
use the command:
sudo chmod -R 755 /opt/Site24x7OnPremisePoller
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

    • Silent installation of Linux On-Premise Poller

      You can perform a silent installation of an On-Premise Poller on a Linux server. Additionally, proxy configuration can also be set during this process. Execute the following commands in your terminal 64 bit OS: sudo wget ...
    • How to fix the "JRE libraries are missing or not compatible" error

      The Site24x7 On-Premise Poller installation may fail due to insufficient permissions on the default "tmp" directory. If you face the "JRE libraries are missing or not compatible" error in the installation of On-Premise Poller in CentOS, follow the ...
    • 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 ...
    • 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 ...
    • Installation of Linux On-Premise Poller using the console

      As per our latest announcement, the 32-bit On-Premise Poller is no longer supported from version 6.5 and above. To install the On-Premise Poller in your Linux machine using the console, execute the following commands in your terminal: 64 bit OS: sudo ...