Project

General

Profile

Support #800

Setup Power Outage Email Notifications on FreeNAS

Added by Daniel Curtis over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Automated Server Management
Target version:
Start date:
04/22/2016
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

Description

This is a simple guide on setting up FreeNAS 9.10 to alert via email on power outage events using an APC UPS.

Setup Email

  • Login to your FreeNAS and go to System -> Email
  • And configure the settings to match your setup:
    1. From email:
    2. Outgoing mail server: mail.example.com
    3. Port to connect to: 587
    4. TLS/SSL: TLS
    5. Use SMTP Authentication: [X]
    6. Username:
    7. Password: SuperSecretPassword
    8. Password confirmation: SuperSecretPassword

Setup UPS Notifications

  • Login to your FreeNAS server and click Shell
  • Now find the USB port that the UPS is connected to:
    dmesg | grep -i --color 'american power conversion'
    
    • Example output:
      ugen0.5: <American Power Conversion> at usbus0 
      
  • Next go to Services and turn ON UPS.
  • Then click the Wrench icon to configure the UPS connection.
    1. Set UPS Mode to Master.
    2. Set Identifier to ups.
    3. Set Driver to APC ups 2 Back-UPS USB USB (usbhid-ups).
    4. Set Port to /dev/ugen0.5.
    5. Set Shutdown mode to UPS reaches low battery.
    6. Set Monitor password SuperSecretPassword.
    7. Set email to .
    8. Finally click on OK button to save changes.
  • Open up a Shell again and poll the status of a UPS server on FreeNAS:
    upsc ups@localhost
    

Resource

History

#1 Updated by Daniel Curtis over 4 years ago

  • Description updated (diff)
  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#2 Updated by Daniel Curtis over 4 years ago

  • Category set to Automated Server Management
  • Status changed from Resolved to Closed

Also available in: Atom PDF