Add the dhcpleases plugin: https://github.com/openwrt/packages/pull/14204 Added-Frontend-by: Hannu Nyman <hannu.nyman@iki.fi> Signed-off-by: Nick Hainke <vincent@systemli.org> [Minor changes to graph: alt_autoscale, precision, label] Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
25 lines
454 B
JavaScript
25 lines
454 B
JavaScript
/* Licensed to the public under the Apache License 2.0. */
|
|
|
|
'use strict';
|
|
'require baseclass';
|
|
|
|
return baseclass.extend({
|
|
title: _('DHCP Leases'),
|
|
|
|
rrdargs: function(graph, host, plugin, plugin_instance, dtype) {
|
|
return {
|
|
title: "%H: DHCP leases",
|
|
alt_autoscale_max: true,
|
|
vlabel: "Leases given",
|
|
number_format: "%3.0lf",
|
|
data: {
|
|
types: [ "count" ],
|
|
options: {
|
|
count: {
|
|
title: "Leases"
|
|
}
|
|
}
|
|
}
|
|
};
|
|
}
|
|
});
|