summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-coovachilli/root/etc
diff options
context:
space:
mode:
authorguidosarducci <guidosarducci@users.noreply.github.com>2018-03-03 13:45:23 -0800
committerguidosarducci <guidosarducci@users.noreply.github.com>2018-03-03 13:54:55 -0800
commitfa1f4c42a6e73483d8ed6284b177e5648f44a114 (patch)
treec4332928b90627c2a5972640c6cb7b4d18a4c483 /applications/luci-app-coovachilli/root/etc
parent1d9cc1a9e1370be588c5ebc95e865a648fec4dc2 (diff)
luci-app-statistics: only graph data supported by APC UPS
Some graph definitions rely on data not supported across all APC UPSes. Due to recent upstream changes in collectd, the daemon no longer creates a NaN-filled .rrd file corresponding to any missing UPS data. Depending on the connected UPS, this may result in some "broken" graphs on the Luci Statistics page since rrdtool cannot find the expected .rrd file. Include the add_supported() function to determine the UPS data available at runtime and update any definitions of graphs to include only supported data. For example, the whole chart stack of AC input and output voltages will normally be "broken" if the UPS only measures AC input voltage. With these changes, the output voltage graph definition is stripped out, allowing the chart to render. Make consistent use of data types and instances in graph definitions. All definitions now use the same format with the 'instances' key. Unnecessary 'types' and 'sources' keys are removed. Fix the definition of 'line frequency' graph, based on upstream collectd apcups plugin code: type is 'frequency' but instance should be 'input'. This also includes some code and whitespace cleanup. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
Diffstat (limited to 'applications/luci-app-coovachilli/root/etc')
0 files changed, 0 insertions, 0 deletions