I'm wondering if anyone knows of something that will output the server status on to a page like "status.mynetwork.net". All the info I would like on this page would be.
Server...............................UP/Down [Linked/Delinked]
Or something similar. Just something to show if the server is up or down (the ircd portion not the whole server), and if its linked to the network.
What do you guys think the best software for that would be?
Thanks!
-Mark
Server Status Page
Moderator: Supporters
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
Some PHP that can kinda do what you want... unfortunatly, I have no idea how accurate it is, but it seems to work in most cases. There is an example of this available for viewing at http://www.x-tab.org/~ircd/bored.php
Code: Select all
<?php
$server = "server.yournet.com";
$port = "6667";
$churl = @fsockopen($server, $port, $errno, $errstr, 2);
if (!$churl) {
print "<font color=#FF0000>Offline</font>";
}
else {
print "<font color=#00FF00>Online</font>";
}
?>
-
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
You wont be able to have one tell if it is linked to the hub or not unless you have the script make an actual connection to the server and issue the MAP command.
If you want the stats to go into that much detail, the best thing would be to have en eggdrop running a TCL that either accepts web connections or updates a web page every few minutes.
If you want the stats to go into that much detail, the best thing would be to have en eggdrop running a TCL that either accepts web connections or updates a web page every few minutes.
Re: Server Status Page
A network that I used to chat on, Ethereal, does this. On their main page, they show linked servers prepended with a green dot, and delinked servers prepended with a red dot. I have an idea that they use Thales, but I'm not sure (I haven't been on that network for several months), so you may want to confirm with their webmaster.mixx941 wrote:I'm wondering if anyone knows of something that will output the server status on to a page like "status.mynetwork.net". All the info I would like on this page would be.
Server...............................UP/Down [Linked/Delinked]
Or something similar. Just something to show if the server is up or down (the ircd portion not the whole server), and if its linked to the network.
-
- Posts: 267
- Joined: Tue Jan 18, 2005 3:24 pm
- Location: Scotland - United Kingdom