[DLSLUG-Discuss] Configuring NUT and an SNMP card in an APC UPS

Bill McGonigle e-mail addresses are not shown in archives
Tue Dec 26 09:16:19 EST 2006


I just had the opportunity to set something similar up this morning  
due to a power outage on the west side of the river last night.

On Dec 20, 2006, at 09:07, Adam wrote:

> I'm assuming I tell the
> SNMP card that the SLES box's IP address is a "powerchute client"  
> and then
> set up ups.conf to use smnp-ups with the apcc mib?

Not sure about the SNMP card side, I assume the unit I'm pollng (APC  
Symmetra - full rack-size UPS) doesn't have an ACL (beyond the SNMP  
community name) configured.

> Just curious if anyone has pointers to better docs than I could find
> included with the RPM.

I roughly followed this guide:

   http://fedoranews.org/contributors/kazutoshi_morioka/nut/

configuration changes:

   sudo yum -y install net-snmp net-snmp-libs nut nut-client
   sudo /sbin/chkconfig --levels 345 ups on

-----
/etc/ups/ups.conf:

[myapcups] # DNS Name
      driver = snmp-ups
      port = 192.168.1.13
      community = public
      snmp_version = v1
      mibs = apcc
      pollfreq = 30
      notransferoids # for Symmetra


-----
/etc/ups/upsd.users:

[nutmon]
         password  = mypassword
         allowfrom = localhost
         upsmon slave


-----
/etc/ups/upsmon.conf:

MONITOR [e-mail addresses are not shown in archives] 1 nutmon mypassword slave

(and adjust the timing values - I didn't like the defaults)


-----
/etc/sysconfig/ups:

MODEL=snmp-ups
DEVICE=
OPTIONS="-a myapcups"

-----

Then startup with:

   sudo /sbin/service ups start

A successful startup logs like this:

Dec 26 09:00:15 myhost upsd[3364]: Connected to UPS [myapcups]: snmp- 
ups-192.168.1.13
Dec 26 09:00:19 myhost upsd[3386]: Startup successful
Dec 26 09:00:19 myhost upsmon[3388]: Startup successful
Dec 26 09:00:19 myhost upsd[3386]: Connection from 127.0.0.1
Dec 26 09:00:19 myhost upsd[3386]: Client [e-mail addresses are not shown in archives] logged  
into UPS [myapcups]

I haven't yet created a power outage to test the shutdown.

-Bill

-----
Bill McGonigle, Owner           Work: 603.448.4440
BFC Computing, LLC              Home: 603.448.1668
[e-mail addresses are not shown in archives]           Cell: 603.252.2606
http://www.bfccomputing.com/    Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf




More information about the DLSLUG-Discuss mailing list