banshee is under active development: collectors will keep changing, and a version you publish will likely need adjustments. For stable use, wait for version 1.0.0.

Examples

banshee/examples-collection/examples/watches/

expect

Example: the watch expect, a value none of the expected ones; the boot target by SSH.

  • example
  • watch
  • expect
  • systemd
  • ssh

by banshee1 installation1 version

v1Latest

Published on October 27, 2026. First version in this collection.

Keen 1.0.0 · 10 lines
// The watch "expect": it raises when a value is none of the expected ones.
// The collector reads the target a Linux boots into, by SSH.
need('protocol:ssh');

output('target', 'text', array('label' => 'Default boot target'));

watch.expect('wrong-target', 'Unexpected boot target', 'target', array('warning' => array('multi-user.target')));

$read = ssh.run('systemctl get-default');
value('target', text.trim($read['output']));