diff options
Diffstat (limited to 'config/nut/nut.xml')
-rw-r--r-- | config/nut/nut.xml | 518 |
1 files changed, 518 insertions, 0 deletions
diff --git a/config/nut/nut.xml b/config/nut/nut.xml new file mode 100644 index 00000000..fdaa6295 --- /dev/null +++ b/config/nut/nut.xml @@ -0,0 +1,518 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE packagegui SYSTEM "../schema/packages.dtd"> +<?xml-stylesheet type="text/xsl" href="../xsl/package.xsl"?> +<packagegui> + <copyright> + <![CDATA[ +/* $Id$ */ +/* ========================================================================== */ +/* + authng.xml + part of pfSense (http://www.pfSense.com) + Copyright (C) 2007 to whom it may belong + All rights reserved. + + Based on m0n0wall (http://m0n0.ch/wall) + Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>. + All rights reserved. + */ +/* ========================================================================== */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + */ +/* ========================================================================== */ + ]]> + </copyright> + <description>Describe your package here</description> + <requirements>Describe your package requirements here</requirements> + <faq>Currently there are no FAQ items provided.</faq> + <name>nut</name> + <version>2.0.4</version> + <title>Services: NUT</title> + <savetext>Change</savetext> + <aftersaveredirect>/status_nut.php</aftersaveredirect> + <include_file>/usr/local/pkg/nut.inc</include_file> + <menu> + <name>NUT</name> + <tooltiptext>Set Network UPS Tools settings.</tooltiptext> + <section>Services</section> + <url>/status_nut.php</url> + </menu> + <service> + <name>nut</name> + <rcfile>nut.sh</rcfile> + <executable>upsmon</executable> + </service> + <tabs> + <tab> + <text>NUT Status</text> + <url>/status_nut.php</url> + </tab> + <tab> + <text>NUT Settings</text> + <url>/pkg_edit.php?xml=nut.xml&id=0</url> + <active/> + </tab> + </tabs> + <additional_files_needed> + <prefix>/usr/local/pkg/</prefix> + <chmod>0755</chmod> + <item>http://www.pfsense.com/packages/config/nut/nut.inc</item> + </additional_files_needed> + <additional_files_needed> + <prefix>/usr/local/www/</prefix> + <chmod>0755</chmod> + <item>http://www.pfsense.com/packages/config/nut/status_nut.php</item> + </additional_files_needed> + <fields> + <field> + <fielddescr>UPS Monitoring</fielddescr> + <fieldname>monitor</fieldname> + <type>select</type> + <required/> + <options> + <option> + <name>Disabled</name> + <value></value> + </option> + <option> + <name>Local UPS</name> + <value>local</value> + </option> + <option> + <name>Remote UPS</name> + <value>remote</value> + </option> + </options> + </field> + <field> + <fielddescr><strong>Local UPS Name</strong></fielddescr> + <fieldname>name</fieldname> + <type>input</type> + </field> + <field> + <fielddescr><strong>Local UPS Model</strong></fielddescr> + <fieldname>driver</fieldname> + <description>If generic or cable specified in parenthesis you need + to select the appropriate option below.</description> + <type>select</type> + <options> + <option> + <name>APC Back-UPS (Generic)</name> + <value>genericups00</value> + </option> + <option> + <name>APC Back-UPS RS (Generic)</name> + <value>genericups01</value> + </option> + <option> + <name>APC Back-UPS Pro (Cable)</name> + <value>apcsmart00</value> + </option> + <option> + <name>APC Smart-UPS (Cable)</name> + <value>apcsmart01</value> + </option> + <option> + <name>APC Matrix-UPS</name> + <value>apcsmart02</value> + </option> + <option> + <name>APC Masterswitch (Generic)</name> + <value>genericups02</value> + </option> + <option> + <name>APC Back-UPS USB</name> + <value>newhidups00</value> + </option> + <option> + <name>APC Back-UPS LS USB</name> + <value>newhidups01</value> + </option> + <option> + <name>APC Back-UPS ES USB</name> + <value>newhidups02</value> + </option> + <option> + <name>APC Back-UPS RS USB</name> + <value>newhidups03</value> + </option> + <option> + <name>APC Back-UPS Pro USB</name> + <value>newhidups04</value> + </option> + <option> + <name>APC Smart-UPS USB</name> + <value>newhidups05</value> + </option> + <option> + <name>Belkin Regulator Pro</name> + <value>belkin00</value> + </option> + <option> + <name>Belkin Universal UPS</name> + <value>belkinunv00</value> + </option> + <option> + <name>Belkin Universal UPS USB</name> + <value>newhidups06</value> + </option> + <option> + <name>Best Power Fortress</name> + <value>bestups00</value> + </option> + <option> + <name>Best Power Fortress Telecom</name> + <value>bestups01</value> + </option> + <option> + <name>Best Power Axxium Rackmount</name> + <value>bestups02</value> + </option> + <option> + <name>Best Power Patriot Pro</name> + <value>bestups03</value> + </option> + <option> + <name>Best Power Patriot (Generic/Cable)</name> + <value>genericups03</value> + </option> + <option> + <name>Best Power Micro-Ferrups</name> + <value>bestuferrups00</value> + </option> + <option> + <name>Best Power Fortress/Ferrups</name> + <value>bestfcom00</value> + </option> + <option> + <name>Cyber Power Systems 320AVR</name> + <value>cyberpower00</value> + </option> + <option> + <name>Cyber Power Systems 500AVR</name> + <value>cyberpower01</value> + </option> + <option> + <name>Cyber Power Systems 650AVR</name> + <value>cyberpower02</value> + </option> + <option> + <name>Cyber Power Systems 700AVR</name> + <value>cyberpower03</value> + </option> + <option> + <name>Cyber Power Systems 800AVR</name> + <value>cyberpower04</value> + </option> + <option> + <name>Cyber Power Systems 850AVR</name> + <value>cyberpower05</value> + </option> + <option> + <name>Cyber Power Systems 900AVR</name> + <value>cyberpower06</value> + </option> + <option> + <name>Cyber Power Systems 1250AVR</name> + <value>cyberpower07</value> + </option> + <option> + <name>Cyber Power Systems 1500AVR</name> + <value>cyberpower08</value> + </option> + <option> + <name>Inform GUARD Line Interactive</name> + <value>powercom00</value> + </option> + <option> + <name>Meta System HF Line</name> + <value>metasys00</value> + </option> + <option> + <name>Meta System HF Millennium</name> + <value>metasys01</value> + </option> + <option> + <name>Meta System HF TOP Line</name> + <value>metasys02</value> + </option> + <option> + <name>Meta System ECO Network</name> + <value>metasys03</value> + </option> + <option> + <name>Meta System ECO</name> + <value>metasys04</value> + </option> + <option> + <name>Meta System ally HF</name> + <value>metasys05</value> + </option> + <option> + <name>Meta System Megaline</name> + <value>metasys06</value> + </option> + <option> + <name>MGE UPS SYSTEMS NOVA AVR</name> + <value>mge-shut00</value> + </option> + <option> + <name>MGE UPS SYSTEMS Pulsar Ellipse</name> + <value>mge-shut01</value> + </option> + <option> + <name>MGE UPS SYSTEMS Ellipse Office</name> + <value>mge-shut02</value> + </option> + <option> + <name>MGE UPS SYSTEMS Pulsar EXtreme</name> + <value>mge-shut03</value> + </option> + <option> + <name>MGE UPS SYSTEMS Comet</name> + <value>mge-shut04</value> + </option> + <option> + <name>MGE UPS SYSTEMS Pulsar Esprit</name> + <value>mge-shut05</value> + </option> + <option> + <name>MGE UPS SYSTEMS Evolution</name> + <value>mge-shut06</value> + </option> + <option> + <name>MGE UPS SYSTEMS Comet USB</name> + <value>newhidups07</value> + </option> + <option> + <name>MGE UPS SYSTEMS Protection Center USB</name> + <value>newhidups08</value> + </option> + <option> + <name>MGE UPS SYSTEMS NOVA AVR USB</name> + <value>newhidups09</value> + </option> + <option> + <name>MGE UPS SYSTEMS Pulsar Ellipse USB</name> + <value>newhidups10</value> + </option> + <option> + <name>MGE UPS SYSTEMS Ellipse Office USB</name> + <value>newhidups11</value> + </option> + <option> + <name>MGE UPS SYSTEMS Pulsar Evolution USB</name> + <value>newhidups12</value> + </option> + <option> + <name>MGE UPS SYSTEMS Evolution USB</name> + <value>newhidups13</value> + </option> + <option> + <name>MGE UPS SYSTEMS Pulsar USB</name> + <value>newhidups14</value> + </option> + <option> + <name>MicroDowell B.Box BP</name> + <value>cpsups00</value> + </option> + <option> + <name>Microsol Solis</name> + <value>solis00</value> + </option> + <option> + <name>Microsol Rhino</name> + <value>rhino00</value> + </option> + <option> + <name>Mustek Various</name> + <value>megatec00</value> + </option> + <option> + <name>Mustek Powermust</name> + <value>megatec01</value> + </option> + <option> + <name>Mustek Powermust USB</name> + <value>megatec02</value> + </option> + <option> + <name>Powercom SMK</name> + <value>megatec03</value> + </option> + <option> + <name>Powercom ULT</name> + <value>megatec04</value> + </option> + <option> + <name>Powercom Trust</name> + <value>powercom01</value> + </option> + <option> + <name>Powercom Various</name> + <value>powercom02</value> + </option> + <option> + <name>Tripp-Lite SmartUPS</name> + <value>tripplite00</value> + </option> + <option> + <name>Tripp-Lite SmartOnline</name> + <value>tripplitesu00</value> + </option> + <option> + <name>Tripp-Lite AVR USB</name> + <value>newhidups15</value> + </option> + <option> + <name>Tripp-Lite OMNI USB</name> + <value>newhidups16</value> + </option> + <option> + <name>Tripp-Lite OMNIVUS USB</name> + <value>tripplite_usb00</value> + </option> + <option> + <name>Tripp-Lite SMART USB</name> + <value>tripplite_usb01</value> + </option> + </options> + </field> + <field> + <fielddescr><strong>Local UPS Port</strong></fielddescr> + <fieldname>port</fieldname> + <type>select</type> + <options> + <option> + <name>auto (USB only)</name> + <value>auto</value> + </option> + </options> + </field> + <field> + <fielddescr>Local UPS Generic Type</fielddescr> + <fieldname>upstype</fieldname> + <type>select</type> + <options> + <option> + <name></name> + <value></value> + </option> + <option> + <name>1 (APC Back-UPS using 940-0095A/C cables)</name> + <value>1 00</value> + </option> + <option> + <name>2 (APC Back-UPS using 940-0020B/C cables)</name> + <value>2 00</value> + </option> + <option> + <name>9 (APC Back-UPS using 940-0023A cable)</name> + <value>9 00</value> + </option> + <option> + <name>12 (APC Back-UPS Office using 940-0119A cable)</name> + <value>12 00</value> + </option> + <option> + <name>12 (APC Masterswitch using 940-0020 cable)</name> + <value>12 01</value> + </option> + <option> + <name>20 (APC Back-UPS RS)</name> + <value>20 00</value> + </option> + <option> + <name>6 (Best Power Patriot using INT51 cable)</name> + <value>6 00</value> + </option> + </options> + </field> + <field> + <fielddescr>Local UPS Cable Type</fielddescr> + <fieldname>cable</fieldname> + <type>select</type> + <options> + <option> + <name></name> + <value></value> + </option> + <option> + <name>940-0095B (Gray Cable)</name> + <value>940-0095B 00</value> + </option> + <option> + <name>940-0024C (Black Cable)</name> + <value>940-0024C 00</value> + </option> + </options> + </field> + <field> + <fielddescr>Local Remote Access Address <br>(ex: 192.168.1.0/24)</fielddescr> + <fieldname>allowaddr</fieldname> + <type>input</type> + </field> + <field> + <fielddescr>Local Remote Access User</fielddescr> + <fieldname>allowuser</fieldname> + <type>input</type> + </field> + <field> + <fielddescr>Local Remote Acces Password</fielddescr> + <fieldname>allowpass</fieldname> + <type>password</type> + </field> + <field> + <fielddescr><strong>Remote UPS Name</strong></fielddescr> + <fieldname>remotename</fieldname> + <type>input</type> + </field> + <field> + <fielddescr><strong>Remote UPS Address</strong> <br>(ex: 192.168.1.10)</fielddescr> + <fieldname>remoteaddr</fieldname> + <type>input</type> + </field> + <field> + <fielddescr><strong>Remote UPS User</strong></fielddescr> + <fieldname>remoteuser</fieldname> + <type>input</type> + </field> + <field> + <fielddescr><strong>Remote UPS Password</strong></fielddescr> + <fieldname>remotepass</fieldname> + <type>password</type> + </field> + </fields> + <custom_php_command_before_form> + before_form_nut(&$pkg); + </custom_php_command_before_form> + <custom_php_validation_command> + validate_form_nut($_POST, &$input_errors); + </custom_php_validation_command> + <custom_php_resync_config_command> + sync_package_nut(); + </custom_php_resync_config_command> + <custom_php_deinstall_command> + deinstall_package_nut(); + </custom_php_deinstall_command> +</packagegui> |