Server Uptime
by rcarrington (community developer)popularity rank: 5
description: This widget displays your linux web server's uptime and average load every 30 seconds. If your server isn't reachable, a bright red screen appears and an alarm sounds. A small php file is required on your server - download it here: http://www.ryanc.com/chumby
Click the widget to enable audio if the widget uses it. Note that modern browser security may prevent the widget from loading content from other web sites, however the widget should be able to load properly on the chumby devices. These previews are possible through the use of Ruffle ‐ note that Ruffle is still a work in progress, and not all Flash features are implemented, so some widgets may not perform optimally.
Blue Octy LLC is providing these community-developed apps as a courtesy and makes no representations regarding the apps or any information related to them. Any questions, complaints or claims regarding the apps should be directed to the appropriate author
Comments
edtella
– December 13 2014
<?php if($_REQUEST['pass']=="CHANGEME"){ $uptime = explode(" ", @exec("cat /proc/uptime")); echo "uptime=".(int)$uptime[0]; $load = explode(" ", @exec("cat /proc/loadavg")); echo "&load0=".$load[0]."&load1=".$load[1]."&load2=".$load[2]."&"; } ?>
edtella
– December 13 2014
Yeah I was really disappointed that the link didnt work. Fortunately the way back machine came to the rescue! https://web.archive.org/web/20100127105103/http://www.ryanc.com/chumby The PHP code is posted there :)
mathias.bonert
– October 15 2014
Does anyone please have the original script for linux servers? http://www.ryanc.com/chumby is gone... Thanks.
adrian.bloomer
– April 03 2009
What is the "password"? (When you configure the widget)
allanh
– February 23 2009
It seems when the server is unreachable it just keeps loading instead of giving an alarm? The alarm page doesn't say which server it's about - that would be a nice touch when monitoring several. Overall: Great widget! :-)
horsey
– February 03 2009
Hi All, I've amended the script for Windows server 2008 now as the previous version failed to find the time correctly. Please see this link for the script: http://forum.chumby.com/viewtopic.php?pid=19975#p19975
rcarrington
– January 30 2009
Adrian, there's a link below (in these comments) for a PHP script for windows servers. I'm not sure about monitoring a built-in web server, but if you get it working, please post how you did it!
adrian.bloomer
– January 29 2009
Can it do servers that aren't linux? Can it show chumby's uptime with the built-in web server? When I tried this, it just kept "loading".
rcarrington
– January 06 2009
Yes, you can add this widget to your channel as many times as you'd like in order to monitor multiple servers. Just give each one a different nickname (when you're configuring the widget).
jhooper
– January 05 2009
is there a way to monitor multiple servers? that would be great ..
rcarrington
– October 15 2008
This widget now let's you add a server name, so you can monitor multiple servers.
eger
– July 08 2008
Would be neat if the "Server Uptime:" text was replaced by the widget name or configurable per widget so you could monitor multiple servers.
horsey
– June 09 2008
Raymond, were you using the Linux or Windows PHP script?
Raymond Day
– May 30 2008
In the php code I had to take out the pass stuff and the { and } then it worked! -Raymond Day
horsey
– April 16 2008
Please see http://forum.chumby.com/viewtopic.php?id=832 for the PHP code for a windows server
Log in to leave a comment.