diff options
author | jim-p <jimp@pfsense.org> | 2011-05-25 13:34:48 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2011-05-25 13:34:48 -0400 |
commit | f5f33c1aaba7e941a248996d45bb504e63694223 (patch) | |
tree | ea233c37ffe72fa1004f4c5f714bf41428e36a72 /config/nut/nut.xml | |
parent | 7050a53970553f7ce153ee20d6554734118f2c22 (diff) | |
download | pfsense-packages-f5f33c1aaba7e941a248996d45bb504e63694223.tar.gz pfsense-packages-f5f33c1aaba7e941a248996d45bb504e63694223.tar.bz2 pfsense-packages-f5f33c1aaba7e941a248996d45bb504e63694223.zip |
Add initial SNMP UPS support. Version bump nut.
Diffstat (limited to 'config/nut/nut.xml')
-rw-r--r-- | config/nut/nut.xml | 100 |
1 files changed, 94 insertions, 6 deletions
diff --git a/config/nut/nut.xml b/config/nut/nut.xml index 5390186f..aaad64ea 100644 --- a/config/nut/nut.xml +++ b/config/nut/nut.xml @@ -85,6 +85,10 @@ </additional_files_needed> <fields> <field> + <name>General Settings</name> + <type>listtopic</type> + </field> + <field> <fielddescr>UPS Monitoring</fielddescr> <fieldname>monitor</fieldname> <type>select</type> @@ -99,12 +103,25 @@ <value>local</value> </option> <option> - <name>Remote UPS</name> + <name>Remote NUT UPS</name> <value>remote</value> </option> + <option> + <name>Remote SNMP UPS</name> + <value>snmp</value> + </option> </options> </field> <field> + <fielddescr>Power Down Instead of Halt</fielddescr> + <fieldname>powerdown</fieldname> + <type>checkbox</type> + </field> + <field> + <name>Local UPS Settings</name> + <type>listtopic</type> + </field> + <field> <fielddescr><strong>Local UPS Name</strong></fielddescr> <fieldname>name</fieldname> <type>input</type> @@ -504,11 +521,6 @@ </options> </field> <field> - <fielddescr>Power Down Instead of Halt</fielddescr> - <fieldname>powerdown</fieldname> - <type>checkbox</type> - </field> - <field> <fielddescr>Local Remote Access Address <br>(ex: 192.168.1.0/24)</fielddescr> <fieldname>allowaddr</fieldname> <type>input</type> @@ -524,6 +536,10 @@ <type>password</type> </field> <field> + <name>Remote NUT UPS Settings</name> + <type>listtopic</type> + </field> + <field> <fielddescr><strong>Remote UPS Name</strong></fielddescr> <fieldname>remotename</fieldname> <type>input</type> @@ -543,6 +559,77 @@ <fieldname>remotepass</fieldname> <type>password</type> </field> + <field> + <name>Remote SNMP UPS Settings</name> + <type>listtopic</type> + </field> + <field> + <fielddescr><strong>SNMP UPS Name</strong></fielddescr> + <fieldname>snmpname</fieldname> + <type>input</type> + </field> + <field> + <fielddescr><strong>SNMP UPS Address</strong> <br>(ex: 192.168.1.10)</fielddescr> + <fieldname>snmpaddr</fieldname> + <type>input</type> + </field> + <field> + <fielddescr>SNMP UPS Community<br>(Def: public)</fielddescr> + <fieldname>snmpaddr</fieldname> + <type>input</type> + </field> + <field> + <fielddescr>SNMP UPS Version<br>(Def: v2c)</fielddescr> + <fieldname>snmpversion</fieldname> + <type>select</type> + <options> + <option> + <name>SNMP v2c</name> + <value>v2c</value> + </option> + <option> + <name>SNMP v1</name> + <value>v1</value> + </option> + </options> + </field> + <field> + <fielddescr>SNMP UPS MIB<br>(Def: IETF)</fielddescr> + <fieldname>snmpmib</fieldname> + <type>select</type> + <options> + <option> + <name>ietf</name> + <value>ietf</value> + </option> + <option> + <name>mge</name> + <value>mge</value> + </option> + <option> + <name>apcc</name> + <value>apcc</value> + </option> + <option> + <name>netvision</name> + <value>netvision</value> + </option> + <option> + <name>pw</name> + <value>pw</value> + </option> + </options> + </field> + <field> + <fielddescr>SNMP UPS Polling Freq<br>(Def: 30)</fielddescr> + <fieldname>snmpfreq</fieldname> + <type>input</type> + </field> + <field> + <fielddescr>Disable transfer OIDs<br>(use on APCC Symmetras)</fielddescr> + <fieldname>snmpdisabletransfer</fieldname> + <type>checkbox</type> + </field> </fields> <custom_php_command_before_form> before_form_nut(&$pkg); @@ -557,3 +644,4 @@ deinstall_package_nut(); </custom_php_deinstall_command> </packagegui> + |