You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Describe the bug
The graph constantly reports all invalid logins before the polling time. In my case, the invalid login occurred a year ago, not within the polling interval.
To Reproduce
Steps to reproduce the behavior:
Attempt to login incorrectly
Wait an hour or two
Visit the Cacti Stats - User Login graph
See invalid logins stays at the same level
Expected behavior
The invalid login attempts should be graphed as per the valid ones.
The text was updated successfully, but these errors were encountered:
I patched my version by changing the invalid query to match the valid one in cacti_user_stats.php:
$user_logins_invalid = db_fetch_cell("SELECT COUNT(*) AS user_logins FROM user_log WHERE UNIX_TIMESTAMP(`time`) BETWEEN UNIX_TIMESTAMP() - $active_interval AND UNIX_TIMSTAMP() AND user_id = 0 AND `result` IN (0, 3)");
Need to find out how we package those so we can get this fix pushed with the next update.
netniV
changed the title
Cacti Stats - User Logins
Cacti Stats - User Logins - Incorrect count of invalid users
Feb 23, 2020
netniV
changed the title
Cacti Stats - User Logins - Incorrect count of invalid users
When using graph template 'Cacti Stats - User Logins', an incorrect count of invalid users can be seen
Mar 1, 2020
Describe the bug
The graph constantly reports all invalid logins before the polling time. In my case, the invalid login occurred a year ago, not within the polling interval.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The invalid login attempts should be graphed as per the valid ones.
The text was updated successfully, but these errors were encountered: