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

Most showing as down #676

Closed
2 tasks done
adm2k opened this issue May 16, 2024 · 18 comments
Closed
2 tasks done

Most showing as down #676

adm2k opened this issue May 16, 2024 · 18 comments
Labels
next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. Setup 📥 These are probably setup or user environment related issues.

Comments

@adm2k
Copy link

adm2k commented May 16, 2024

Is there an existing issue for this?

Current Behavior

Why am I seeing this all of a sudden?
image

In reality there are none down

Expected Behavior

accurate reporting

Steps To Reproduce

No response

app.conf

No response

docker-compose.yml

No response

What branch are you running?

Production

app.log

No response

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 16, 2024
@jokob-sk
Copy link
Owner

Hi there,

Please provide a screenshot of your enabled settings and the schedules you are using. They have to be in sync. Please check this for details https://github.com/jokob-sk/NetAlertX/blob/main/docs/NOTIFICATIONS.md

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

adm2k commented May 16, 2024

Hope this is what you need...
image

@adm2k
Copy link
Author

adm2k commented May 16, 2024

Just checked again and it now shows this:
image

Yet, the three shown as down are in fact not down.

thanks for looking at this...

@jokob-sk
Copy link
Owner

It looks as the scans are working fine. Down & Offline combine offline and down devices. 29 devices - 26 online = 3 offline or down. The numbers seem right to me.

@jokob-sk jokob-sk added Setup 📥 These are probably setup or user environment related issues. and removed bug 🐛 Something isn't working labels May 16, 2024
@adm2k
Copy link
Author

adm2k commented May 17, 2024

Just checked again at 9:15pm EST and it shows this. Even internet as down when it is not. Which I understood what is happening.
image

@adm2k
Copy link
Author

adm2k commented May 17, 2024

Good morning,

Well still getting odd numbers on the display as shown in the previous comment from last night - still the same this morning. Devices showing down when they are in fact up. Might this have something to do with screen refreshes? I set it to refresh at 15 seconds just to see

Also, I am seeing devices with the same IP address but showing different MAC addresses see picture:
image

Really would like to get this working so I can depend on it.

Let me know what I can do if anything.

@jokob-sk
Copy link
Owner

Hi there,

Could you please provide me with the app.log for the ARPSCAN plugin with debug enabled?

See these two guides for how to provide the details:

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

You can also email sensitive data directly to jokob@duck.com

Please double-check you have debug enabled before sending or posting the logs as I will have to re-request the data if that's not the case.

@adm2k
Copy link
Author

adm2k commented May 18, 2024

@jokob-sk

Sent log file to the email address you provided. Hope this is what you need...

thank again!

@jokob-sk
Copy link
Owner

Thanks for the log.

  1. Is the app also sending out incorrect notifications or is this only visible in the UI?
  2. Can you please send me a screenshot of your Internet scan and Arp-scan settings?
  3. How long does this incorrect state persist?
  4. Could you please try to restart the container?

@adm2k
Copy link
Author

adm2k commented May 18, 2024

  • Is the app also sending out incorrect notifications or is this only visible in the UI?
    I have had notifications turned off while trying to get everything working. I did turn on for a short time and got some notifications for "disconnected" - these were for two cell phones and two Google nest speakers. The UI is where I see most of the concerns.
  • Can you please send me a screenshot of your Internet scan and Arp-scan settings?
    ARP-SCAN:
    image
    Internet Check:
    image
  • How long does this incorrect state persist?
    Can't seem to get a handle on that. I can view in browser and it is incorrect, clear cache and still incorrect. Close browser and check again after a few minutes and sometime it is correct and others incorrect. Seems to have a mind of its own. :)
  • Could you please try to restart the container?
    I have restarted the container many times and the VM at times also. Seems to make no difference. Here is the only way so far I have been able to get NetAlertX to run.
    docker run -d --rm --network=host -v "/$(pwd)/netalertx/config:/app/config" -v "/$(pwd)/netalertx/db:/app/db" -e TZ=America/New_York -e PORT=20211 jokobsk/netalertx:latest

Sorry this is causing so much trouble, I hope we can get it resolved.
Al...

@jokob-sk
Copy link
Owner

Hi @adm2k ,

Thanks for the details!

From the sounds of it, this is more of a UI issue than a notification-related one. Which is good as it's not that critical then.

