在 KSTAR Micropower 600VA 上启用 NUT

在 KSTAR Micropower 600VA 上启用 NUT

我有一台 KSTAR Micropower 600VA(USB 标识为 MEC0003),安装了 NUT,进行了以下配置:

禁用 KSTAR Powercom 600VA UPS 的蜂鸣声(USB 标识为 MEC0003)

但守护进程还没有启动:

sudo 服务 nut 服务器状态

nut-server.service - Network UPS Tools - power devices information server
   Loaded: loaded (/lib/systemd/system/nut-server.service; enabled; vendor preset: enabled)
   Active: inactive (dead) since Sat 2021-08-21 00:26:32 CEST; 3s ago
  Process: 3540 ExecStart=/sbin/upsd (code=exited, status=0/SUCCESS)

Aug 21 00:26:32 moon-ThinkPad-X1-Carbon systemd[1]: Starting Network UPS Tools - power devices information server...
Aug 21 00:26:32 moon-ThinkPad-X1-Carbon upsd[3540]: upsd disabled, please adjust the configuration to your needs
Aug 21 00:26:32 moon-ThinkPad-X1-Carbon upsd[3540]: Then set MODE to a suitable value in /etc/nut/nut.conf to enable it
Aug 21 00:26:32 moon-ThinkPad-X1-Carbon systemd[1]: Started Network UPS Tools - power devices information server.

ups.conf:

maxretry = 5

MODE=none

[kstar]

driver = nutdrv_qx

port = auto

desc = "Description of this UPS"

好像我遗漏了一些配置,有人能帮忙吗?提前谢谢,Sandor

答案1

乍一看,模式设置似乎不正确。首先编辑 nut.conf,如下所示:

$ sudo nano /etc/nut/nut.conf

将模式设置为独立:

MODE=standalone

MODE=none另外,从您的 中删除该行ups.conf

完成后,你可以再次尝试启动螺母:

$ sudo upsdrvctl start

$ sudo systemctl start nut-server

最后检查确保一切正常:

$ sudo systemctl status nut-server

您应该看到以下内容:

● nut-server.service - Network UPS Tools - power devices information server
 Loaded: loaded (/lib/systemd/system/nut-server.service; enabled; vendor preset: enabled)
 Active: active (running) since Sat 2022-01-15 07:49:02 CET; 10min ago
Process: 136052 ExecStart=/sbin/upsd (code=exited, status=0/SUCCESS)
Main PID: 136064 (upsd)
Tasks: 1 (limit: 18903)
Memory: 1020.0K
CGroup: /system.slice/nut-server.service
             └─136064 /lib/nut/upsd

Jan 15 07:49:02 server systemd[1]: Starting Network UPS Tools - power devices information server...
Jan 15 07:49:02 server upsd[136052]: fopen /run/nut/upsd.pid: No such file or directory
Jan 15 07:49:02 server upsd[136052]: listening on 127.0.0.1 port 3493
Jan 15 07:49:02 server upsd[136052]: listening on 127.0.0.1 port 3493
Jan 15 07:49:02 server upsd[136052]: listening on ::1 port 3493
Jan 15 07:49:02 server upsd[136052]: listening on ::1 port 3493
Jan 15 07:49:02 server upsd[136052]: Connected to UPS [kstar]: nutdrv_qx-kstar
Jan 15 07:49:02 server upsd[136052]: Connected to UPS [kstar]: nutdrv_qx-kstar
Jan 15 07:49:02 server upsd[136064]: Startup successful
Jan 15 07:49:02 server systemd[1]: Started Network UPS Tools - power devices information server.

如果这没有帮助,请发布您的配置文件的完整内容:/etc/nut/ups.conf/etc/nut/nut.conf

相关内容