Two things to note first: This is an APC SmartUPS 750VXL that has both USB and serial ports; I am using the serial port with cable 94-0024C. Second, the machine has *two* ethernet adapters; eth0 has ip 192.168.0.2 and is set up with a crossover cable to another machine connected to the same UPS, which will be the slave.

I'm bumping this as I've experienced a similar issue with apcupsd 3.10.9; while I can get apcaccess and multimon.cgi to respond properly by setting NISIP=0.0.0.0 or 127.0.0.1, entering either a specific host IP or subnet yields the same error that penetrode describes. While I'm not horribly concerned with this at the moment, I'd feel much better if I could lock this down to a specific host IP/subnet...

While we're on the topic, I've also been unable to force a shutdown while testing the UPS (APC Back-UPS CS350, USB cable). I get all the wall messages I could possibly want, and communication between the UPS and my system is good (i.e. it acknowledges UPS battery, power restored, etc). Unfortunately, when I do a tail -f of /var/log/messages I see that the daemon is denied permission when it attempts to initiate a system shutdown (though it cancels these non-existent shutdowns just fine when I reconnect the power). This seems odd to me as apcupsd runs as root...something to do with the fact that I was testing this functionality in a console window under KDE perhaps?

I'll be happy to post more specs/logs/whatever on request, but I think I'm just missing something obvious or Gentoo-specific...

Well, thats what I get for being lazy. Apparently, apcupsds inability to shutdown the system stemmed from the fact I hadnt built the following into my kernel:

Code:

[*] Preliminary USB device filesystem

I had noticed a few of the USB subsystem tests didnt seem to apply to my installation the first time around; figured I was alright since I had established communication with the UPS. Shame on me.

As penance, Ill be posting a HOWTO on apcupsd with USB support to the Documentation, Tips & Tricks forum (since Ive now got everything running to my satisfaction). Look for it sometime in the near future.

As for the nagging NISIP question, I finally dropped it after finding this from the man himself. See the second paragraph. I never was able to get this to bind to a specific address, subnet, or anything else Ive simply commented it out in apcupsd.conf and been happy ever since. If anyone has had any luck implementing this feature as-advertised, Id be interested in hearing about it