Examples
banshee/examples-collection/examples/watches/
silence
Example: the watch silence, a value at zero too long; connections to port 443 by SSH.
by banshee1 installation1 version
Published on October 27, 2026. First version in this collection.
Watch: silence
watch.silence raises when a value stayed at zero for too long: here, the connections open to port 443. None for an hour may mean nobody reaches the site any more.
How to read it
array('warning' => '1 h', 'critical' => '6 h'): the thresholds are durations, how long the value has stayed at zero. A duration is a number, a blank and a unit,s,min,hord, 30 days at most.- Any value other than zero makes the count start again.
list.count(text.lines(…))counts the linesssprinted, one per connection.
To adapt it
- Any activity that should never stop: messages received, requests served, lines written in a log.
- On a site with nights without visitors, the habit of the value suits better: see
examples/watches/habit.