aboutsummaryrefslogtreecommitdiffstats
path: root/config/apcupsd/apcupsd.xml
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2014-02-20 22:29:10 +0100
committerErmal Luçi <eri@pfsense.org>2014-02-20 22:29:10 +0100
commitdcbf50c67a193b828ef23454bfd0595011ea084f (patch)
tree636f288384f0d9fe60fb6e2897f337838a9e6869 /config/apcupsd/apcupsd.xml
parent0e1a16d5aec9663660478f7936fc2b954122550a (diff)
parent0bb5cb1d7b77b16b4c0ae9ab058ea2fc116dce58 (diff)
downloadpfsense-packages-dcbf50c67a193b828ef23454bfd0595011ea084f.tar.gz
pfsense-packages-dcbf50c67a193b828ef23454bfd0595011ea084f.tar.bz2
pfsense-packages-dcbf50c67a193b828ef23454bfd0595011ea084f.zip
Merge pull request #598 from dbaio/master
apcupsd - fix config and improve package
Diffstat (limited to 'config/apcupsd/apcupsd.xml')
-rw-r--r--config/apcupsd/apcupsd.xml22
1 files changed, 14 insertions, 8 deletions
diff --git a/config/apcupsd/apcupsd.xml b/config/apcupsd/apcupsd.xml
index 8674af61..85148b2b 100644
--- a/config/apcupsd/apcupsd.xml
+++ b/config/apcupsd/apcupsd.xml
@@ -40,7 +40,7 @@
<name>Apcupsd</name>
<title>Services: Apcupsd (General)</title>
<category>Monitoring</category>
- <version>0.1</version>
+ <version>0.2</version>
<include_file>/usr/local/pkg/apcupsd.inc</include_file>
<addedit_string>Apcupsd has been created/modified.</addedit_string>
<delete_string>Apcupsd has been deleted.</delete_string>
@@ -60,6 +60,11 @@
<prefix>/usr/local/pkg/</prefix>
<chmod>0755</chmod>
</additional_files_needed>
+ <additional_files_needed>
+ <item>http://www.pfsense.org/packages/config/apcupsd/apcupsd_mail.php</item>
+ <prefix>/usr/local/pkg/</prefix>
+ <chmod>0755</chmod>
+ </additional_files_needed>
<menu>
<name>Apcupsd</name>
<tooltiptext>Setup Apcupsd specific settings</tooltiptext>
@@ -152,12 +157,6 @@ UPSTYPE DEVICE Description <br>
catching; you usually want "APC". Port is usually
161. Community is usually "private".<br>
<br>
-<strong>netsnmp hostname:port:vendor:community</strong>
- OBSOLETE
- Same as SNMP above but requires use of the
- net-snmp library. Unless you have a specific need
- for this old driver, you should use 'snmp' instead.<br>
-<br>
<strong>dumb /dev/tty**</strong> Old serial character device for use with
simple-signaling UPSes.<br>
<br>
@@ -178,6 +177,13 @@ UPSTYPE DEVICE Description <br>
<required>true</required>
</field>
<field>
+ <fielddescr>Device</fielddescr>
+ <fieldname>device</fieldname>
+ <description></description>
+ <type>input</type>
+ <size>60</size>
+ </field>
+ <field>
<fielddescr>Poll Time</fielddescr>
<fieldname>polltime</fieldname>
<description>Interval (in seconds) at which apcupsd polls the UPS for status. Default is 60</description>
@@ -322,7 +328,7 @@ UPSTYPE DEVICE Description <br>
</options>
</field>
</fields>
- <custom_php_install_command>sync_package_apcupsd();</custom_php_install_command>
+ <custom_php_install_command>php_install_apcupsd();</custom_php_install_command>
<custom_php_command_before_form></custom_php_command_before_form>
<custom_php_after_head_command></custom_php_after_head_command>
<custom_php_after_form_command></custom_php_after_form_command>