LibreNMS daily.sh Probleme

rednag

Well-known member
Mein LibreNMS meldet in letzter Zeit vermehrt folgenden Fehler:

librenms1.JPG
Ich habe das Log daily.log unter /opt/librenms/logs durchforstet, aber dort steht leider nicts erhellendes drin.
Die lezten Einträge sind:

Returned: 0
Cleaning up DB
Refreshing alert rules queries
Clearing OS cache
Refreshing device group table relationships
Syslog cleared for entries over 30 days (about 0 rows)
Eventlog cleared for entries over 30 days
Device perf cleared for entries over 7 days
Deleting alert_logs more than 365 days that are not active
Deleting history of active alert_logs more than 365 days
Ports fdb cleared for entries over 10 days
All deleted ports now purged
Returned: 0
Fetching notifications
[ Fri, 29 Apr 2022 00:16:13 +0200 ] https://www.librenms.org/notifications.rss (48)
[ Fri, 29 Apr 2022 00:16:13 +0200 ] misc/notifications.rss (62)
[ Fri, 29 Apr 2022 00:16:13 +0200 ] Updating DB Done
Returned: 0
Caching PeeringDB data
Peering DB integration disabled
Returned: 0
Caching Mac OUI data
 
Was ergibt denn ein Verify der Config?
Mein LMS schimpft grad dass keine Updates möglich sind, weil ich veränderte Dateien habe (eine MIB und die qnap.yaml).
 
Ich hätte es wissen sollen. Enfach ignorieren. Aber nein, nun gibts noch andere Probleme.

librenms@librenms:~$ ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 22.4.0-20-g3da935a3e
DB Schema | 2022_04_08_085504_isis_adjacencies_table_add_index (236)
PHP | 7.3.31-1~deb10u1
Python | 3.7.3
MySQL | 10.3.34-MariaDB-0+deb10u1
RRDTool | 1.7.1
SNMP | 5.7.3
====================================

[OK] Composer Version: 2.3.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Database: incorrect column (notifications/datetime)
[FAIL] Database: incorrect column (users/created_at)
[FAIL] We have detected that your database schema may be wrong
[FIX]:
Run the following SQL statements to fix it
SQL Statements:
SET TIME_ZONE='+00:00';
ALTER TABLE `notifications` CHANGE `datetime` `datetime` timestamp NOT NULL DEFAULT '1970-01-02 00:00:00' ;
ALTER TABLE `users` CHANGE `created_at` `created_at` timestamp NOT NULL DEFAULT '1970-01-02 00:00:01' ;
[FAIL] Python3 module issue found: 'Required packages: ['PyMySQL!=1.0.0', 'python-dotenv', 'redis>=3.0', 'setuptools', 'psutil>=5.6.0', 'command_runner>=1.3.0']
Package not found: The 'command_runner>=1.3.0' distribution was not found and is required by the application
'
[FIX]:
pip3 install -r /opt/librenms/requirements.txt
[FAIL] We have found some files that are owned by a different user than 'librenms', this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
[FIX]:
sudo chown -R librenms:librenms /opt/librenms
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
Files:
/opt/librenms/rrd/10.1.10.2/app-os-updates-5.rrd
 
Die lassen sich recht einfach beheben, steht ja auch in der Meldung wie. Hatte ich letztens durch meine Spielereien auch gehabt.
 
Eben nicht. Einzig "set time_zone" konnte ich ausführen. Bei allen anderen gibts weitere Fehlermeldungen. Je mehr ich mache, desto länger wird die Liste der Fehler...
 
Na ja, Du hast immerhin Observium installiert. Können tust Du schon. Trotzdem ist Maus schubsen bequemer. :)
 

Zurzeit aktive Besucher

Letzte Anleitungen

Statistik des Forums

Themen
4.380
Beiträge
45.234
Mitglieder
3.982
Neuestes Mitglied
ThomasW
Zurück
Oben