Saya ingat setelah naik taraf MariaDB (https://durian.fsck.my/post/106-naik-taraf-mariadb/) masalah dengan LibreNMS akan selesai. Namun, sangkaan saya meleset.

Setelah membaca log, ada beberapa mesej ralat yang saya tidak pernah lihat sebelum ini. Contohnya, dalam /opt/libernms/logs/daily.log

Cannot find module (SNMPv2-MIB): At line 1 in (none)
Cannot find module (IF-MIB): At line 1 in (none)
Cannot find module (IP-MIB): At line 1 in (none)
Cannot find module (TCP-MIB): At line 1 in (none)
Cannot find module (UDP-MIB): At line 1 in (none)

Penyelesaiannya ialah dengan memasang snmp-mibs-downloader. Agak pelik juga kerana selama ini librenms berjalan dengan lancar. Mungkin ketika proses naik taraf sistem pakej ini tidak dikemaskini

sudo apt install snmp-mibs-downloader

Setalah itu kita periksa tetapan librenms:


librenms@mon:~$ ./validate.php                                                                                                                                          
====================================                                                                                                                                    
Component | Version                                                                                                                                                     
--------- | -------                                                                                                                                                     
LibreNMS  | 21.6.0-10-g03aa45389                                                                                                                                        
DB Schema | 2020_12_14_091314_create_port_group_port_table (205)                                                                                                        
PHP       | 7.4.20                                                                                                                                                      
Python    | 3.6.9
MySQL     | 10.4.20-MariaDB-1:10.4.20+maria~bionic
RRDTool   | 1.7.0
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 2.1.3
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[FAIL]  Your database is out of date!
        [FIX]:
        ./lnms migrate

Nampaknya, perlu jalankan ./lnms migrate

librenms@mon:~$ ./lnms migrate
**************************************
*     Application In Production!     *
**************************************

 Do you really wish to run this command? (yes/no) [no]:
 > yes

Migrating: 2020_12_14_091314_create_port_groups_table
Migrated:  2020_12_14_091314_create_port_groups_table (21.31ms)
Migrating: 2021_02_09_122930_migrate_to_utf8mb4
Migrated:  2021_02_09_122930_migrate_to_utf8mb4 (2,622.44ms)
Migrating: 2021_04_08_151101_add_foreign_keys_to_port_group_port_table
Migrated:  2021_04_08_151101_add_foreign_keys_to_port_group_port_table (40.38ms)
Migrating: 2021_06_07_123600_create_sessions_table
Migrated:  2021_06_07_123600_create_sessions_table (24.49ms)
Migrating: 2021_06_11_084830_slas_add_rtt_field
Migrated:  2021_06_11_084830_slas_add_rtt_field (31.32ms)
Migrating: 2021_25_01_0127_create_isis_adjacencies_table
Migrated:  2021_25_01_0127_create_isis_adjacencies_table (22.20ms)

Alhamdulillah, semua kembali seperti sediakala!

adli@rumah