diff options
author | jim-p <jimp@pfsense.org> | 2010-12-14 08:45:50 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-12-14 08:46:47 -0500 |
commit | 7bc5c54310d8a015528dad877667fee00247b1d7 (patch) | |
tree | 75c32289df4d63fc857f4b893b959b6e661d849a /usr/local/www/services_snmp.php | |
parent | 841c4125a6b4488c16a0c69e7642779f294fa449 (diff) | |
download | pfsense-7bc5c54310d8a015528dad877667fee00247b1d7.zip pfsense-7bc5c54310d8a015528dad877667fee00247b1d7.tar.gz |
For bsnmpd, checking hostres also requires checking mibii. Note this requirement in the GUI and enforce it via a simple JS check.
Diffstat (limited to 'usr/local/www/services_snmp.php')
-rwxr-xr-x | usr/local/www/services_snmp.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr/local/www/services_snmp.php b/usr/local/www/services_snmp.php index 0b61bbf..432db3d 100755 --- a/usr/local/www/services_snmp.php +++ b/usr/local/www/services_snmp.php @@ -162,6 +162,12 @@ include("head.inc"); ?> <script language="JavaScript"> <!-- +function check_deps() { + if ($('hostres').checked == true) { + $('mibii').checked = true; + } +} + function enable_change(whichone) { if( whichone.name == "trapenable" ) @@ -369,13 +375,13 @@ function enable_change(whichone) { <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("SNMP Modules");?></td> <td width="78%" class="vtable"> - <input name="mibii" type="checkbox" id="mibii" value="yes" <?php if ($pconfig['mibii']) echo "checked"; ?> ><?=gettext("MibII"); ?> + <input name="mibii" type="checkbox" id="mibii" value="yes" onClick="check_deps()" <?php if ($pconfig['mibii']) echo "checked"; ?> ><?=gettext("MibII"); ?> <br /> <input name="netgraph" type="checkbox" id="netgraph" value="yes" <?php if ($pconfig['netgraph']) echo "checked"; ?> ><?=gettext("Netgraph"); ?> <br /> <input name="pf" type="checkbox" id="pf" value="yes" <?php if ($pconfig['pf']) echo "checked"; ?> ><?=gettext("PF"); ?> <br /> - <input name="hostres" type="checkbox" id="hostres" value="yes" <?php if ($pconfig['hostres']) echo "checked"; ?> ><?=gettext("Host Resources");?> + <input name="hostres" type="checkbox" id="hostres" value="yes" onClick="check_deps()" <?php if ($pconfig['hostres']) echo "checked"; ?> ><?=gettext("Host Resources (Requires MibII)");?> </td> </tr> <?php if(!$config['interfaces']['lan']): ?> |