diff options
author | levinse <levinse> | 2011-02-05 06:04:32 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-02-05 06:04:32 +0000 |
commit | bc8bc32def6ab636129c205ebd5b7db76b805ac5 (patch) | |
tree | 9c2521ffa41c78cc30aefd1bbb2d0690b9635390 /httemplate/misc/process | |
parent | 3d01805cd88f7c4a37d7060117a9a42631c4bb5e (diff) |
torrus, add interface UI, RT10574
Diffstat (limited to 'httemplate/misc/process')
-rw-r--r-- | httemplate/misc/process/nms-add_iface.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/httemplate/misc/process/nms-add_iface.html b/httemplate/misc/process/nms-add_iface.html new file mode 100644 index 000000000..ffc70d9cc --- /dev/null +++ b/httemplate/misc/process/nms-add_iface.html @@ -0,0 +1,22 @@ +<% 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> |