-
-
Notifications
You must be signed in to change notification settings - Fork 365
Description
Is there an existing issue for this?
- I have searched the existing open and closed issues and I checked the docs https://jokob-sk.github.io/NetAlertX/
The issue occurs in the following browsers. Select at least 2.
- Firefox
- Chrome
- Edge
- Safari (unsupported) - PRs welcome
- N/A - This is an issue with the backend
Current Behavior
I've been using NetAlertX for a long time, way before it changed names. I haven't changed my config for several months and everything was working fine until todays update.
I am now getting pushover notifications through for lots of devices that should be filtered out as per my configuration. In the log I can see this and assume it's related to the issue:
22:23:20 [SafeConditionBuilder] Error parsing condition: Unsupported condition pattern: AND devLastIP NOT LIKE '192.168.50.%' AND devLastIP NOT LIKE '192.168.60.%' AND devLastIP NOT LIKE '192.168.70.2' AND devLastIP NOT LIKE '192.168.70.5' AND devLastIP NOT LIKE '192.168.70.3' AND devLastIP NOT LIKE '192.168.70.4'
22:23:20 [SafeConditionBuilder] Unsafe condition rejected: AND devLastIP NOT LIKE {s-quote}192.168.50.%{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.60.%{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.2{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.5{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.3{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.4{s-quote}, Error: Invalid condition format: AND devLastIP NOT LIKE '192.168.50.%' AND devLastIP NOT LIKE '192.168.60.%' AND devLastIP NOT LIKE '192.168.70.2' AND devLastIP NOT LIKE '192.168.70.5' AND devLastIP NOT LIKE '192.168.70.3' AND devLastIP NOT LIKE '192.168.70.4'
Expected Behavior
I shouldn't be receiving notifications for these events as per my configuration.
Steps To Reproduce
Events filter setting:
AND devLastIP NOT LIKE '192.168.50.%' AND devLastIP NOT LIKE '192.168.60.%' AND devLastIP NOT LIKE '192.168.70.2' AND devLastIP NOT LIKE '192.168.70.5' AND devLastIP NOT LIKE '192.168.70.3' AND devLastIP NOT LIKE '192.168.70.4'
app.conf
docker-compose.yml
version: "3"
services:
pialert:
container_name: netalertx
image: "jokobsk/netalertx:latest"
network_mode: "host"
restart: unless-stopped
volumes:
- /data/compose/3/data/config:/app/config
- /data/compose/3/data/db:/app/db
- /data/compose/3/data/logs:/app/front/log
environment:
- TZ=Europe/London
- PORT=20211What installation are you running?
Production (netalertx)
app.log
22:23:20 [SafeConditionBuilder] Error parsing condition: Unsupported condition pattern: AND devLastIP NOT LIKE '192.168.50.%' AND devLastIP NOT LIKE '192.168.60.%' AND devLastIP NOT LIKE '192.168.70.2' AND devLastIP NOT LIKE '192.168.70.5' AND devLastIP NOT LIKE '192.168.70.3' AND devLastIP NOT LIKE '192.168.70.4'
22:23:20 [SafeConditionBuilder] Unsafe condition rejected: AND devLastIP NOT LIKE {s-quote}192.168.50.%{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.60.%{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.2{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.5{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.3{s-quote} AND devLastIP NOT LIKE {s-quote}192.168.70.4{s-quote}, Error: Invalid condition format: AND devLastIP NOT LIKE '192.168.50.%' AND devLastIP NOT LIKE '192.168.60.%' AND devLastIP NOT LIKE '192.168.70.2' AND devLastIP NOT LIKE '192.168.70.5' AND devLastIP NOT LIKE '192.168.70.3' AND devLastIP NOT LIKE '192.168.70.4'
Debug enabled
- I have read and followed the steps in the wiki link above and provided the required debug logs and the log section covers the time when the issue occurs.