Traffic Bills disappeared

./validate.php

Component Version
LibreNMS 25.1.0-82-g61efc4511 (2025-02-01T16:08:16-08:00)
DB Schema 2025_01_30_000121_add_ifindex_index_to_ports_table (314)
PHP 8.2.7
Python 3.8.10
Database MariaDB 10.3.39-MariaDB-0ubuntu0.20.04.2
RRDTool 1.7.2
SNMP 5.8
===========================================

[OK] Composer Version: 2.8.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[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] Database and column collations are correct
[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] rrdtool version ok
[OK] Connected to rrdcached
[WARN] Your install is over 24 hours out of date, last update: Sun, 02 Feb 2025 00:08:16 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
LibreNMS/Billing.php
rrd/.gitignore

I turned off daily.sh because of issue.

All my Traffic Bills disappeared on Feb 1st.
I was able to get current back by updating this line in /opt/librenms/LibreNMS/Billing.php
#return $cur_used / $since * $total;
return ($since == 0) ? 0 : ($cur_used / $since * $total);

But now my previous months Traffic Bills do not appear. I can see the data in the database but neither API or WebUI is showing data.
I don’t know what else to check and really need to get the billing back as we have to show to our end users and billing group for overages.

I was able to get it all working keeping the new line in the Billing.php file I mentioned. I also did an update on O.S. and changed everything over to PHP8.3 from 8.2 which fixed seeing the previous month traffic bills.
So currently it is all running as expected.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.