Examples
banshee/examples-collection/examples/watches/
expect
Example: the watch expect, a value none of the expected ones; the boot target by SSH.
by banshee1 installation1 version
Published on October 27, 2026. First version in this collection.
// 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']));