statibus | Minimalistic Status Page
Well, I needed a self hosted status page, without any bloat, it needs to be fast and easy to deploy.
Supports Ping, Port and HTTP checks with custom http codes + 60s or 30s check intervals.
It does run on rqlite instead of MySQL, which is basically sqlite but with a shiton of neat features.
You can find it here: https://github.com/rqlite/rqlite
Here is a demo: https://statibus.x8e.net
Here is the code: https://github.com/Ne00n/statibus
May you give me some feedback.
Amen.
Comments
آمين
https://microlxc.net/index.php?p=deploy
I haven't tried it myself yet (obviously), but I already have tears of joy in my eyes because of...
Need a free NAT LXC? -> https://microlxc.net/
Cool! good job on what you do.
cant wait to finish mine
Freelance Web Developer & Web Designer - Available for hire!
Looks really cool, nice work dude
Greetings from 🇩🇪 North Rhine-Westphalia, Xenic.
Dope, looks great! Thanks for sharing.
Feature request: stack multiple monitors into a group of sorts rather than one continuous list.
Humble janitor of LES
Proud papa of YABS
Looks nice! Any plans for a Docker version? And perhaps notifications via email, telegram etc or an old skool RSS feed?
Looking nice. Thanks!
Ympker's Shared/Reseller Hosting Comparison Chart, Ympker's VPN LTD Comparison, Uptime.is, Ympker's GitHub.
Never knew bout rqlite. Thanks
Also thanks for your project.
I added groups, check out the updated version: https://statibus.x8e.net/
Kinda essential so added.
I am not a docker friend, if you want to make a docker version you can do that for sure.
Basic email notifications for the webmaster are planned yea but not such as subscribe for outages.
Maybe even a rss or json feed for the public.
Free NAT KVM | Free NAT LXC
Free NAT KVM | Free NAT LXC
ok ok i will shut up
Looks nice. I'll try to deploy one.
UptimeRobot has keyword check that I often use. It retrieves a URI, and alerts if the response contains / does not contain a particular string.
Sounds easy but what do you do, when the said page is down? Also trigger an alert?
Free NAT KVM | Free NAT LXC
UptimeRobot would also trigger an alert when the URI is not retrievable (connection timeout).
I use this feature to monitor NDN forwarder status pages. For example, https://savi.testbed.named-data.net (it's an XML document with XSLT) would contain the string "/yoursunny/pushups" if at least one of my repository replicas is connected, so I configure a keyword monitor to tell me when the string disappears.
I added it, currently in experimental branch, which the demo is running on.
https://github.com/Ne00n/statibus/tree/experimental
Works basically this way:
php cli.php service add 1 Website http https://www.worldometers.info/coronavirus/ 2 200 corona
no timeout + status code or list of status codes need to match and your keyword if you specify it.
Free NAT KVM | Free NAT LXC
Small update, a few bug fixes + css fixes for mobile including db init.
Will add a rss feed later and external checks also some CI, which is needed.
Free NAT KVM | Free NAT LXC
Alright, I put it on my to-do list
Good design. Nice and compact. My current one thinks it's a good idea to have the page scroll and scroll and scroll but I like the data for each server being on the same line. Good job.
Michael
Kudos on another quality project Neoon
I got it installed in two Docker containers. It seems that the
cron/uptime.php
requiresbcmath
extension, which is not in the officialphp:7-alpine
image but can be added.I don't have a Dockerfile yet - I just typed the commands one by one.
I hope
cli.php group list
andcli.php service list
commands can output in JSON format instead ofprint_r
format, so that I can automate the setup using jq.Alternatively,
cli.php group delete
andcli.php service add
andcli.php service delete
commands should accept names in place of IDs.Yea the alpine image is a bitch.
Well yeah I could change it to output json, should be no problem since its readable too.
The ID's are unique, the names are not, so doing that would be suicidal.
Also the ID's are used for JOINS, I cannot remove them however, I would put out a sql migration to make the names UNIQUE.
Just to be on the safe side so this would be possible, should be easier to use by then.
Free NAT KVM | Free NAT LXC
Are you interested in collaborating to create a Docker image for this?
Personally I'm not a fan of alpine images because it doesn't use musl. This page sums it up pretty nicely, but of course it depends on your use case; https://pythonspeed.com/articles/alpine-docker-python/
those who complain about alpone image then you can use
debian:buster-slim
For domain registrations, create an account at Dynadot (ref) and spend $9.99 within 48 hours to receive $5 DynaDollars!
Looking for cost-effective Managed/Anycast/DDoS-Protected/Geo DNS Services? Try ClouDNS (aff).
Update:
Free NAT KVM | Free NAT LXC
Great.
DYK Travis CI is no longer free?
If you aren't paying $69/month, you'd better move to GitHub Actions or CircleCI.
SQL injection everywhere!
You need Parameterized Statements (since rqlite v5.5.0).
And no, having a regex is insufficient.
https://github.com/Ne00n/statibus/blob/945d447851f3d6509aca78730b381c116406b8fa/class/statibus.php#L21
https://github.com/Ne00n/statibus/blob/945d447851f3d6509aca78730b381c116406b8fa/content/service.php#L9
They have a free Plan, works for me.
Migration from .org is still going on, so I expect it to use OOS credits by then.
No, cli.php is only available to your locally, means only you have access to these commands.
Additional, every SQL query runs through SQLite3::escapeString.
Thanks for letting me know, I will update the class.
Since this class has been written 1+ year ago, Parameterized Statements where not implemented by rqlite.
Free NAT KVM | Free NAT LXC
Travis free plan turns out to be 10000 credits one time. When you run out, it'll never be replenished.
As for OOS credits, you'll have to haggle with support every time you need more credits. It's not recurring.
What if my group name happen to contain a quotation sign?
"idle" servers
isn't too crazy, where "idle" needs quotation if the servers are only partially idle.?
I was about to mention the SQL injections issue. Glad @yoursunny went ahead .
At least there is a preg match on services.
Cool stuff @Neoon , thanks for contributing to the community with your projects. You tend to do nice useful stuff.