Skip to content

watchcat: error if only one address is specified in pinghostsΒ #28100

@st7105

Description

@st7105

Package Name

watchcat

Maintainer

Roger D [email protected]

OpenWrt Version

SNAPSHOT

OpenWrt Target/Subtarget

mediatek/filogic

Steps to Reproduce

  1. Add configuration in /etc/config/watchcat:

config watchcat
option period '60s'
option mode 'run_script'
option script '/etc/custom_user_script.sh'
option addressfamily 'ipv4'
option pingperiod '10s'
option pingcount '3'
option pingsize 'standard'
option interface 'wg0'
list pinghosts '10.11.1.1'

  1. /etc/init.d/watchcat start

Actual Behaviour

In the error logs:

Wed Dec 17 08:18:01 2025 daemon.info watchcat[20977]: Could not reach "10.11.1.1" via "wg0" for "20" seconds. Running script after reaching "60" seconds

I checked the result of executing the ping command inside the script and saw an error:
ping: bad address '"10.11.1.1"'

I believe the ping team does not appreciate unnecessary double quotes. Most likely, this commit broke:
5dc1390

Confirmation Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions