#
# UPS graphs
#

graph ups_charge

input ups.charge.(\d)
input-var upsname ups.name.$GROUP
value-type gauge
value-identifier $HOST.ups_charge.$upsname
input-interval 300
input-deadtime 900

graph-id $HOST.ups_load

unit-label %
legend $upsname Charge
size 400x120
title UPS Load / Charge

# ====================
graph ups_load

input ups.load.(\d)
input-var upsname ups.name.$GROUP
value-type gauge
value-identifier $HOST.ups_load.$upsname
input-interval 300
input-deadtime 900

graph-id $HOST.ups_load

unit-label %
legend $upsname Load
size 400x120
title UPS Load / Charge

# ====================
graph ups_runtime

input ups.runtime.(\d)
input-var upsname ups.name.$GROUP
value-type gauge
value-identifier $HOST.ups_runtime.$upsname
input-interval 300
input-deadtime 900

graph-id $HOST.ups_runtime

unit-label s
legend $upsname Runtime
size 400x120
title UPS Battery Runtime

# ====================
graph ups_voltage

input ups.voltage.(\d)
input-var upsname ups.name.$GROUP
value-type gauge
value-identifier $HOST.ups_voltage.$upsname
input-interval 300
input-deadtime 900

graph-id $HOST.ups_voltage

unit-label V
legend $upsname Voltage
size 400x120
title UPS Battery Voltage

