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

Help with down_alerts... #680

Closed
2 tasks done
adm2k opened this issue May 22, 2024 · 10 comments
Closed
2 tasks done

Help with down_alerts... #680

adm2k opened this issue May 22, 2024 · 10 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 22, 2024

Is there an existing issue for this?

Current Behavior

The values displayed for down & offline is correct:
image

The issue seems to be with the Homepage widget (which they say they have nothing to do with as far as getting values).
image

The value is never displayed. According to the widget configuration the values it is collecting are:
Allowed fields: ["total", "connected", "new_devices", "down_alerts"].

I don't see any of those values in the 192.168.xx.xx:20211/api/table_devices.json

So, where are they coming from? What can be done to correct?

Many thanks!

Expected Behavior

display a Down value

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

Hi there,
I'm not sure what api the widget is using. - please contact the developer of the Homepage application as I'm not the author of the plugin.

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

@adm2k
Copy link
Author

adm2k commented May 22, 2024

@leiweibau

Thank you for the response. Unfortunately my skills in this are limited. What is {url} referring to? On my server?
api: "{url}/php/server/devices.php?action=getDevicesTotals",

@leiweibau
Copy link

This was meant more as a help for @jokob-sk.

@adm2k
Copy link
Author

adm2k commented May 22, 2024

Sorry...

For what it's worth, sometime I will see a value of 1 in down alerts, most of the time 0 yet in NetAlertx I have 6 or 7

@leiweibau
Copy link

leiweibau commented May 22, 2024

You can try to open this url in your browser and see, what netalertx will return
http://192.168.xx.xx:20211/php/server/devices.php?action=getDevicesTotals (or maybe https, replace the x with the real ip)

@adm2k
Copy link
Author

adm2k commented May 22, 2024

Got this:

[35,29,0,2,0,0]

@leiweibau
Copy link

leiweibau commented May 22, 2024

First of all, one thing in advance. "Offline" does not mean "down" here. "Down" are devices for which a "Down" notification is configured.

If I have skimmed through this correctly, then we have the following situation. The "API" returns the correct data for the individual statuses. „Down“ is the 5th value [35,29,0,2,0,0]. However, the frontend shows "Down" and "Offline" together in the field. In this case 35 (all) - 29 (connected) + 0 (down) = 7

I don't see this as a classic bug. It would certainly be easier if the adjustment were made on the widget side.

@adm2k
Copy link
Author

adm2k commented May 23, 2024

@leiweibau

Thanks for the clarification, this makes sense now.

@jokob-sk
Copy link
Owner

I'll think about moving the offline count somewhere else as it's causing confusion. Thanks @leiweibau for helping explain this 🙏

Closing as resolved now

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

3 participants