PHP Server Monitor

PHP Server Monitor

System Online Status Checker

Setting up a daemon

The following section will show you how to setup a daemon (aka. cronjob or scheduled task) to allow servers checking at specified time intervals.
The status report (if any) will be sent by e-mail to the addresses set in the "Daemon Settings" screen of the application.

This tutorial acts as a generic sample and will explain the daemon setting-up only for Linux platforms (maybe shared hosting) with cPanel admin module.
For other OS & platform please check the corresponding documentation.
Either way, what it is important to know is that the script needed to be run by the daemon is /bins/os/sample/os-cron.php.

You must realize that making a daemon to run periodically the os-cron.php script is not the server monitor application responsibility.
In order to create a cron job please consult this tutorial or, if your environment is different from what is presented here you might try to find some online resources or even ask your internet service provider for support.
Please do not request WiseLoop support, as we will not be able to help you on this matter.
Thank you!

The following file structure is assumed to exists on the server as this is the default structure that the package comes with.

The assumed server file structure
Your cPanel look and feel might be slightly different from what you see in this tutorial as cPanel admin panel provides multiple themes and for this tutorial "paper_lantern" was used.

Step1. Find the Cron Jobs section

After login into cPanel account, please find the "Cron Jobs" section and enter.

cPanel Cron Jobs section

Step2. Add a new cron job

Under the "Add New Cron Job" section choose the cron running times and the command that should be run:

cPanel Cron Jobs section

The command should be similar to:

/usr/bin/php -q /home/php-server-monitor/bins/os/os-cron.php

where you need to replace:

  • /usr/bin/php with the actual server path where php is installed
  • /home/php-server-monitor/bins/os/os-cron.php with the actual path where os-cron.php is located

For shared hosting a command should look like (assuming that the php-server-monitor package is located under public_html root dir of the server):

/usr/bin/php -q /home/your-username/public_html/php-server-monitor/bins/os/os-cron.php

After clicking "Add New Cron Job" button, the job should appear under the "Current Cron Jobs" area:

cPanel Current Cron Jobs area

From now on, the os-cron.php will run periodically to check the servers and will send status reports by e-mail according to the settings made in the application daemon settings screen.

Regular License $16.00
Use by you or one client, in a single end product which end users are not charged for.

Extended License $80.00
Use by you or one client, in a single end product which end users can be charged for.

Short Information

Affordable server monitoring software that allows you to check the online status of your servers.
WiseLoop PHP Server Monitor can check status of any server types such as web servers, FTP servers, mail servers, SQL and NoSQL database servers, game servers, VPN servers, cloud servers, cdn servers etc.
By setting up a cron job, the tool is able to send email notifications and server status reports so you will be always up to date regarding the online status of your servers.
This system status checker tool is ideal for hosting providers, hosting resellers, IT systems administrators, database administrators, webmasters and can be used in any other scenarios where servers/services online status info is needed.

Buyer rating:
43 Sales