Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache Status Monitor |
|
Author |
|
Materix
Joined: 30 Aug 2012 Posts: 42
|
Posted: Fri 05 Oct '12 15:17 Post subject: Apache Status Monitor |
|
|
Does Apache Status Monitor include any other functionality than a small GUI that can stop/start the service? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 05 Oct '12 16:25 Post subject: |
|
|
Indeed it does it shows if the service is running or not, Works for multiple instances and also with remote machines.
I don't know if that is what you are looking for with that tool. |
|
Back to top |
|
Materix
Joined: 30 Aug 2012 Posts: 42
|
Posted: Fri 05 Oct '12 16:37 Post subject: |
|
|
Can you install it on your local machine to monitor remote apache services? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 05 Oct '12 16:45 Post subject: |
|
|
Materix wrote: | Can you install it on your local machine to monitor remote apache services? |
Yes you can. By install just copy ApacheMonitor.exe to you local computer (maybe you need some dlls too from the bin folder). Disclamer: I made it last with Windows 2003 server. I don't know how it works with the newer Windows version cause the firewall blocks a lot and is enabled by default.
I for myself installed a SSH server for windows on the remote machine and controll apache over that on the command line. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 05 Oct '12 16:49 Post subject: |
|
|
For monitoring multiple server I made a simple PHP script which runs every 5 minutes (command line) over the scheduler.
Code: |
<?php
error_reporting(0);
function check_server($server, $port, $name) {
preg_match("/^(http:\/\/)?([^\/]+)/i", "$server", $match);
$host = $match[2];
preg_match_all("/\.([^\.\/]+)/",$host, $match);
$matches[0][0] = $matches[1][0];
$host = trim($host);
$socket = "";
$socket = fsockopen("$host", $port, $errno, $errstr, 2);
if(!$socket) {
mail('me@example.com',$name .' down on '. $server,'');
}
}
check_server('www.example.com','80','http');
check_server('other.example.com','22','ssh');
check_server('de.example.com','443','https');
?>
|
|
|
Back to top |
|
Materix
Joined: 30 Aug 2012 Posts: 42
|
Posted: Fri 05 Oct '12 17:20 Post subject: |
|
|
Cool |
|
Back to top |
|
|
|
|
|
|