Tinystatus: A tiny status page generated by a Python script
41–50 of 52 posts
Re: Tinystatus: A tiny status page generated by a Python script
#42The usage of ping require that to run as root. And this can open a big security issue as the paramater host of the function "check_ping" can be used for a root command injection. I know that this is not going to be exposed on Internet, but I think it should be fixed in any case. I am at work, but I can open a PR fixing it later.
Re: Tinystatus: A tiny status page generated by a Python script
#43Is the demo currently down? It's currently 16:20 UTC and the last update timestamp on the bottom of the demo is 06:36 (unknown timezone).
Re: Tinystatus: A tiny status page generated by a Python script
#44Man, this is cool! I would love if each tile would be clickable! I have a homelab and this would be a great landing page to be able to give out to family to see the status and links to all services in the house.
Re: Tinystatus: A tiny status page generated by a Python script
#45The usage of ping require that to run as root. And this can open a big security issue as the paramater host of the function "check_ping" can be used for a root command injection. I know that this is not going to be exposed on Internet, but I think it should be fixed in any case. I am at work, but I can open a PR fixing it later.
Asking because I genuinely don't know, but why not use Python's `urllib.request` instead of `ping`?
"urllib.request" sends an HTTP request. It implies that the thing you want to monitor is an HTTP endpoint. Even if that's true, you still have to decide whether you're okay with just getting a 200 status code back, or whether you want to scrape the page for a certain result as your signal of healthy or broken.
"ping" is an ICMP echo/reply. Ignoring that ICMP messages can be blocked by routers, an ICMP reply can tell you that the host's network interface is alive and that's about all. It doesn't mean any service on that host is online. I have seen hosts that send ICMP replies but were otherwise fully hung by some storage or kernel issue.
Re: Tinystatus: A tiny status page generated by a Python script
#46It generates a simple, responsive static HTML page for those of you running self-hosted services and wanting to share their status page. It checks things like HTTP pages, open ports, or pings IP addresses. Check the demo here: https://status.harry.id
Re: Tinystatus: A tiny status page generated by a Python script
#47For doing something like
- name: MySQL
type: exec
command:
- /usr/bin/mysqladmin
- --defaults-file=/path/to/file/handling/credentials
- ping
Not sure about others, but MySQL after a while blocks a host if there are too many connection attempts without successful signin and the ping code in the repo already calls out to an external process, so it should be quite straight ahead to add.Re: Tinystatus: A tiny status page generated by a Python script
#48Re: Tinystatus: A tiny status page generated by a Python script
#49Re: Tinystatus: A tiny status page generated by a Python script
#50Earlier quoted context omitted.
Why he need screenshot when there's a perfectly good demo?
Assuming this isn't snark - because if I am looking for a tool to do a job, seeing an immediate visual representation of what I am likely to expect is very helpful. I don't want to go through the full installation to view a demo and then immediately realise it was not remotely close to what I was expecting.