5 return baseclass
.extend({
6 title
: _('UPS Plugin Configuration'),
7 description
: _('The NUT plugin reads information about Uninterruptible Power Supplies.'),
9 addFormOptions: function(s
) {
12 o
= s
.option(form
.Flag
, 'enable', _('Enable this plugin'));
14 o
= s
.option(form
.Value
, 'UPS', _('UPS'), _('UPS name in NUT ups@host format'));
17 configSummary: function(section
) {
18 var ups
= L
.toArray(section
.UPS
);
21 return N_(ups
.length
, 'Monitoring one UPS', 'Monitoring %d UPSes').format(ups
.length
);