function rrdargs( graph, plugin, plugin_instance, dtype )
+ local voltagesdc = {
+ title = "%H: Voltages on APC UPS - Battery",
+ vlabel = "Volts DC",
+ alt_autoscale = true,
+ number_format = "%5.1lfV",
+ data = {
+ instances = {
+ voltage = { "battery" }
+ },
+
+ options = {
+ voltage = { title = "Battery voltage", noarea=true }
+ }
+ }
+ }
+
local voltages = {
- title = "%H: Voltages on APC UPS ",
- vlabel = "V",
+ title = "%H: Voltages on APC UPS - AC",
+ vlabel = "Volts AC",
+ alt_autoscale = true,
number_format = "%5.1lfV",
data = {
instances = {
- voltage = { "battery", "input", "output" }
+ voltage = { "input", "output" }
},
options = {
voltage_output = { color = "00e000", title = "Output voltage", noarea=true, overlay=true },
- voltage_battery = { color = "0000ff", title = "Battery voltage", noarea=true, overlay=true },
voltage_input = { color = "ffb000", title = "Input voltage", noarea=true, overlay=true }
}
}
}
}
- return { voltages, percentload, charge_percent, temperature, timeleft, frequency }
+ return { voltages, voltagesdc, percentload, charge_percent, temperature, timeleft, frequency }
end