Webpage based router status page?

Hi there
I’m trying to make a server status page for my router, but I’m struggling to fund away to do this. I’ve tried using php code but it doesn’t seem to work, I’ve also tried using a remote image but that doesn’t seem to load.

Has anyone manage to create a status page?

Thanks

what exactly do you want to do? a page on remote webserver?

Well in a nutshell simply, from my webpage ping/telnet/traceroute the router - to see if up and if it is show as “server online”

Like: http://btbusiness.custhelp.com/app/service_status

If you already have a network management system, you could integrate Mikrotik into your existing solution using SNMP, or SSH/Telnet, or even a custom API commands.

The Dude, which is made by Mikrotik is also a good option and includes a web interface.

show the code - it’s much easier to correct it than to invent a wheel…

Here is the script (php) I’m trying to run from my webserver to the router :

<?php
print'<table width="150">';
$server = "SERVER IP HERE";
$portg = "6667";
$timeout = "5";

if ($server and $port and $timeout) {
$ircserv = @fsockopen("$server", $portg, $errno, $errstr, $timeout);
}
print'<tr><td align="center"><strong>Server Status</strong></td></tr>';
if($ircserv) { print'<tr><td>Server Status:</td><td><font color="#00FF00"><strong> Online</strong></font><br><br></td></tr>… }
else { print'<tr><td>Server Status:</td><td><font color="#FF0000"><strong> Offline</strong></font><br><br></td></tr… }
print'</table>';
?>

it checks IRC service. there’s no IRC server on the router, so change $portg = “6667”; to something existing, like web server ($portg = “80”:wink: or WinBox ($portg = “8291”:wink: - check IP → Services

Thanks - I was trying on port 80 - and that didn’t work but using winbox its working great. Thanks for the idea

Karma +1