Skip to content

Inconsistent offline device counts and negative Offline values in Presence chart #1876

Open

Description

@nareso

What installation are you running?

Production (netalertx) 📦

Is there an existing issue for this?

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 have noticed two inconsistencies in the UI.

1. Different offline device counts

The Device Cards and Presence pages show different numbers of offline devices:

Page Online Offline
Device Cards (UI_shown_cards) 137 5
Presence (UI_PRESENCE) 137 1

This suggests that the two pages may be using different criteria when counting offline devices.

2. Negative Offline values in the Presence chart

The historical time-series chart on the Presence page occasionally displays a negative value for Offline.

An offline device count should not normally become negative, so this appears to be an issue with the historical data or its calculation/display.

Expected Behavior

  • Device Cards and Presence should use consistent definitions when displaying offline device counts, or clearly distinguish devices that are not monitored for presence.
  • The historical Presence chart should never display negative Offline values.

Steps To Reproduce

No response

Relevant app.conf settings

docker-compose.yml

Debug or Trace 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.

Relevant app.log section

  PASTE LOG HERE. Using the triple backticks preserves format.

Docker Logs

  PASTE DOCKER LOG HERE. Using the triple backticks preserves format.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions