Librenms uses default AIX mibs with 32 bit uptime.
Before migration to PHP 8.1 if server runs more than 427 days Librenms showed server as rebooted. Now it shows it as down and stops monitoring.
Of course i can reboot server but sometimes i need wait couple of month to do this.
Is it possible to return old behaviur of Librenms?
MariaDB [librenms]> SELECT device_id,hostname,uptime FROM devices WHERE hostname=‘eied’;
±----------±-----------------±--------+
| device_id | hostname | uptime |
±----------±-----------------±--------+
| 82 | eied | 7212062 |
±----------±-----------------±--------+
1 row in set (0.000 sec)
MariaDB [librenms]> SELECT device_id,hostname,DATE_FORMAT(date(‘1970-12-31 23:59:59’) + interval uptime second,‘%j days %Hh:%im:%ss’) FROM devices WHERE hostname=‘eied’;
±----------±-----------------±----------------------------------------------------------------------------------------+
| device_id | hostname | DATE_FORMAT(date(‘1970-12-31 23:59:59’) + interval uptime second,‘%j days %Hh:%im:%ss’) |
±----------±-----------------±----------------------------------------------------------------------------------------+
| 82 | eied | 083 days 11h:21m:02s |
±----------±-----------------±----------------------------------------------------------------------------------------+
1 row in set (0.001 sec)
===========================================
Component | Version |
---|---|
LibreNMS | 22.9.0-44-g071173ffb (2022-10-10T12:13:10-04:00) |
DB Schema | 2022_09_03_091314_update_ports_adsl_table_with_defaults (246) |
PHP | 8.1.11 |
Python | 3.6.8 |
Database | MariaDB 10.6.10-MariaDB |
RRDTool | 1.7.0 |
SNMP | 5.8 |
=========================================== |
[OK] Composer Version: 2.4.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database Schema is current
[OK] SQL Server meets minimum requirements
[OK] lower_case_table_names is enabled
[OK] MySQL engine is optimal
[OK]
[OK] Database schema correct
[OK] MySQl and PHP time match
[OK] Active pollers found
[OK] Dispatcher Service not detected
[OK] Locks are functional
[OK] Python poller wrapper is polling
[OK] Redis is unavailable
[OK] rrd_dir is writable
[OK] rrdtool version ok