cbr600ds2 Posted June 6, 2023 Share Posted June 6, 2023 Hello - I'm just wondering - so every once in a while my server loses access to the internet. I can't figure it out and it doesn't seem to cause any errors in syslogs. If I stop the array and restart it then internet access will be back. I figure an ok work around would be an app that notifies me once it loses internet connectivity. has anyone seen an app that can accomplish this? Quote Link to comment
JonathanM Posted June 6, 2023 Share Posted June 6, 2023 If it doesn't have internet access how could it notify you? Quote Link to comment
cbr600ds2 Posted June 6, 2023 Author Share Posted June 6, 2023 Hahaha I didn't even think of that. what about an GUI notification? Quote Link to comment
ConnerVT Posted June 6, 2023 Share Posted June 6, 2023 Perhaps use something like Uptime Robot? Quote Link to comment
JonathanM Posted June 6, 2023 Share Posted June 6, 2023 I threw together a little script that if run at array start should fire a GUI notification when a ping to 1.1.1.1 fails. YMMV, no warranties, this is worth exactly what you paid for it. Quote #!/bin/bash while ping -c 1 -n -w 1 1.1.1.1 &> /dev/null do sleep 1m done /usr/local/emhttp/webGui/scripts/notify -s "Ping failed" -i "warning" -m "1.1.1.1 not responding" -d "1.1.1.1 not responding" If someone sees something wrong with this, please say something. I can't really test it right now. If run at array start using user scripts plugin, it should ping that address every minute, until the ping fails, then it fires a warning and exits, waiting for you to stop and start the array. 1 Quote Link to comment
cbr600ds2 Posted June 8, 2023 Author Share Posted June 8, 2023 Cool I'll try it out! Thanks @jonathanM Quote Link to comment
Recommended Posts
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.