openwrt / openwrt/packages

watchcat: option to suspend processing if target iface is down

Open
#19,404 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

release/22.03 stale
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Maintainer: @\mips171
Environment: OpenWRT 22.03, ARMv7 Processor rev 5 (v7l)

Description:
Suggest a config option and a checkbox in luci that, when checked, prevents ping attempts and interface restarts when the interface is down. This is useful for a wired interface which is my specific use case. My current hardware doesn’t properly detect wired cable removal. Watchcat works fine when the cable is plugged in and the interface is up. When the Cable is removed, watchcat attempts to restart the interface and it works well. Since there is no cable the interface stays down as it should. However watchcat continues to try to ping and restarts this interface every 60 seconds. The interface is down so certainly pings will fail.

watchcat in this case doesn’t need to ping and doesn’t need to restart the iface. Connect the cable again and the iface starts up and watchcat can again start to monitor.

can this feature request be considered?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the watchcat implementation and its LuCI configuration and review how interface state, ping attempts, and restarts are handled. Define the option and checkbox behavior so that a checked setting skips monitoring while the target interface is down and resumes when it is up; verify the existing behavior remains unchanged when unchecked.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot, networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.