This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
filters [2010/08/06 19:53] woky |
filters [2010/08/06 19:54] (current) woky |
||
---|---|---|---|
Line 39: | Line 39: | ||
- Sensor is allowed | - Sensor is allowed | ||
==== Examples ==== | ==== Examples ==== | ||
- | Suppose you have Ethernet interfaces eth0, eth0:0, eth0:1, eth0:2 where only the first one is real you want to monitor. The configuration for this plugin will look like this:<code> | + | Suppose you have Ethernet interfaces ''eth0'', ''eth0:0'', ''eth0:1'', ''eth0:2'' where only the first one is real you want to monitor. The configuration for this plugin will look like this:<code> |
traffic: | traffic: | ||
sensors: | sensors: | ||
+ | exclude: | ||
+ | - 'eth0:' | ||
+ | </code> | ||
+ | If you decided you want to monitor also ''eth0:2'', the configuration will look like this:<code> | ||
+ | traffic: | ||
+ | sensors: | ||
+ | include: | ||
+ | - 'eth0:2' | ||
exclude: | exclude: | ||
- 'eth0:' | - 'eth0:' | ||
</code> | </code> |