I have implemented a feature to add alert rule option to invert devices and groups “map to” list (see capture below).
Tested OK on my side. I need some other tests.
cd /opt/librenms/ scripts/github-apply 10954 php artisan migrate
After setting some alert rules with “match devices and group list” and “all devices except in list” on. You can test that the alert rule is not in the alert rule list of the devices you have selected in "match devices and group list.
./poller.php -h DEVICE_ID -m ports
Rule [#3](https://github.com/librenms/librenms/pull/3) (XXX)): Status: NOCHG Rule [#6](https://github.com/librenms/librenms/issues/6) (XXXX): Status: NOCHG Rule [#9](https://github.com/librenms/librenms/issues/9) (Service up/down ): Status: NOCHG (...)
php artisan migrate:rollback --step=1 scripts/github-remove -d