nerdbaggy / statuspage Goto Github PK
View Code? Open in Web Editor NEWPublic Status Page for UptimeRobot
Home Page: http://projects.spencerl.com/statuspage/
License: MIT License
Public Status Page for UptimeRobot
Home Page: http://projects.spencerl.com/statuspage/
License: MIT License
A complete backend rewrite to account for the recent pro options at uptimerobot is in the works
Security: Your tool uses Master API key (you can edit and delete) instead of the Monitor-Specific API (read only) keys.
Master key returns all monitored objects, the transition to the Monitor-Specific keys requires the addition of each key separately. This makes it easier to decide which monitored objects you want to show.
I've recently started using this, and I run a service that requires a ton of VPS, so the monitor list on my screen gets pretty long, as I have a 13 inch laptop, so I have about 16 VPS (give or take 2), and 3 Dedis on my UptimeRobot, so whenever I look at my status page, and I scroll down, the Powered by.. doesn't move with the list - http://puu.sh/gYyu1/f741fc6806.png
https://status.isiah.pw, not sure if you'll be able to see it as I'm sure it's screen sized based.
Just updated to the latest version - Seems the $exlucdedchecks are not working, its not excluding the servers.
The below is from the php-fpm log file on the server if its any help
PHP Notice: Use of undefined constant friendlyname - assumed 'friendlyname' in /public/StatusPage/StatusPage.php on line 22
PHP Notice: Use of undefined constant status - assumed 'status' in /public/StatusPage/StatusPage.php on line 23
PHP Notice: Use of undefined constant customuptimeratio - assumed 'customuptimeratio' in /public/StatusPage/StatusPage.php on line 24
PHP Notice: Use of undefined constant alltimeuptimeratio - assumed 'alltimeuptimeratio' in /public/StatusPage/StatusPage.php on line 25
PHP Notice: Use of undefined constant log - assumed 'log' in /public/StatusPage/StatusPage.php on line 26
PHP Notice: Use of undefined constant timezone - assumed 'timezone' in /public/StatusPage/StatusPage.php on line 27
Cheers
It would be cool to have a customizable twitter feed available. Maybe below the stats or when an issue arises, a tweet can be correlated with the outage. :)
"An error has occured" should be "An error has occurred"
function addContent(data) {
var req = $.ajax({
type: 'GET',
url: config.backendURL,
jsonpCallback: 'StatusPage',
contentType: "application/json",
dataType: 'jsonp',
data: data,
timeout: 7000,
error: (function(e) {
resultsPlaceholder.html('<h4>An error has occured</h4> <i class="fa fa-frown-o fa-3x"></i>');
}),
Hi
I changed my timezone on UptimeRobot to GMT 0 from GMT -6 previously (default). When I add new checks they now show -6 hours e.g.: http://i.spartanhost.net/s-17-20-18.png
All my other checks have had 6 hours deducted off the length of time they've been online eventhough it shows fine on UptimeRobot's website. Is their API reporting wrongly or is there something in your code to fix the timezone issue?
What is the format and what are the identifiers for the two configuration lines 'includedMonitors' and 'excludedMonitors'? Is there an example config file somewhere? I couldn't get it to work.
It would be very handy to support characters like ( and )
Latency graphs are in the new release which will be out soon!
Hi,
Uptime Robot dev. here.
As a suggestion, if the initial load can make the getMonitors request with logs=0 and "event detail requests (displayed in modal window)" with logs=1 parameter, there will be huge performance gains.
Great resource btw.
Hello,
thanks for creating this nice looking public status page. In the configuration there is an option for excluding checks:
https://github.com/nerdbaggy/StatusPage/blob/v2.1/StatusPage/config.php#L32
If you're just having some monitors you don't want to show up, I assume this works great. However, if you're having lot of monitors in your account and just want to display five (website, api, ... status) it's problematic. Could you please implement a feature to "whitelist" checks? (Display none but whitelisted checks on the page)
Thanks for your consideration!
I found Status Page was blank for a while. I check the log and found this line
"UptimeRobot API Error - API maintenance. Will be up very soon"
However, the front page for the public was a blank page with nothing useful on it.
Showing a info like "Oops, the server is down" or "please refresh it later" might be better.
Thanks and best regards!
Hi,
I have installed StatusPage on a FreeBSD 11 system using my UptimeRobot account. nginx is used as web server and is setup to serve static an PHP pages. I get a blank web page with the text "An error has occurred." The error log of ngnix shows:
2017/04/08 21:40:56 [error] 49814#0: *8 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: action in /var/www/data/status.site/statuspage/checks.php on line 16
PHP message: PHP Notice: Undefined index: responsetime in /var/www/data/status.site/statuspage/statusPage.php on line 57
PHP message: PHP Notice: Undefined index: log in /var/www/data/status.site/statuspage/statusPage.php on line 68
PHP message: PHP Notice: Undefined index: timezone in /var/www/data/status.site/statuspage/statusPage.php on line 93
PHP message: PHP Notice: Undefined index: timezone in /var/www/data/status.site/statuspage/statusPage.php on line 94
PHP message: PHP Notice: Undefined index: responsetime in /var/www/data/status.site/statuspage/statusPage.php on line 57
PHP message: PHP Notice: Undefined index: log in /var/www/data/status.site/statuspage/statusPage.php on line 68
PHP message: PHP Notice: Undefined index: timezone in /var/www/data/status.site/statuspage/statusPage.php on line 93
PHP message: PHP Notice: Undefined index: timezone in /var/www/data/status.site/statuspage/statusPage.php on line 94
PHP message: PHP Notice: Undefined index: responsetime in /var/www/data/status.site/statuspage/statusPage.php on line 57
PHP message: PHP Notice: Undefined index: log in /var/www/data/status.site/statuspage/statusPage.php on line 68
PHP message: PHP Notice: Undefined index: timezone in /var/www/data/status.site/statuspage/statusPage.php on line 93
PHP message: PHP Notice: Undefined index: timezone in /var/www/data/status.site/statuspage/statusPage.php on line 94
PHP message: PHP Notice: Undefined index: responsetime in /var/www/data/status.site/statuspage/statusPage.php on line 57
PHP message: PHP Notice: Undefined index: log in /var/www/data/status.site/statuspage/statusPage.php on line 68
PHP message: PHP Notice: Undefined index: timezone in /var/www/data/status.site/statuspage/statusPage.php on line 93
PHP message: PHP Notice: Undefined index: timezone in /var/www/data/status.site/statuspage/statusPage.p
2017/04/08 21:40:56 [error] 49814#0: *8 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: timezone in /var/www/data/status.site/statuspage/statusPage.php on line 93
PHP message: PHP Notice: Undefined index: timezone in /var/www/data/status.site/statuspage/statusPage.php on line 94" while reading upstream, client: A.B.C.D, server: status.domain.com, request: "GET /statuspage/checks.php?callback=StatusPage&_=1491680463694 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "status.domain.com", referrer: "http://status.domain.com/"
What in my configuration is wrong here? I would really like to have my own Uptime Robot statuspage.
Thank you in advance.
With kind regards,
Lars Wittebrood
Hi,
you're requesting the file includes/checks.php
eventhough this file moved to StatusPage/Ajax.php
.
See index.php at line 96.
Cheers,
f0o
Upgraded to v2.1 since the old version started erroring. Getting this in the logs. I've verified my API key. Thanks for the help :)
[Tue Nov 25 10:47:43 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning: curl_errno(): 1 is not a valid cURL handle resource in /var/www/html/uptime/StatusPage/StatusPage.php on line 49
[Tue Nov 25 10:47:43 2014] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant stat - assumed 'stat' in /var/www/html/uptime/StatusPage/StatusPage.php on line 54
[Tue Nov 25 10:47:43 2014] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant monitors - assumed 'monitors' in /var/www/html/uptime/StatusPage/StatusPage.php on line 20
[Tue Nov 25 10:47:43 2014] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant monitor - assumed 'monitor' in /var/www/html/uptime/StatusPage/StatusPage.php on line 20
[Tue Nov 25 10:47:43 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/uptime/StatusPage/StatusPage.php on line 20
[Tue Nov 25 10:47:44 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning: curl_errno(): 1 is not a valid cURL handle resource in /var/www/html/uptime/StatusPage/StatusPage.php on line 49
[Tue Nov 25 10:47:44 2014] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant stat - assumed 'stat' in /var/www/html/uptime/StatusPage/StatusPage.php on line 54
[Tue Nov 25 10:47:44 2014] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant monitors - assumed 'monitors' in /var/www/html/uptime/StatusPage/StatusPage.php on line 20
[Tue Nov 25 10:47:44 2014] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant monitor - assumed 'monitor' in /var/www/html/uptime/StatusPage/StatusPage.php on line 20
[Tue Nov 25 10:47:44 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/uptime/StatusPage/StatusPage.php on line 20
[Tue Nov 25 10:52:41 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning: curl_errno(): 2 is not a valid cURL handle resource in /var/www/html/uptime/StatusPage/StatusPage.php on line 49
[Tue Nov 25 10:52:41 2014] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant stat - assumed 'stat' in /var/www/html/uptime/StatusPage/StatusPage.php on line 54
[Tue Nov 25 10:52:41 2014] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant monitors - assumed 'monitors' in /var/www/html/uptime/StatusPage/StatusPage.php on line 20
[Tue Nov 25 10:52:41 2014] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Use of undefined constant monitor - assumed 'monitor' in /var/www/html/uptime/StatusPage/StatusPage.php on line 20
[Tue Nov 25 10:52:41 2014] [error] [client xxx.xxx.xxx.xxx] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/uptime/StatusPage/StatusPage.php on line 20
[Tue Nov 25 10:55:25 2014] [error] [client xxx.xxx.xxx.xxx] script '/var/www/html/uptime/Logs.php' not found or unable to stat
[Tue Nov 25 10:55:46 2014] [error] [client xxx.xxx.xxx.xxx] PHP Notice: Undefined index: cid in /var/www/html/uptime/StatusPage/Logs.php on line 6
"An error has occured :(" appears when I try to view it and I have tried the #32 fix to no avail. You can view the page at https://themmodernflash.com/statuspage.
Hello,
small info. I had to add:
CURLOPT_SSL_VERIFYPEER => false
line to
private function curlIt()
in
curl_setopt_array($curl, array(
to make fetching JSON status working correctly.
Regards
I had to run dos2unix on statuspage.min.js ... it's full of ^M 's
Using your status page it has been working with no issues but now i'm getting
An error occurred, please try again
Checked the API key that is all correct
How could we upgrade the API implemented to version 2 ?
Then edit the config.php in the includes folder to fit your needs.
The config file is actually in StatusPage folder or its probably a bad commit?
Hello! Uptime Robot API v1 will be dead after june 2017. I've created a new "statusPage.php" file compatible with API v2. You have to change "main.js" duration calculation method, but It's even easier now: just use the new "events.duration" as "diffSeconds" instead of doing the math by hand. Regards. Sorry for posting code directly in here... I'm no github guru :-)
I don't know how to describe the issue better, but with a large amount of entries in the table, it grows into the credits at the bottom:
http://i.yt.gl/get/44ecc/sheex.png
It's only cosmetics, but it looks somewhat broken ;)
Would appreciate if you can take a look at this issue!
Hello,
The status page has suddenly stopped working for me, In the logs on the server i'm getting the below on both my installs.
[26-Nov-2014 11:20:09 UTC] PHP Notice: Use of undefined constant stat - assumed 'stat' in /home/nginx/domains/domain.com/public/StatusPage/StatusPage.php on line 54
[26-Nov-2014 11:20:09 UTC] PHP Notice: Use of undefined constant monitors - assumed 'monitors' in /home/nginx/domains/domain.com/public/StatusPage/StatusPage.php on line 20
[26-Nov-2014 11:20:09 UTC] PHP Notice: Use of undefined constant monitor - assumed 'monitor' in /home/nginx/domains/domain.com/public/StatusPage/StatusPage.php on line 20
[26-Nov-2014 11:20:09 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/nginx/domains/domain.com/public/StatusPage/StatusPage.php on line 20
[26-Nov-2014 11:20:39 UTC] PHP Warning: curl_errno(): 1 is not a valid cURL handle resource in /home/nginx/domains/domain.com/public/StatusPage/StatusPage.php on line 4
Hi there,
I just started using this and am really liking it. The one thing I can't figure out yet how to change is the order in which the various monitors are displayed. I'd prefer it to be alphabetical, for example - is that possible?
I have the page set to refresh every 60 seconds, and the cache set to expire every 5 minutes. If I leave the page open for longer than that and watch the phpfastcache files, the cache updates, but the xmlhttp request that is sent is aborted after 7 seconds.
the request that fails is /statuspage/checks.php?callback=StatusPage&action=update&_=1431380894015
PHP v5.5.23
[15-Oct-2015 20:05:27 UTC] PHP Warning: Invalid argument supplied for foreach() in D:\Pub\HTTPD\APPS\statuspage\statuspage\statusPage.php on line 49
[15-Oct-2015 20:05:27 UTC] PHP Warning: Invalid argument supplied for foreach() in D:\Pub\HTTPD\APPS\statuspage\statuspage\statusPage.php on line 23
-snip-
[Sun Sep 20 20:38:20 2015] [error] [client 220.173.1xx.xxx] PHP Notice: Undefined index: action in /var/www/www.mydomain.org/status/statuspage/checks.php on line 16, referer: http://www.mydomain.org/status/
[Sun Sep 20 20:38:22 2015] [error] [client 220.173.1xx.xxx] PHP Notice: Undefined index: responsetime in /var/www/www.mydomain.org/status/statuspage/statusPage.php on line 57, referer: http://www.mydomain.org/status/
[Sun Sep 20 20:38:22 2015] [error] [client 220.173.1xx.xxx] PHP Notice: Undefined index: log in /var/www/www.mydomain.org/status/statuspage/statusPage.php on line 68, referer: http://www.mydomain.org/status/
[Sun Sep 20 20:38:22 2015] [error] [client 220.173.1xx.xxx] PHP Notice: Undefined index: timezone in /var/www/www.mydomain.org/status/statuspage/statusPage.php on line 93, referer: http://www.mydomain.org/status/
[Sun Sep 20 20:38:22 2015] [error] [client 220.173.1xx.xxx] PHP Notice: Undefined index: timezone in /var/www/www.mydomain.org/status/statuspage/statusPage.php on line 94, referer: http://www.mydomain.org/status/
Hello everyone,
we have []-tags to describe what kind of check it is. Unfortunately, on the page it renders as
[WS] RustOxide Main
This doesn't only look pretty strange, it also makes the names really hard to read.
I'd appreciate if you could take a look at this.
I had to run dos2unix on statuspage.min.js ... it's full of ^M 's
The alert bar that can be enabled in statuspage.min.js is great for example :
All Systems Are Normal!
But there should be a way to show a changed message if a monitor is paused, or Offline
Add groups to the config so we can have different monitors grouped on different tables with a header (the name of the category).
This could be on one page or (better) be able to have an index and one page for each category (so we can use different urls for categories).
Thank you!
The status page seems to be working fine. When clicking the icon to view the charts or stats it does not show anything except no data available.
In the error logs it throws
PHP Notice: Undefined index: responsetime in /var/html/status/statuspage/statusPage.php on line 57
PHP Notice: Undefined index: action in /var/html/status/statuspage/checks.php on line 16
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.