PDA

View Full Version : Monitoring Software


Everyday
01-10-03, 06:27 AM
Does anyone know what monitoring software would allow us to have a page such as http://httpme.com ? Is that something custom or is it something that is included with some piece of software?

We setup nagios to test it but it does have the ability for a live stats page.

Thanks

allan
01-12-03, 07:00 PM
I assume you mean this page:

http://status.httpme.com/

There are a lot of different programs you can use to do this, most require some customization to get the page the way you want, I personally like Penemo:

http://www.penemo.org/

If you are a PHP fan, take a look at Online Server Status:

http://www.schwebdesigns.com/serverstatus/

(though this will require some customization to check all services). I am sure there are other scripts out there that provide closer functionality to the one on HTTPME

Everyday
01-13-03, 12:41 PM
Yes.

I was hoping to find something that we could also use for our dedicated customers and give them a URL that just had their servers on it. So far nagios is the only one I know that can do that.

allan
01-13-03, 05:04 PM
If you want bandwidth reports, not service status, there is MRTG (http://www.mrtg.org/). Nagios also does what you want, and is a great program.

Dave
01-13-03, 10:04 PM
Yep, nagios is a great program. It works really well...

Jim
01-14-03, 09:21 PM
I think the httpme status page is a modified version of the one available at the bottom of this page (http://scripts.tlcwe.com/).

kunal
01-15-03, 08:42 AM
Hey,
If you guys are yet looking for something like HTTPME, drop me a line and ill email the code to you guys :)

kunal

Sitestash
01-19-03, 11:23 AM
here's my code, save it as something.php, you need a red and green .gif image or edit the code to whatever you want.

Edit the $box line to add more servers, and the $port line to add more ports to check

EDIT: my test/play script is still online, copy the gifs off it if you want
http://www.ngdsinc.com/status.php


<html>
<head>
<title>Server Status</title>
<STYLE type="text/css"><!--
A:link{color:black;text-d*****tion:none}
A:visited{color:black;text-d*****tion:none}
A:active{color:black;text-d*****tion:none}
A:hover{color:red;text-d*****tion:none}
BODY
{
scrollbar-face-color: #FFFFFF;
scrollbar-shadow-color: #000000;
scrollbar-highlight-color: #000000;
scrollbar-3dlight-color: #FFFFFF;
scrollbar-darkshadow-color: #FFFFFF;
scrollbar-track-color: #FFFFFF;
scrollbar-arrow-color: #666666;
}
--></STYLE>
</head>
<body topmargin="0" leftmargin="0" style="font-family: Verdana; font-size: 10px">
<div align="center"><strong><font color="#FF0000" size="4">Server Status Page</font></strong><br>
If your server ID is not shown then visit your control panel for status.<br>

<?php


$box = array("SVR-001" => "localhost", "SVR-002" => "000.000.000.000");


$port = array("http" => "80", "ssh" => "22", "telnet" => "23",
"ftp" => "21", "smtp" => "25", "pop3" => "110", "mysql" => "3306",
"dns" => "53", "cpanel" => "81");


$totalports = count($port);


foreach($box as $servename => $server) {
?>
<table width="400" border="1" cellspacing="0" cellpadding="3" bordercolor="#666666" bordercolordark="#FFFFFF">
<tr>
<td bgcolor="#006699" colspan=<?php echo $totalports+1; ?>"><font color="#FFFFFF" face="Verdana, Arial" size="2"><b>System
Monitor</b></font></td>
</tr>
<tr>
<td colspan=1 bgcolor="#FFF4BB"><font face="Verdana, Arial" size="2"><b>Server
ID </b></font></td>
<td colspan=<?php echo $totalports; ?>"><font color="#800000" face="Verdana, Arial" size="2"><b><?php echo $servename; ?></td>
</tr>
<tr>
<td colspan=1 bgcolor="#FFF4BB"><font face="Verdana, Arial" size="2"><b>Date</b></font></td>
<td colspan=<?php echo $totalports; ?>"><font color="#800000" face="Verdana, Arial" size="2"><b><?php
$timeadjust = ($hourdiff * 60 * 60);
$melbdate = date("l, M d, Y - h:i s",time() + $timeadjust);
echo $melbdate;
?></b>
</font>
</td>
</tr>
<tr>
<td bgcolor="#FFF4BB"><font face="Verdana, Arial" size="2"><b>Services</b></font></td>
<?php

foreach($port as $portname => $thename){
?>
<td align="center" bgcolor="#F1F1F1"><font face="Verdana, Arial" size="-2"><b><?php echo $portname; ?></b></font></td>
<?php
}
?>
</tr>
<tr>
<td bgcolor="#FFF4BB">
<font face="Verdana, Arial" size="2"><b>Status</b></font>
</td>
<?php

foreach($port as $portname => $theport) {
$count++;
$portnameimg = fsockopen("$server", $theport, $errno, $errstr, 10);
if(!$portnameimg) {
$portnameimg = "<img src=\"red.gif\">";
} else {
fclose($portnameimg);
$portnameimg = "<img src=\"green.gif\">";
}
?>
<td align="center"><? echo($portnameimg); ?></td>
<?php
}
?>
</tr>
</table>
<br>
<?php
}
?>
<table width="225" cellspacing="0" cellpadding="2" border="1" bordercolor="#000000" bordercolordark="#FFFFFF">
<tr bgcolor="#006699">
<td colspan=2><font color="#FFFFFF" face="Verdana, Arial" size="2"><b>Legend</b></font></td>
</tr>
<tr>

<td><font face="Verdana, Arial" size="2"><b>Service Ready</b></font></td>
<td align="center"><img src="green.gif"></td>
</tr>
<tr>

<td><font face="Verdana, Arial" size="2"><b>No Response - Failure</b></font></td>
<td align="center"><img src="red.gif"></td>
</tr>
</table>
</div>
</body>
</html>