Support #800
Setup Power Outage Email Notifications on FreeNAS
Status:
Closed
Priority:
Normal
Assignee:
Category:
Automated Server Management
Target version:
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:
- 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
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
- Example output:
- Next go to Services and turn ON UPS.
- Then click the 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 again and poll the status of a UPS server on FreeNAS:
upsc ups@localhost