Patched up an environment and promptly broke things…
Looking for a few quick wins to get this thing happy again.
Should this resolve as simply as running the referenced SQL statements?
[root@librenms librenms]# ./validate.php
Component | Version |
---|---|
LibreNMS | 1.48.1-31-gcf17016 |
DB Schema | 2019_01_16_195644_add_vrf_id_and_bgpLocalAs (131) |
PHP | 7.2.14 |
MySQL | 5.5.60-MariaDB |
RRDTool | 1.4.8 |
SNMP | NET-SNMP 5.7.2 |
====================================
[OK] Composer Version: 1.8.4
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Database: incorrect column (notifications/datetime)
[FAIL] Database: missing index (syslog/device_id-timestamp)
[FAIL] Database: incorrect column (users/created_at)
[FAIL] We have detected that your database schema may be wrong, please report the following to us on Discord (https://t.libren.ms/discord) or the community site (https://t.libren.ms/5gscd):
[FIX]:
Run the following SQL statements to fix.
SQL Statements:
ALTER TABLE notifications
CHANGE datetime
datetime
timestamp NOT NULL DEFAULT ‘1970-01-02 00:00:00’ ;
ALTER TABLE syslog
ADD INDEX device_id-timestamp
(device_id
,timestamp
);
ALTER TABLE users
CHANGE created_at
created_at
timestamp NOT NULL DEFAULT ‘1970-01-02 00:00:01’ ;
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.