Today I needed those 67Mb of RAM because the kernel on an old-timer began oomkill'ing my processes. A quick search yielded NUT, that works just fine with the Network Management card of Smart-UPS 3000, using the SNMP module.
Here's what I did on the Debian machine.
1. Install packages nut and nut-snmp
# aptitude install nut nut-snmp2. Create /etc/nut/ups.conf:
[apc1]Notice that "port" is the hostname or IP of your APC network card.
driver = snmp-ups
port = apc1.mydomain
desc = "APC1 UPS Network Management Card"
3. Start the UPS driver to see if it is working:
# upsdrvctl start4. Create an empty upsd.users file for now:
Network UPS Tools - UPS driver controller 2.0.4
Network UPS Tools - Multi-MIBS SNMP UPS driver 0.41 (2.0.4)
Warning: This is an experimental driver.
Some features may not function correctly.
detected Smart-UPS 3000 RM on host apc1.mydomain
echo "" > /etc/nut/upsd.users5. Create upsd.conf:
ACL all 0.0.0.0/06. Start the server:
ACL localhost 127.0.0.1/32
# upsd7. Run the upsc utility to test the daemon:
Network UPS Tools upsd 1.5.12
Connected to UPS [apc1]: snmp-ups-apc1.mydomain
# upsc apc1@localhost ups.status8. At this point it seems that all is working fine. Edit the upsd.users file:
TRIM # OBS: Should have been "OL" but it seems Energy Australia wasn't cooperating.
# upsc apc1@localhost
ups.model: Smart-UPS 3000 RM
[monuser]9. Edit your upsmon.conf file and remember to set a MONITOR line:
password = mypass
allowfrom = localhost
(...)Check the examples for the other configuration directives.
MONITOR apc1@localhost 1 monuser mypass master
10. Restart using the init script to make sure:
# /etc/init.d/ups-monitor restartCheck that the processes are running:
Restarting Network UPS Tools: upsdrvctl upsdrvctl upsd upsmon.
# ps auwx | grep upsHave a look at the log files; they should look similar to:
nut 22030 0.0 3.6 4540 2260 ? Ss 16:19 0:00 /lib/nut/snmp-ups -a apc1
nut 22032 0.0 1.1 1732 728 ? Ss 16:19 0:00 /sbin/upsd
root 22034 0.0 1.1 1724 680 ? Ss 16:19 0:00 /sbin/upsmon
nut 22035 0.0 1.2 1724 736 ? S 16:19 0:00 /sbin/upsmon
# tail /var/log/syslogIf that didn't work, have a look at your /etc/default/nut file - make sure the "START_" variables are set to yes.
Jun 13 15:52:08 localhost snmp-ups: Startup successful
Jun 13 15:52:08 localhost upsd: Connected to UPS [apc1]: snmp-ups-apc1.mydomain
Jun 13 15:52:08 localhost upsd: Startup successful
Jun 13 15:52:08 localhost upsmon: Startup successful
Jun 13 15:52:08 localhost upsd: Connection from 127.0.0.1
Jun 13 15:52:08 localhost upsd: Client email@example.com logged into UPS [apc1]
I managed to get it running using NUT's install instructions. These are the basic things to get it running; I recommend reading the rest of the documentation to finish your set-up.