The settings seem to be initialized to default values, so that shouldn't be the issue.

  1. Regarding the logs you sent me, are those during a period where incorrect data was shown? If it's not during a period when incorrect data in the UI was shown, could you please send me an app.log during such a period?
  2. Are there any other errors, for example in the browser console, when this happens?

@adm2k
Copy link
Author

adm2k commented May 19, 2024

Greetings,

Well right now here is how things look: The number down is incorrect, most of these devices are online
image

No errors in the browser console.

There were several times today where I could not access anything in the setting sections. There were just "empty" bars being display - at this moment all is ok:
image

I will send the current app log by email now.

Also, I use the Homepage dashboard and the NetAlertx widget never seems to be correct and in particular never shows any values for "Down Alerts" see the first image above.
image

Thank you for your efforts on resolving this...
al

@jokob-sk
Copy link
Owner

Hi @adm2k ,

Well right now here is how things look: The number down is incorrect, most of these devices are online
image

I don't see an issue with the numbers: 30 devices - 24 connected = 6 down or offline - could you please clarify what's wrong in this screenshot?

If the above numbers are not correct can you provide me with an up-to-date screenshot where the numbers are incorrect?

I couldn't find anything unusual in the log file, but I may have also missed something since you send the whole log and not only for the time when the issue occurs.

Regarding the Homepage dashboard widget - please contact the developer of the Homepage application as I'm not the author of the plugin.

If you can provide me more detailed steps on how to reproduce the issue, I'll have a closer look, otherwise I'm unable to debug the issue further.

In your original message you wrote:

Expected Behavior

accurate reporting

Which I think, according to what you wrote, is still the case. The application isn't sending inaccurate reports, as you stated before:

I have had notifications turned off while trying to get everything working. I did turn on for a short time and got some notifications for "disconnected" - these were for two cell phones and two Google nest speakers.

Let me know if I can help clarify things further,
thanks,
j

@adm2k
Copy link
Author

adm2k commented May 19, 2024

Here is an a screenshot from a few minutes ago. There are not in actuality 29 down. There are none down. That would be almost all y devices.
image

Attached is the log file for when the above is showing.
log.txt

Notifications are I think resolved.

As far as the Homepage Widget, here is the screenshot. As you can see it reports 1 down where NetAlertx is showing 29
image

The folks at Homepage says this:
Homepage quite literally makes no modifications whatsoever to the API output.

homepage/src/widgets/netalertx/component.jsx

Lines 31 to 34 in 97d7ae2

<Block label="netalertx.total" value={t("common.number", { value: parseInt(netalertxData[0], 10) })} />
<Block label="netalertx.connected" value={t("common.number", { value: parseInt(netalertxData[1], 10) })} />
<Block label="netalertx.new_devices" value={t("common.number", { value: parseInt(netalertxData[3], 10) })} />
<Block label="netalertx.down_alerts" value={t("common.number", { value: parseInt(netalertxData[4], 10) })} />

I am at a loss. I was hoping I could count on this great tool you have developed but telling me devices are down when they are not is a problem.

Thanks for your patience and I hope we can resolve.

@jokob-sk
Copy link
Owner

I updated the titles to exclude offline devices to prevent misunderstandings:
image

@jokob-sk jokob-sk added the next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. label May 25, 2024
@meeowgler
Copy link

meeowgler commented May 28, 2024

How is the "Offline" device status determined during an Arp-Scan? Does it attempt to ping the device IP? Is there a way to make the ping timeout value configurable?

Thanks!

@jokob-sk
Copy link
Owner

Hi @meeowgler ,

If you have a lot of offline devices, which should be online, look into using or substituing ARP scan with other scans, such as NMAPDEV. The ARP scan protocol uses a cache so results may not be 100% reliable. You can find all available network scanning options (marked as 🔍 dev scanner) in the Plugins overview readme.

@jokob-sk jokob-sk removed the Waiting for reply⏳ Waiting for the original poster to respond, or discussion in progress. label May 31, 2024
@jokob-sk
Copy link
Owner

jokob-sk commented Jun 8, 2024

closing -> releasing in ~10min

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release/in dev image🚀 This is coming in the next release or was already released if the issue is Closed. Setup 📥 These are probably setup or user environment related issues.
Projects
None yet
Development

No branches or pull requests

3 participants