-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No interface with vnstat 2.4 + Cannot read property 'getTime' of null #40
Comments
@Aerya thanks for submitting this issue. Could you please run "vnstat --json" on your system and attach the results to this issue and I can look into this for you. Many thanks, |
vnstat2.x uses a different json tag for interface names. ('name' instead of 'id') The pull request for #35 also adds vnstat2 support. |
"interfaces": [ |
I have got the same issue (vnstat 2.6) My config.php
|
The other guy on here who said that 'id' has been changed to 'name' is correct, you just need to modify 2 lines in the file... /vnstat/includes/vnstat.php line 81: Line 98: And it works on vnstat 2.6 (Ubuntu 20.10). |
hi,
Using your Docker. Vnstat compiled from sources: vnStat 2.4 by Teemu Toivola
Here's my config file:
// Disable error reporting to screen
/ini_set('display_errors', 0);
error_reporting(E_ALL);/
// Set the default system Timezone
date_default_timezone_set('Europe/Paris');
// Path of vnstat
$vnstat_bin_dir = '/usr/bin/vnstat';
// Set to true to set your own interfaces
$use_predefined_interfaces = true;
if ($use_predefined_interfaces == true) {
$interface_list = ["enp3s0", "veth031f9b8", "vethada0f5f"];
}
I have no interface to select in the WebUI.
Thanks
The text was updated successfully, but these errors were encountered: