LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2024, 01:04 PM   #1
fraxflax
LQ Newbie
 
Registered: Jan 2018
Location: Sweden
Distribution: Debian
Posts: 24

Rep: Reputation: 5
Smile nw-watchdog daemon vs keep alive scripts


I used to maintain a bunch of network-keep-alive-scripts run periodically by cron to ensure connectivity to/from certain linux systems. Each script was tailor made for one specific connection and it was cumbersome to update the functionality changing several scripts, so I decided to write one general script that could fullfill all my needs.

For portability I kept to posix shell script (can be run by any shell) and used only the most standard linux tools. I decided to make it a daemon instead of having to run it periodically and added options for easy installation (and removal) as a systemd-service.

It turned out pretty well so I documented it and threw it up on githup in case somebody else had the same needs.

Version 1.1.0 will now be released within the next few days and is alread available for testing. So if you have a need to monitor, alert on failures and self-mend network connections, or just are generally interested, take a look at it. It's OpernSource totally free in all aspects.

I would love comments, bug reports, suggestions, etc.

˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
nw-watchdog - https://github.com/fraxflax/nw-watchdog

DESCRIPTION

nw-watchdog is a higly configurable network watchdog written in POSIX shell script for use in Linux, depending only on Linux most standard tools that are normally installed by default in all distributions (also see the DEPENDENCIES section).

It monitors the network connectivity to a specified TARGET and/or the next hop towards that TARGET, alerting upon lost connectivity explaining what is wrong. It can reset the source interface and will detect topology changes and, if allowed, reconfigure itself accordingly. It's intended to run as a daemon and has an option to install itself as a systemd service. If you want to monitor the connectivity to several TARGETs, you can run several instances of nw-watchdog using different --pidfile option arguments.

nw-watchdog is free software written by Fredrik Ax <frax@axnet.nu>.
Feel free to modify and/or (re)distribute it in any way you like.
... it's always nice to be mentioned though ;-)

nw-watchdog comes with ABSOLUTELY NO WARRANTY.
 
  


Reply

Tags
monitoring, network, watchdog



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
It's alive!! Slackware is Alive! onebuck Slackware 169 11-12-2021 09:22 AM
Slackware is alive!!! It's Alive!! It's Alive!! onebuck Slackware 46 12-14-2018 03:17 AM
Intel's watchdog support iTCO_wdt - does this mean watchdog is not present? kushalkoolwal Linux - Hardware 3 02-06-2009 03:16 PM
Hardware watchdog in BIOS and Linux watchdog driver are different? travishein Linux - Hardware 1 12-22-2008 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration