89b861a84bc3a641d455099f8996c8da7c8ed677
5 return baseclass
.extend({
6 title
: _('APCUPS Plugin Configuration'),
7 description
: _('The APCUPS plugin collects statistics about the APC UPS.'),
9 addFormOptions: function(s
) {
12 o
= s
.option(form
.Flag
, 'enable', _('Enable this plugin'));
14 o
= s
.option(form
.DynamicList
, 'Host', _('Monitor host'));
15 o
.default = 'localhost';
17 o
.depends('enable', '1');
19 o
= s
.option(form
.Value
, 'Port', _('Port for apcupsd communication'));
22 o
.depends('enable', '1');
25 configSummary: function(section
) {
26 var hosts
= L
.toArray(section
.Host
);
28 return N_(hosts
.length
,
29 'Monitoring APC UPS at host %s, port %d',
30 'Monitoring APC UPS at hosts %s, port %d'
31 ).format(hosts
.join(', '), section
.Port
|| 3551);