this post was submitted on 08 Dec 2023
39 points (100.0% liked)

Selfhosted

64087 readers
1413 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

My Internet goes down fairly often so I want to start keeping track of it.

top 16 comments
sorted by: hot top controversial new old
[–] anzo@programming.dev 19 points 3 years ago (1 children)
[–] johntash@eviltoast.org 5 points 3 years ago (1 children)

Uptime Kuma can have a monitor that pings your gateway or google.com or something else on the Internet.

I'm not sure if it's simpler than smoke ping or not though, it's been too long since I used it

[–] cron@feddit.de 1 points 3 years ago* (last edited 3 years ago) (1 children)

For me, it is easier than ~~smoking~~ smokeping. But smokeping offers more details by pinging the same host 20 times each run. This can help to discover packet loss.

[–] WhyAUsername_1@lemmy.world 1 points 3 years ago (1 children)
[–] geomela@lemmy.world 5 points 3 years ago

Smoking is easy. Stopping smoking is the hard one.

Statping-ng has had some updates beyond the base.

Snorkeling is probably your best choice as it did show latency overall and not just up/down.

[–] 7Sea_Sailor@lemmy.dbzer0.com 2 points 3 years ago (1 children)

If you want it REALLY easy, you should be able to write a simple bash script that, when called, pings an arbitrary always online website like google, and if the ping returns an error, sends a telegram message to your phone. you could also store the current state in a separate file to allow for "is now down" and "is up again" differentiation, then use the telegram message timestamps to "track" (loosely used term) up- and downtime. To call the script, add it to your crontab and specify your test interval there.

Getting bash to send to telegram is ridiculously easy, as seen here: https://hackernoon.com/how-to-create-a-simple-bash-shell-script-to-send-messages-on-telegram-lcz31bx. This is EXTREMELY barebones, but it'll get the job done if you need zero bells and whistles.

[–] Romanmir@lemmy.today 2 points 3 years ago (1 children)

Does telegram allow for local lan only messaging? If not, how does the bash script send the message to telegram?

I’ve landed on running uptime-kuma on my network, and when I get the “service restored” messages I know that I had an outage last night.

[–] 7Sea_Sailor@lemmy.dbzer0.com 0 points 3 years ago (1 children)

no, telegram is cloud based. you send the message via a CURL POST to the telegram API, which contains your bot token and message. details are in the linked guide.

Kuma obviously is more established and feature-proof, and will work great for most people who want notifications like this. I just wanted to take the prompt for a "simple alternative" overly serious 😎

[–] alex@agora.nop.chat 6 points 3 years ago

But their internet is down, so it'll fail to send to telegram. Realistically it needs to be an external system that is tracking when it receives pings from the home network, so it can show periods where the bash script didn't ping for a while.

[–] drrodneymckay_@sh.itjust.works 1 points 3 years ago

pfsense had tracking of the gateway built in, check your router to see if it already has something.

[–] vegetaaaaaaa@lemmy.world 1 points 3 years ago

Since I already run netdata, I have set up a few ping checks. The results are graphed alongside other netdata charts.

Otherwise, the simplest method is going to be a custom shell script that feeds ping results to a plotting program like gnuplot.

What's the problem with smokeping though?

[–] Pithivier@lemmy.world 1 points 2 years ago
[–] superbirra@lemmy.world 1 points 3 years ago

I use https://healthchecks.io/ for it and find it useful

[–] Decronym@lemmy.decronym.xyz 0 points 3 years ago* (last edited 2 years ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
HA Home Assistant automation software
~ High Availability
IP Internet Protocol
VPS Virtual Private Server (opposed to shared hosting)

3 acronyms in this thread; the most compressed thread commented on today has 5 acronyms.

[Thread #339 for this sub, first seen 8th Dec 2023, 22:15] [FAQ] [Full list] [Contact] [Source code]