Examples
banshee/examples-collection/examples/watches/
deviate
Example: the watch deviate, one element far from the others; the load of each processor by SNMP.
par banshee1 installation1 version
Publiée le 27 octobre 2026. First version in this collection.
Watch: deviate
watch.deviate raises when one element strays from the others of the same pass: here, a processor left idle while the others work, read by SNMP.
How to read it
per('processor', 'Processors')declares that the collector returns one value per processor, and'per' => 'processor'on the output makes it so.deviateneeds such an output.- The watch compares each processor with the median of the others:
'warning' => 40raises when it is more than 40 points away from it. 'side' => 'below': only a value under the median counts;abovethe other way,both(the default) either way.- Under three processors kept in a pass, nothing is judged.
snmp.walkreturnsarray(suffix => value);foreach ($loads as $index => $load)gives both, andvalue('load', $load, 'cpu' . $index)names the element.
To adapt it
- Any set of like elements: the disks of an array, the nodes of a cluster, the links of an aggregate.