-
首先,确认SNMP功能已开启。在APCUPSD配置文件中,将SNMP主机地址设为UPS的IP地址,并检查SNMP配置。
-
确认在Macintosh系统中安装了APCUPSD软件,并检查配置文件是否正确。以下是示例配置文件:
for example, /usr/local/etc/apcupsd/apcupsd.conf should look like these:
ups.ups1 is the local name of your UPS. If it differs, adjust accordingly.
UPSCABLE ether
UPSTYPE snmp
DEVICE 192.168.0.2:161:APC:public:::::3
LOCKFILE /var/lock
UPSCLASS standalone
UPSMODE disable
Don't start up on a power failure by default.
BATTERYLEVEL 5
MINUTES 2
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
- 重新启动APCUPSD软件,检查连接是否成功。使用以下命令。
for example, sudo launchctl stop org.apcupsd
sudo launchctl start org.apcupsd
如果连接仍然失败,请检查系统日志以获取更多信息。