Hi,
I have an issue with the traffic bill API. When making a call to get a specific bill, I get a json result that returns a status ok with no bills. If I make the call to get all bills then I get all the bills as expected.
This issue has been reproduced on two different installs of LibreNMS and appeared about 1-1.5 weeks ago.
The steps to reproduce:
curl -H ‘X-Auth-Token: TOKENGOESHERE’ http://librenms/api/v0/bills/1
is meant to return the bill with that ID. This was working. However it returns the following:
{
“status”: “ok”,
“bills”: [],
“count”: 0
}
If I run the following:
curl -H ‘X-Auth-Token: TOKENGOESHERE’ http://librenms/api/v0/bills
Then all the bills are returned with their respective values.
I hope that is sufficient information to determine if there could be a problem with my install or if this is a bug.
Thanks for the assistance.
Regards,
Shaheen
My ./validate.php:
====================================
Component | Version |
---|---|
LibreNMS | 1.33-211-gb620692 |
DB Schema | 222 |
PHP | 7.0.22-0ubuntu0.16.04.1 |
MySQL | 10.0.31-MariaDB-0ubuntu0.16.04.2 |
RRDTool | 1.5.5 |
SNMP | NET-SNMP 5.7.3 |
====================================
[OK] Database connection successful
[OK] Database schema correct
[WARN] Some devices have not been polled in the last 5 minutes. You may have performance issues.
[FIX] Check your poll log and see: http://docs.librenms.org/Support/Performance/
Devices:
10.5.1.29
10.39.243.101
10.39.243.188
10.39.243.127
10.39.243.169
10.39.243.55
10.39.243.35
10.39.242.152
10.39.243.59
10.39.242.233
10.39.240.2
10.39.243.43
10.39.243.57
10.39.243.34
10.39.242.163
and 23 more…
[FAIL] Discovery has not completed in the last 24 hours.
[FIX] Check the cron job to make sure it is running and using discovery-wrapper.py
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX] You can fix this with ./scripts/github-remove
Modified Files:
rrd/.gitignore