Server monitor
Features
Servermonitor is a script that helps you monitor your servers and services. You can maken a list of services you want to monitor and directly check if they are online or make a cronjob that will check every hour and email the results to your mailbox.
Use
Below you find example of how you can use the servermonitor class.
include("servermonitor.php");
$Monitor = new ServerMonitor();
$Monitor->AddTask("Local server", "192.168.1.106", 8888);
$Monitor->AddTask("Google server", "google.be", 80);
$Monitor->AddTask("Test server", "82.68.47.54", 80);
$Monitor->AddTask("Local MySQL server", "192.168.1.106", 8889);
$Monitor->AddTask("Sitebase Server", "sitebase.be", 80);
$results = $Monitor->DoTasks();
The variable $results will contain an array with the results.






Request processing...
19comments