FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Is there new Server Status Gif





Possum
Hi

There have been some changes on FriHost and I believe the Server Status Gif is not needed




Has it been replaced by a new one


Thank You...
coreymanshack
Possum wrote:
Hi

There have been some changes on FriHost and I believe the Server Status Gif is not needed




Has it been replaced by a new one


Thank You...


I looked up server status and found this website,
http://frihost-server-status.us.to/
but it looks like everything is wrong there too, an update would in fact be nice.
Possum
thx coreymanshack
deanhills
coreymanshack wrote:
I looked up server status and found this website,
http://frihost-server-status.us.to/
but it looks like everything is wrong there too, an update would in fact be nice.
I looked this link up quite often when we had been under our recent attacks, however notice the same. Right now it shows Servers 2 and 3 as being down. Would be nice if it could be updated.
mOrpheuS
I've made a new one, if anyone is still interested -


Code:
http://www.cybermilitia.net/frihoststatus/sig.gif


It's not as compact as the old one, but it is having all 4 servers. Neutral

Also ready, a new server status page.

To reduce server load, both the signature image and the server status page are limited to a maximum refresh rate of once every 5 minutes.
Bondings
I changed my signature to the new one. Thanks mOrpheus! Very Happy
deanhills
Thanks mOrpheuS, even a non-geek like me can understand the status page now in one glance, much easier to read. I've put it in my favourites.

Hopefully it will bring us good luck. Last night I timed out a few times with Frihost, but not sure whether it is on my end or Frihost end, so did not report it. I sometimes wonder whether the settings in my Explorer, especially those relating to my Firewall, may be a factor too, or my anti-virus software, Kaspersky.
coreymanshack
Thanks morpheus, the status image looks really good Smile
Daniel15
My bad... I made the old status image, but haven't had time to keep it up to date. Sorry everyone Sad
I have made my old image and old site redirect to mOrpheuS' new one, so everyone that has the link bookmarked (or the image in their signature) will still be able to use the current link with no changes Smile

mOrpheuS, your one looks pretty good. Now you just have to add load average and Apache stats and such to the page. You can have my code if you want, it's really messy though. Razz
mOrpheuS
Daniel15 wrote:
You can have my code if you want, it's really messy though. Razz

Yeah, you're no good at PHP - we all know that. Razz
But I'll take what I can get.

I had some ideas around how to do that, but wasn't sure it it was the best way to do it (needed exec and whatnot) and didn't work on server 2/3.
Having somewhere to copy-paste it from will make it so much easier.


p.s. - by the way, your page's xhtml markup doesn't validate correctly. Surprised
Daniel15
mOrpheuS wrote:
Daniel15 wrote:
You can have my code if you want, it's really messy though. Razz

Yeah, you're no good at PHP - we all know that. Razz
But I'll take what I can get.

Haha, my old code is pretty messy... Was before I leant about proper design patterns and object orientation Razz

The load average one isn't bad though. A lot of commented code Razz
Here it is:
Code:

<?php
//$loadavg = exec('cat /proc/loadavg');
//$loadavg = file_get_contents('/proc/loadavg');
//$loadavg = split(" ", $loadavg);
//echo $loadavg[0], ', ', $loadavg[1], ', ', $loadavg[2];

$loadavg = sys_getloadavg();
echo round($loadavg[0], 2), ', ', round($loadavg[1], 2), ', ', round($loadavg[2], 2);
?>


I believe I originally got Bondings to add /proc to the open_basedir setting for my virtual host, or server wide, I can't remember (cPanel lets you change settings for individual virtual hosts, not sure if DirectAdmin does that). This didn't work on FreeBSD servers, as I guess they don't have a /proc file system or not in the same way as Linux does). Meanwhile PHP added the nice sys_getloadavg() function which seems to work on everything except Windows, and doesn't need open_basedir changes.

In any case, my image used to just load these off each server, and show them in the signature.

Here's the stats one: http://pastebin.ws/elit7r

Apache uptime only works if the Apache server status page is enabled. On a cPanel server, you can retrieve it by using http://localhost/whm-server-status (only allowed locally, it's blocked publicly). MySQL uptime needs a username and password for the server (doesn't need permissions on any database, it can be a very locked down account).

Edit: The code for the image is what's really messy. http://pastebin.ws/1idt4j Surprised
mOrpheuS
Implemented MySQL uptime & Server load (past 5 minutes) - http://www.cybermilitia.net/frihoststatus/

Haven't implemented Apache uptime yet, as it's only available for cPanel.
coreymanshack
mOrpheuS wrote:
Implemented MySQL uptime & Server load (past 5 minutes) - http://www.cybermilitia.net/frihoststatus/

Haven't implemented Apache uptime yet, as it's only available for cPanel.


We should get ghost to make a new design for that page.

Daniel15 wrote:

mOrpheuS wrote:
Daniel15 wrote:
You can have my code if you want, it's really messy though. Razz

Yeah, you're no good at PHP - we all know that. Razz
But I'll take what I can get.

Haha, my old code is pretty messy... Was before I leant about proper design patterns and object orientation Razz

The load average one isn't bad though. A lot of commented code Razz
Here it is:
Code:

<?php
//$loadavg = exec('cat /proc/loadavg');
//$loadavg = file_get_contents('/proc/loadavg');
//$loadavg = split(" ", $loadavg);
//echo $loadavg[0], ', ', $loadavg[1], ', ', $loadavg[2];

$loadavg = sys_getloadavg();
echo round($loadavg[0], 2), ', ', round($loadavg[1], 2), ', ', round($loadavg[2], 2);
?>


I believe I originally got Bondings to add /proc to the open_basedir setting for my virtual host, or server wide, I can't remember (cPanel lets you change settings for individual virtual hosts, not sure if DirectAdmin does that). This didn't work on FreeBSD servers, as I guess they don't have a /proc file system or not in the same way as Linux does). Meanwhile PHP added the nice sys_getloadavg() function which seems to work on everything except Windows, and doesn't need open_basedir changes.

In any case, my image used to just load these off each server, and show them in the signature.

Here's the stats one: http://pastebin.ws/elit7r

Apache uptime only works if the Apache server status page is enabled. On a cPanel server, you can retrieve it by using http://localhost/whm-server-status (only allowed locally, it's blocked publicly). MySQL uptime needs a username and password for the server (doesn't need permissions on any database, it can be a very locked down account).

Edit: The code for the image is what's really messy. http://pastebin.ws/1idt4j Surprised


That's awesome, I didn't know the sys_getloadavg() function existed.
Related topics
http://muonline.vn --> New server has copyright of Webzen
the new server?....(",)
Do i get Fantastico with your new server??
How to install phpnuke with new server on directadmin??
blackhawk [microsfot new server operating system but...
Server status script
Frihost server status checker
Upgrading server and inform users instead of a new server
Current server status
New Server Status page
frihost-server-test.gif
How about adding server load to the server status script?
Staying Logged in a Serious Problem Since the New Server
Server Status Page? Coming back anytime soon?
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Frihost Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.