PHP Server Monitor

PHP Server Monitor

System Online Status Checker

Using the Data Service

Along with the widgets that displays the servers statuses, the package offers a service that provides that status also.
The service can be consumed by any application built with any technology (i.e. build other widgets, applications or use it in any other scenarios).
Bottom line is that the service will offer raw online status for a requested server on demand without any UI, leaving the developer the freedom of choice to decide what to do with the data.

In this section, we will build a simple JavaScript AngularJS application that will get a server online status using the data service.
To keep the things as simple as possible, the status will be displayed inside a classical alert box without any other UI or DOM elements.

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

tut-file-structure.png
The assumed server file structure

The file we are editing is /sample/index.html

A very basic JavaScript AngularJS app using server monitoring data service should look like:

<html ng-app="demo-app" ng-controller="demoAppController">
    <head>
        <script type="text/javascript" src="../bins/lib/angular/angular.min.js"></script>
    </head>
    <script type="text/javascript">
        //create an AngularJS app
        var demoApp = angular.module('demo-app', []);
        //declare a controller
        demoApp.controller('demoAppController', function($http) {
            //call the api ping method for google web server (google.com:80)
            $http.get('../bins/api/ping.php?host=google.com&port=80')
                .then(function(serverStatus) {
                    //on success, display the server status
                    alert(JSON.stringify(serverStatus.data));
                }, function(error) {
                    //on error ...
                    alert(error);
                });
        });
    </script>
</html>

Looking at the JavaScript code above, after configuring the module, we created a basic AngularJS module (application) called demo-app:

var demoApp = angular.module('demo-app', ['wl-ng-sm']);

Then, we created a controller inside the demo application:

demoApp.controller('demoAppController', function($http) {
    $http.get('../bins/api/ping.php?host=google.com&port=80')
        .then(function(serverStatus) {
            alert(JSON.stringify(serverStatus.data));
        }, function(error) {
            alert(error);
        });
});

The code above is pretty much self explanatory: ping() method of the service is called via http and if everything goes fine, the server status displayed inside an alert box.

tut-data-service.png
Data Service Sample App
Note:
The sample above is available under the same /sample/ directory of the downloaded package.
Regular License $15.00
Use by you or one client, in a single end product which end users are not charged for.

Extended License $75.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:
37 Sales