Web Hosting Talk







View Full Version : Server Monitoring


ARETNA
05-13-2002, 03:36 PM
Hello fellow WHT members!

I would like to know if you know of any server monitoring software that will allow to check to see if a specific port is running on an IP address


Thanks in advance.

BMurtagh
05-13-2002, 08:00 PM
if you need help adding a port to monitor let me know.
here's one that was posted, then i edited the dns status part:


<?php
$box = $HTTP_SERVER_VARS["SERVER_NAME"];
$boxip = $HTTP_SERVER_VARS["SERVER_NAME"] . " (" . gethostbyname($HTTP_SERVER_VARS["SERVER_NAME"]) . ")";
?>

<table width="100%" height="400">
<tr>
<td width="100%">
<center>

<p><font face="Arial" size="2"><b>System Uptimes</b></font></p>
<p> <font size="-1"><?php echo $box; ?>:
</font> <font size="-1">
<script language="php">
$date = (date("l, M d, Y - h:i:s A"));
$uptime = system(uptime);
</script>
</font></p>

<p><br><font face="Arial" size="2"><b>System Services</b><?
$noc_http = fsockopen("$box", 80, $errno, $errstr, 30);
if(!$noc_http) {
$noc_http = "red";
} else {
fclose($noc_http);
$noc_http = "green";
}

$noc_ssh = fsockopen("localhost", 22, $errno, $errstr, 30);
if(!$noc_ssh) {
$noc_ssh = "red";
} else {
fclose($noc_ssh);
$noc_ssh = "green";
}
/*
$noc_telnet = fsockopen("localhost", 23, $errno, $errstr, 30);
if(!$noc_telnet) {
$noc_telnet = "red";
} else {
fclose($noc_telnet);
$noc_telnet = "green";
}
*/
$noc_ftp = fsockopen("localhost", 21, $errno, $errstr, 30);
if(!$noc_ftp) {
$noc_ftp = "red";
} else {
fclose($noc_ftp);
$noc_ftp = "green";
}

$noc_smtp = fsockopen("localhost", 25, $errno, $errstr, 30);
if(!$noc_smtp) {
$noc_smtp = "red";
} else {
fclose($noc_smtp);
$noc_smtp = "green";
}

$noc_pop3 = fsockopen("localhost", 110, $errno, $errstr, 30);
if(!$noc_pop3) {
$noc_pop3 = "red";
} else {
fclose($noc_pop3);
$noc_pop3 = "green";
}

$noc_mysql = fsockopen("localhost", 3306, $errno, $errstr, 30);
if(!$noc_mysql) {
$noc_mysql = "red";
} else {
fclose($noc_mysql);
$noc_mysql = "green";
}

$noc_dns = fsockopen("localhost", 53, $errno, $errstr, 30);
if(!$noc_dns) {
$noc_dns = "red";
} else {
fclose($noc_dns);
$noc_dns = "green";
}

?> </font></p>
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="center"></div>
</td>
<td>
<div align="center"><font size="-1">http</font></div>
</td>
<td>
<div align="center"><font size="-1">ssh</font></div>
</td>
<td>
<div align="center"><font size="-1">ftp</font></div>
</td>
<td>
<div align="center"><font size="-1">smtp</font></div>
</td>
<td>
<div align="center"><font size="-1">pop3</font></div>
</td>
<td>
<div align="center"><font size="-1">mysql</font></div>
</td>
<td>
<div align="center"><font size="-1">dns</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font size="-1"><?php echo $boxip; ?></font></div>
</td>
<td>
<div align="center" style="font-size: 20pt; color: <? echo($noc_http); ?>" width="15" height="15">•</div>
</td>
<td>
<div align="center" style="font-size: 20pt; color: <? echo($noc_ssh); ?>" width="15" height="15">•</div>
</td>
<td>
<div align="center" style="font-size: 20pt; color: <? echo($noc_ftp); ?>" width="15" height="15">•</div>
</td>
<td>
<div align="center" style="font-size: 20pt; color: <? echo($noc_smtp); ?>" width="15" height="15">•</div>
</td>
<td>
<div align="center" style="font-size: 20pt; color: <? echo($noc_pop3); ?>" width="15" height="15">•</div>
</td>
<td>
<div align="center" style="font-size: 20pt; color: <? echo($noc_mysql); ?>" width="15" height="15">•</div>
</td>
<td>
<div align="center" style="font-size: 20pt; color: <? echo($noc_dns); ?>" width="15" height="15">•</div>
</td>
</tr>
</td>
</tr>
</table>
<p> </p>
</center>
</td>
</tr>
</table>


example: www.logicservers.net/status.php

alwaysweb
05-13-2002, 09:22 PM
Hi Aretna,

We're using http://www.Alertra.com to monitor our servers, and it works great.

<<<
PROTOCOLS SUPPORTED

HTTP
HTTPS
PING
SMTP
POP3
IMAP4
FTP
TCP (Test TCP socket connections with any host and port.)
>>>

We've been happy with them, and have found that their wonderful alerting options (email, ICQ, AOL IM, phone, and SMS) are super useful. :D

phpjames
05-13-2002, 11:54 PM
Bring back ServerRat! ;-)

SuperDon
05-14-2002, 02:44 AM
We have signed up to Alerta's free month trial and it seems really fantastic. A little pricey though, maybe have to change the monitoring intervals after the free trial is up ;)

Avail
05-14-2002, 03:12 PM
I have an old Windows PC that I have up 24/7 running Servers Alive? (http://www.woodstone.nu/salive/), a free Windows server monitor... it sure is cheaper than Alertra :)

Def
05-15-2002, 12:58 AM
ServersAlive works great for us.

RackMy.com
05-15-2002, 04:25 AM
IPMonitor from DeepMetrix, it's pretty nice and easy.

neil
05-15-2002, 04:44 AM
just wanted to say thanks logic...

at work I use a program called netsaint (a google search will get you a url) it's really nice - but kind of over blown if you just want to monitor one server.

however if you have multiple servers are are looking for a 'whats up gold' replacement... netsaint is the way to go.

-neil

raydenz
05-16-2002, 12:33 AM
BigBrother in my opinion is the way to go.

http://www.bb4.com

I montor ALL servers, routers, t1 and dsl customers from it

iris99
05-16-2002, 02:03 AM
Why pay, do it yourself:
http://www.netsaint.org/