--- /dev/null
+<% header('Interface added') %>
+</BODY></HTML>
+<%init>
+
+# XXX: access rights
+
+my $host = $cgi->param('host');
+die 'invalid host' unless $host =~ /^[0-9.a-zA-Z\-]+$/;
+
+my $iface = $cgi->param('iface');
+die 'invalid iface' unless $iface =~ /^[0-9A-Za-z_\-.\\\/ ]+$/;
+
+my $serviceid = $cgi->param('serviceid');
+die 'invalid serviceid' unless $serviceid =~ /^[0-9A-Za-z_\-.\\\/ ]+$/;
+
+my $conf = new FS::Conf;
+my $system = $conf->config('network_monitoring_system');
+
+my $nms = new FS::NetworkMonitoringSystem;
+$nms->add_interface($host,$iface,$serviceid);
+
+</%init>