Jump to content
  • 0

Is it possible to ping my internet host for I know my router is on-line and Electricity works?


dwelle

Question

Hello, I live in Russia, and we have blackouts often in summer. I wish to check if there is electricity in my house, when I am outdoors.

Keenetic works always and it keeps working when power off and power on again. So, this might be a way for me to check electricity. I wish to ping my VPS every minute, and there on my VPS I will push online this info.

I hoped this could be solved with Keenetic "Internet availability checking (Ping Check)" but that is not fine enough for me. What is bad with it? If Keenetic could not ping some address, for example 4.5.4.5, it stops to provide internet to my devices. So, if my VPS will go offline sometimes, Keenetic will not prove internet. That is very bad and I think it is a bug. Why does this check of internet influences to Keenetic work? It might be host is offline, but Keenetic always think that Keenetic is offline and stops to provide Internet. It is a bug.

So, another way is just to ping my public IP address, that I have on my keenetic? But my provide does not give me public IP. Also I do not want to get own hostname in Keenetic zone. I just want to ping from Keenetic to my VPS every minute, and this should not influence to Keenetic work, just ping and all.

Could you advise something? May be, there is crontab and I can ssh to Keenetic, type my bash-script and add it to crontab? Or which options I have?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

You may connect your Keenetic to the RMM service (https://support.keenetic.ru/eaeu/ultra/kn-1811/ru/31407-keenetic-remote-monitoring-and-management.html) and then subscribe to online/offline notifications in Telegram https://support.keenetic.ru/eaeu/ultra/kn-1811/ru/31412-telegram-notifications.html.

image.png

Another option would be to book a KeenDNS domain name (https://support.keenetic.ru/eaeu/ultra/kn-1811/ru/15881-domain-name.html ) and open access to your device's web interface (https://support.keenetic.ru/eaeu/ultra/kn-1811/ru/18524-changing-the-router-management-port.html). Remember to set a strong password. KeenDNS does not need a public IP address on the device, as it can tunnel your HTTPS traffic through the cloud. Then, you may configure a third-party service such as https://uptimerobot.com/ to check your device's uptime for free.

There are also options through the external package system to develop whatever you need using cron and shell scripts.

Link to comment
Share on other sites

  • 0
В 16.07.2024 в 18:46, dwelle сказал:

Hello, I live in Russia

Зачем усложняете себе жизнь и пишете на английском?

 

В 16.07.2024 в 18:46, dwelle сказал:

Could you advise something? May be, there is crontab and I can ssh to Keenetic, type my bash-script and add it to crontab? Or which options I have?

Всё что угодно, в разумных пределах, естественно

https://help.keenetic.com/hc/ru/articles/360000948719-OPKG

Edited by Denis P
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...