aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo G. Baio (dbaio) <dbaio@bsd.com.br>2015-04-07 14:41:48 -0300
committerDanilo G. Baio (dbaio) <dbaio@bsd.com.br>2015-04-07 14:41:48 -0300
commit9dd9c966de4741eec1e060f4e629bf72406224aa (patch)
treecbb09edaa44817242e4c9ffe8657e56d2e20c500
parenta9d7f2034af6a28287ef85682a2fa1b6c8e0d05b (diff)
downloadpfsense-packages-9dd9c966de4741eec1e060f4e629bf72406224aa.tar.gz
pfsense-packages-9dd9c966de4741eec1e060f4e629bf72406224aa.tar.bz2
pfsense-packages-9dd9c966de4741eec1e060f4e629bf72406224aa.zip
apcupsd - add new fields
-rw-r--r--config/apcupsd/apcupsd.xml62
1 files changed, 57 insertions, 5 deletions
diff --git a/config/apcupsd/apcupsd.xml b/config/apcupsd/apcupsd.xml
index bef6c330..55d13d6f 100644
--- a/config/apcupsd/apcupsd.xml
+++ b/config/apcupsd/apcupsd.xml
@@ -339,11 +339,63 @@ UPSTYPE DEVICE Description <br>
<type>listtopic</type>
</field>
<field>
- <fieldname>notification_info</fieldname>
- <type>info</type>
- <description>In order to receive e-mail notifications, you need to configure
- SMTP Email Notifications on Advanced/Notifications section, and also,
- install mailreport package.</description>
+ <fielddescr>E-mail notification</fielddescr>
+ <fieldname>emailnotification</fieldname>
+ <description><![CDATA[Choose how APCUpsd will send email notifications.<br>
+<br>
+<strong>phpMailer</strong> - In order to receive e-mail notifications through phpMailer, you need
+to configure SMTP Email Notifications on Advanced/Notifications section, and also,
+install mailreport package.<br>
+<br>
+<strong>SMTP built-in</strong> - A simple SMTP mail client for apcupsd.
+It does not have smtp authentication of any kind.
+<br>
+ ]]></description>
+ <type>select</type>
+ <default_value>phpmailer</default_value>
+ <options>
+ <option><name>phpMailer</name><value>phpmailer</value></option>
+ <option><name>SMTP built-in</name><value>smtpbuiltin</value></option>
+ </options>
+ </field>
+ <field>
+ <name>SMTP built-in</name>
+ <type>listtopic</type>
+ </field>
+ <field>
+ <fielddescr>SMTP Host</fielddescr>
+ <fieldname>smtphost</fieldname>
+ <description></description>
+ <type>input</type>
+ <size>20</size>
+ </field>
+ <field>
+ <fielddescr>SMTP Port</fielddescr>
+ <fieldname>smtpport</fieldname>
+ <description></description>
+ <type>input</type>
+ <size>5</size>
+ </field>
+ <field>
+ <fielddescr>From</fielddescr>
+ <fieldname>smtpfrom</fieldname>
+ <description></description>
+ <type>input</type>
+ <size>20</size>
+ </field>
+ <field>
+ <fielddescr>To</fielddescr>
+ <fieldname>smtpto</fieldname>
+ <description></description>
+ <type>input</type>
+ <size>20</size>
+ </field>
+ <field>
+ <fielddescr>Cc</fielddescr>
+ <fieldname>smtpcc</fieldname>
+ <description></description>
+ <type>input</type>
+ <size>20</size>
</field>
</fields>
<custom_php_install_command>php_install_apcupsd();</custom_php_install_command>