o = s.option(form.DynamicList, 'Hosts', _('Monitor hosts'));
o.default = '127.0.0.1';
- o.datatype = 'ipaddr("nomask")';
+ o.datatype = 'host';
o.depends('enable', '1');
o = s.option(form.ListValue, 'AddressFamily', _('Address family'));
o.default = '30';
o.datatype = 'ufloat';
o.depends('enable', '1');
+
+ o=s.option(form.Value,'MaxMissed',_('Maximum Missed Packets'),
+ _('When a host has not replied to this number of packets in a row, re-resolve the hostname in DNS. Useful for dynamic DNS hosts.'));
+ o.placeholder = '10';
+ o.datatype = 'uinteger';
+ o.optional = true;
+ o.depends('enable', '1');
},
configSummary: function(section) {