====== NUT with SNMP UPS ====== APC UPS 3000XL + AP9617 UPS Network Management Card apt-get install nut-snmp ===== UPS Network Management Card ===== Enable SNMP v1 Read only access for community 'public' ===== NUT config ===== ==== UPS config ==== [UPS3000XL] driver = snmp-ups port = 192.168.64.22 desc = "Smart-UPS 3000 XL" Try to start driver: systemctl start nut-driver.service lip 07 11:31:05 nut upsdrvctl[23315]: No matching MIB found for sysOID '.1.3.6.1.4.1.318.1.3.2.7'! lip 07 11:31:05 nut upsdrvctl[23315]: Please report it to NUT developers, with an 'upsc' output for your device. lip 07 11:31:05 nut upsdrvctl[23315]: Going back to the classic MIB detection method. lip 07 11:31:05 nut upsdrvctl[23315]: Detected Smart-UPS 3000 XL on host 192.168.64.22 (mib: apcc 1.2) And make driver start permanent: systemctl enable nut-driver.service ==== Local UPS monitor ==== [local_mon] password = local_mon_pass upsmon master MONITOR UPS3000XL@localhost 1 local_mon local_mon_pass master MINSUPPLIES 1 NOTIFYCMD /etc/nut/notifycmd.sh POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 NOTIFYFLAG ONLINE<----->SYSLOG+WALL+EXEC NOTIFYFLAG ONBATT<----->SYSLOG+WALL+EXEC NOTIFYFLAG LOWBATT<---->SYSLOG+WALL+EXEC NOTIFYFLAG FSD<><------>SYSLOG+WALL+EXEC # NOTIFYFLAG COMMOK<--->SYSLOG+WALL # NOTIFYFLAG COMMBAD<-->SYSLOG+WALL NOTIFYFLAG SHUTDOWN<--->SYSLOG+WALL+EXEC # NOTIFYFLAG REPLBATT<->SYSLOG+WALL # NOTIFYFLAG NOCOMM<--->SYSLOG+WALL # NOTIFYFLAG NOPARENT<->SYSLOG+WALL RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5 MODE=netserver Start all services: systemctl enable --now nut-server.service systemctl enable --now nut-monitor.service Test with client: upsc UPS3000XL