Recently I've come across an issue with our cacti install, so basically trying to login got us redirected to install.
Looking around the forums I've come across this topic: viewtopic.php?f=7&t=59243
which suggests as cause for the install redirect a wrong version so I checked:
Code: Select all
# mysql -ucacti_user -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 337
Server version: 10.3.35-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use cacti_db;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [cacti_db]> select * from version;
+--------+
| cacti |
+--------+
| 1.2.21 |
+--------+
1 row in set (0.001 sec)
MariaDB [cacti_db]> quit;
Bye
# cat include/cacti_version
1.2.22
However, login constantly fails saying access denied.
So I checked if the failed logins were getting registered on the DB:
Code: Select all
# mysql -ucacti_user -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 346
Server version: 10.3.35-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> use cacti_db;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [cacti_db]> select id, username, realm, must_change_password, password_change, login_opts, enabled, locked from user_auth;
+----+----------+-------+----------------------+-----------------+------------+---------+--------+
| id | username | realm | must_change_password | password_change | login_opts | enabled | locked |
+----+----------+-------+----------------------+-----------------+------------+---------+--------+
| 1 | admin | 0 | | on | 2 | on | |
| 3 | guest | 0 | on | on | 1 | | |
+----+----------+-------+----------------------+-----------------+------------+---------+--------+
2 rows in set (0.000 sec)
MariaDB [cacti_db]> select id, username, enabled, must_change_password, locked, failed_attempts, lastfail from user_auth;
+----+----------+---------+----------------------+--------+-----------------+----------+
| id | username | enabled | must_change_password | locked | failed_attempts | lastfail |
+----+----------+---------+----------------------+--------+-----------------+----------+
| 1 | admin | on | | | 0 | 0 |
| 3 | guest | | on | | 0 | 0 |
+----+----------+---------+----------------------+--------+-----------------+----------+
2 rows in set (0.000 sec)
MariaDB [cacti_db]> quit
Bye
2022-11-17 13:31:12 - AUTH LOGIN FAILED: Local Login Failed for user 'admin' from IP Address '192.168.0.113'.
Any suggestions please? thanks