inverse-inc / packetfence

PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) solution. Boasting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, powerful BYOD management options, 802.1X support, layer-2 isolation of problematic devices; PacketFence can be used to effectively secure networks small to very large heterogeneous networks.
https://packetfence.org
GNU General Public License v2.0
1.39k stars 290 forks source link

webadmin(dashboard): number of registered devices and open security events is not updated correctly #6346

Open nqb opened 3 years ago

nqb commented 3 years ago

Describe the bug When you watch number of devices registered or open security events on the dashboard, it doesn't reflect current state on PacketFence.

It looks like number is not updated.

To Reproduce Steps to reproduce the behavior:

  1. Start a fresh install
  2. Registered two new devices manually
  3. Trigger a security event on one node
  4. Go on dashboard

=> Number are not updated.

Screenshots registered_devices

Expected behavior Number should be identical to what we have in database.

Additional context If I go on Netdata dashboard and look at:

I don't see any changes on the graph.

Using: tcpdump -nlp -i any port 8125 -w-|strings| grep 'devices', I don't see any lines related to source.packetfence.devices.registered, only:

with correct values.

nqb commented 3 years ago

As you can see on screenshot, graph contains correct numbers.

nqb commented 3 years ago

A restart of all PacketFence services seems to fix issue.

EDIT: I mean, I'm able to have correct number on dashboard but I don't know if they will be updated after.

fdurand commented 2 years ago

It´s pfstats who is doing that (sql queries and forward to netdata via statsd). So maybe the statsd (netdata) is not yet ready to receive stats on the socket.