A mam chwilke to Ci zapodam w miarę gotowca...
<?php
$serwer = '10.0.0.3';
$port = 80;
header('Content-type: image/gif');
$im = imagecreate(60, 13);
$status = 'offline';
if($f = @fsockopen($serwer, $port, &$errno, &$errstr, 5
)) {
$status = 'online';
}
$tlo = imagecolorallocate($im, 255, 255, 255);
$zielony = imagecolorallocate($im, 0, 200, 0);
$czerwony = imagecolorallocate($im, 200, 0, 0);
imagestring($im, 3, 5, 0, $status, $status == 'online' ? $zielony : $czerwony);
imagegif($im);
imagedestroy($im);
?>