diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-07-21 22:40:07 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-07-21 22:40:07 +0000 |
commit | 15aea4cb3f808d5b43292ba145c9a8aeae00d520 (patch) | |
tree | 02f92e95d42147af6686de4d98429d66152ce543 /usr/local/www/interfaces_opt.php | |
parent | 694870530ce003cc7ed5dd102cf7c0e2f4681dd2 (diff) | |
download | pfsense-15aea4cb3f808d5b43292ba145c9a8aeae00d520.zip pfsense-15aea4cb3f808d5b43292ba145c9a8aeae00d520.tar.gz |
Make the rrd gateway monitor ip setting accessible
Diffstat (limited to 'usr/local/www/interfaces_opt.php')
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index ac22c64..e29583e 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -1,6 +1,10 @@ <?php /* $Id$ */ /* + interfaces_opt.php + Copyright (C) 2007 Scott Ullrich + All rights reserved. + interfaces_opt.php part of m0n0wall (http://m0n0.ch/wall) @@ -68,6 +72,7 @@ if (isset($optcfg['wireless'])) { if ($optcfg['ipaddr'] == "dhcp") { $pconfig['type'] = "DHCP"; $pconfig['dhcphostname'] = $optcfg['dhcphostname']; + $pconfig['rrdgateway'] = $optcfg['rrdgateway']; } else { $pconfig['type'] = "Static"; $pconfig['ipaddr'] = $optcfg['ipaddr']; @@ -203,6 +208,11 @@ if ($_POST) { $optcfg['bridge'] = $_POST['bridge']; $optcfg['enable'] = $_POST['enable'] ? true : false; + /* per interface rrd gateway monitor helper */ + if($_POST['rrdgateway'] <> "") { + $wancfg['rrdgateway'] = $_POST['rrdgateway']; + } + if ($_POST['type'] == "Static") { $optcfg['ipaddr'] = $_POST['ipaddr']; $optcfg['subnet'] = $_POST['subnet']; @@ -258,6 +268,13 @@ function type_change(enable_change,enable_change_pptp) { break; } } + +function show_mon_config() { + document.getElementById("showmonbox").innerHTML=''; + aodiv = document.getElementById('showmon'); + aodiv.style.display = "block"; +} + //--> </script> @@ -383,7 +400,7 @@ function type_change(enable_change,enable_change_pptp) { <td colspan="2" valign="top" height="16"></td> </tr> <tr> - <td colspan="2" valign="top" class="listtopic">FTP Helper</td> + <td colspan="2" valign="top" class="listtopic">Other</td> </tr> <tr> <td width="22%" valign="top" class="vncell">FTP Helper</td> @@ -392,7 +409,23 @@ function type_change(enable_change,enable_change_pptp) { <strong>Disable the userland FTP-Proxy application</strong> <br /> </td> - </tr> + </tr> + <tr> + <td width="22%" valign="top" class="vncell">Monitor IP</td> + <td width="78%" class="vtable"> + <div id="showmonbox"> + <input type="button" onClick="show_mon_config()" value="Advanced"></input> - Show Monitor IP configuration + </div> + <div id="showmon" style="display:none"> + <input name="rrdgateway" type="text" id="rrdgateway" value="<?php echo ($wancfg['rrdgateway']) ; ?>" /> + <strong>Alternative monitor IP</strong> <br /> + Enter a alternative address here to be used to monitor the link. This is used for the + quality RRD graphs as well as the load balancer entries. Use this if the gateway does not respond + to icmp requests.</strong> + <br /> + </div> + </td> + </tr> <?php /* Wireless interface? */ if (isset($optcfg['wireless'])) wireless_config_print(); @@ -462,4 +495,4 @@ if ($_POST) { filter_configure(); } } -?>
\ No newline at end of file +?> |