Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alerts when IP address changes #678

Closed
2 tasks done
adm2k opened this issue May 19, 2024 · 9 comments
Closed
2 tasks done

Alerts when IP address changes #678

adm2k opened this issue May 19, 2024 · 9 comments
Labels
bug 🐛 Something isn't working Waiting for reply⏳ Waiting for the original poster to respond, or discussion in progress.

Comments

@adm2k
Copy link

adm2k commented May 19, 2024

Is there an existing issue for this?

Current Behavior

I keep getting alerts when the IP address changes when if fact I have a DHCP reservation and the IP address is not changing.
image

image

Expected Behavior

Don't send alert when the IP address is not actually changing

Steps To Reproduce

No response

app.conf

No response

docker-compose.yml

No response

What branch are you running?

Production

app.log

here is select from the log
12:06:09 [Notification] events SQL query: SELECT eve_MAC as MAC, eve_DateTime as Datetime, dev_LastIP as IP, eve_EventType as "Event Type", dev_Name as "Device name", dev_Comments as Comments FROM Events_Devices
WHERE eve_PendingAlertEmail = 1
AND eve_EventType IN ('Connected','Disconnected',
'IP Changed')

                    ORDER BY eve_DateTime

12:06:09 [Notification] No changes to report

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.
@adm2k adm2k added the bug 🐛 Something isn't working label May 19, 2024
@jokob-sk
Copy link
Owner

Hi there,

Unfortunately, the provided log is insufficient to debug the issue. It doesn't contain the previous/new IP address and the corresponding log details.

You can also check past entries in Integrations > Plugins > -> Plugin history to verify past IP entries.

@jokob-sk jokob-sk added the Waiting for reply⏳ Waiting for the original poster to respond, or discussion in progress. label May 19, 2024
@adm2k
Copy link
Author

adm2k commented May 20, 2024

Attempting to check the Arp-Scan plugin and need to filter out for this device but, the "Mac Filter" is not working - unable to enter any value there.

image

any help is appreciated!

@jokob-sk
Copy link
Owner

This is by design. This field is automatically used in Device Details - Plugins. It's not supposed to be used in the Integrations - Plugins section.

@adm2k
Copy link
Author

adm2k commented May 20, 2024

so do I just have to scroll through the logs looking for something that might be an issue? I getting frustrated :)

@jokob-sk
Copy link
Owner

That's pretty much what I do every time there is a bug report. You can try disabling specific fields to be watched, but unsure if it will help. Alternatively, you can try a different scan method, such as Nmap scan.

@jokob-sk
Copy link
Owner

As mentioned above, you can find the plugin entries filtered by Mac under device details > plugins.

@adm2k
Copy link
Author

adm2k commented May 20, 2024

Well I am beginning to think this is all UI related.

This was from last night all values were not correct:
image

I can come back hours later and it is correct as shown here screenshot taken just now::
image

Nothing changed over night, I am at a loss.

@jokob-sk
Copy link
Owner

The UI is getting most of teh data from the API endpoints, located under /front/api. You can access the endpoints by accessing a URL such as:

http://:20211/api/table_devices.json

API endpoints are described here: https://github.com/jokob-sk/NetAlertX/blob/main/docs/API.md

You can check these endpoints when an issue occurs if they contain the correct data.

Also, if you think it's UI-related, always check the browser console, as for example described here:

https://github.com/jokob-sk/NetAlertX/blob/main/docs/DEBUG_INVALID_JSON.md

This might give you more information which in turn could help me debug this further.

Also, seems like you are mixing the 2 issues. It's better to stay on topic if other users research similar issues in the future.

@jokob-sk
Copy link
Owner

Closing for inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working Waiting for reply⏳ Waiting for the original poster to respond, or discussion in progress.
Projects
None yet
Development

No branches or pull requests

2 participants