Support #800
Updated by Daniel Curtis over 8 years ago
This is a simple guide on setting up FreeNAS 9.10 to alert via email on power outage events using an APC UPS. h2. Setup Email * Login to your FreeNAS and go to +System -> Email+ * And configure the settings to match your setup: *# From email: *bob@example.com* *# Outgoing mail server: *mail.example.com* *# Port to connect to: *587* *# TLS/SSL: *TLS* *# Use SMTP Authentication: [X] *# Username: *bob@example.com* *# Password: *SuperSecretPassword* *# Password confirmation: *SuperSecretPassword* h2. Setup UPS Notifications * Login to your FreeNAS server and click *Shell* * Now find the USB port that the UPS is connected to: <pre> dmesg | grep -i --color 'american power conversion' </pre> #* _Example output_: <pre> ugen0.5: <American Power Conversion> at usbus0 </pre> * Next go to +Services+ *Services* and turn *ON UPS*. +turn ON UPS+. * Then click the +Wrench+ wrench icon to configure the UPS connection. *# Set UPS Mode to *Master*. *# Set Identifier to *ups*. *# Set Driver to *APC ups 2 Back-UPS USB USB (usbhid-ups)*. *# Set Port to */dev/ugen0.5*. *# Set Shutdown mode to *UPS reaches low battery*. *# Set Monitor password *SuperSecretPassword*. *# Set email to *bob@example.com*. *# Finally click on *OK* button to save changes. * Open up a +Shell+ *Shell* again and poll the status of a UPS server on FreeNAS: <pre> upsc ups@localhost </pre> h2. Resource * http://www.cyberciti.biz/faq/how-to-install-apc-ups-on-freenas-server/