Modify

Opened 3 years ago

Closed 3 years ago

#18688 closed enhancement (moved_to_github)

Enhancement of watchcat.sh

Reported by: sharkys Owned by:
Priority: normal Milestone:
Component: luci Version: Trunk
Keywords: Cc:

Description

Current version of watchcat is unfortunately not showing any details in the log and output is confusing mainly in case of more IPs "watched". The fix is absolutely simple - can be this included in the trunk please ?

https://dev.openwrt.org/browser/packages/utils/watchcat/files/watchcat.sh

Before :
watchcat[XXXX]: no internet connectivity for XX seconds, host XX.XX.XX.XX. Reseting when reaching XX

After :
watchcat[XXXX]: no connectivity for XX seconds, host XX.XX.XX.XX. Reseting when reaching XX seconds.

      logger -p daemon.info -t "watchcat[$$]" "no connectivity for $time_diff seconds, host $pinghosts. Reseting when reaching $period seconds."

I hope you can accept this form, submitting patch is way too difficult for me and maybe someone more experienced would like to perform more changes on it.

Attachments (1)

watchcat.sh (1.7 KB) - added by sharkys 3 years ago.
modified watchcat.sh

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by sharkys

modified watchcat.sh

comment:1 Changed 3 years ago by nbd

  • Resolution set to moved_to_github
  • Status changed from new to closed

watchcat is maintained here: https://github.com/openwrt/packages

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.