Weil Jimmer's BlogWeil Jimmer's Blog


[筆記] pfSense NUT 設定教學 - Network UPS Tools 完整配置指南

-
更新於 2025-12-25 19:13:08

由於 UPS 的設定比較麻煩,這篇文章作為筆記紀錄目前的設定,預防未來忘記怎麼設定 NUT 服務。

安裝第三方 Package

設定

從「服務」找到 UPS 後,點 UPS Settings 開始填入配置。

我目前是 Local USB 的狀態,讓 UPS 透過 USB 線直連 pfSense。

品牌則是 Cyberpower CP1500PFCLCDa TW,這邊驅動選 usbhid,vendorid 則是 0764,僅限我這款 UPS 是這樣,其他的型號,可能需要透過 lsusb 之類的方法查到 VID 為多少。

在我的例子中,interruptonly 這個詞在 pfSense 版本 2.8.1 後必須要加入,否則無法正常運作。


port = auto
vendorid = 0764
interruptonly

upsmon.conf


DEADTIME 15
POWERDOWNFLAG /var/run/nut/killpower

ups.conf


maxretry = 99999
debug = 9

upsd.conf


LISTEN 0.0.0.0 3493

upsd.users

建立 NUT 使用者帳號,以便其他需要監測 UPS 的服務能夠連線上這台 NUT 伺服器。


[upsuser]
  password = MY_SECRET_PASSWORD
  upsmon master

完成

之後可以看到目前 UPS 的電量、剩餘時間等狀態,之後就可以設定 NAS 上的 UPS 服務或個人電腦的 UPS 監測服務。

By Weil Jimmer


This entry was posted in General, Experience, The Internet, Note, OpenWrt, Tools By Weil Jimmer.

About Weil Jimmer

avatar

Hi! Everyone! My name is Weil Jimmer. This is my personal blog. I'm a webmaster of this site. I hope the site will be popular. Now, Let's go! Enjoy gaining more knowledge.
More Details About Me : https://weils.net/profile.php

Leave a Reply

Name*:

Email*:

Website:

Privacy:   

Comment*:

Visitor Count

pop
nonenonenone

Note

不要和愚蠢的人發生爭執。

支持網路中立性.
Support Net Neutrality.

支持臺灣實施
無條件基本收入

今天是耶誕節。祝各位耶誕節愉快!

Quotes

我一定會老。

我一定會病。

我一定會死。

人生終須一別。

我們是業的主人。

Search

Music

Life Counter

22893days



Breaths between now and when I die.

Blogging Journey

4864days

since our first blog post.

Words Quiz


Quotes

The strong do what they can and the weak suffer what they must.

Privacy is your right and ability to be yourself and express yourself without the fear that someone is looking over your shoulder and that you might be punished for being yourself, whatever that may be.

It is quality rather than quantity that matters.

I WANT Internet Freedom.

Reality made most of people lost their childishness.

Justice,Freedom,Knowledge.

Without music life would be a mistake.

Support/Donate

This site also need a little money to maintain operations, not entirely without any cost in the Internet. Your donations will be the best support and power of the site.
MethodBitcoin Address
bitcoin1gtuwCjjVVrNUHPGvW6nsuWGxSwygUv4x
buymeacoffee
Register in linode via invitation link and stay active for three months.Linode

Support The Zeitgeist Movement

The Zeitgeist Movement

The Lie We Live

The Lie We Live

The Questions We Never Ask

The Questions We Never Ask

Man

Man

THE EMPLOYMENT

Man

In The Fall

In The Fall

Categories

Android (8)

Announcement (4)

Arduino (2)

Bash (2)

C (3)

C# (5)

C++ (1)

Experience (56)

Flash (2)

Free (13)

Functions (36)

Games (13)

General (66)

Git (3)

HTML (7)

Java (13)

JS (7)

Mood (24)

NAS (2)

Note (36)

Office (1)

OpenWrt (8)

PHP (9)

Privacy (5)

Product (12)

Python (4)

Software (11)

The Internet (28)

Tools (18)

VB.NET (8)

VR (1)

WebHosting (7)

Wi-Fi (5)

XML (4)