UPC setup question

-RYknow

Renowned Member
Apr 2, 2017
31
0
71
45
I recently picked up a UPC and I'm trying to get it configured to work with proxmox. I'm using a guide for apcupsd to get things setup and configured. I've been able to get apcupsd installed, and I'm editing the config file. In the guide the writer has it setup for device /dev/ttySO, and he mentions that is his com port. I have my UPC setup with the usb, and I'm just wondering how I make sure I'm pointing the config file to the right USB/device.


Also, not sure if this would help, but this is the out put of lsusb;
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 0624:0248 Avocent Corp.
Bus 005 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 413c:2106 Dell Computer Corp. Dell QuietKey Keyboard
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Any help would be greatly appreciated.
-RYknow
 
This is exactly what I was looking for. Not sure how I didn't find it... I googled this exact issue for over an hour. :rolleyes:

I do have one other question. It's been brought to my attention that I can use pfsense (and the apcupsd package) to configure the UPC. Is this a better route to take, or is it better practice to have it run directly from my proxmox server?

Thanks,
-RYknow
 
I do have one other question. It's been brought to my attention that I can use pfsense (and the apcupsd package) to configure the UPC. Is this a better route to take, or is it better practice to have it run directly from my proxmox server?
In practice there is no difference since apcupsd can run as a server for a number of slaves. Eg. the same apcupsd can control a number of servers at the same time.
 
In practice there is no difference since apcupsd can run as a server for a number of slaves. Eg. the same apcupsd can control a number of servers at the same time.

So this is exciting, but I just want to clarify; I only have one USB cable. Having just the one, I can still control multiple servers? It would be perfect if I could configure my one UPC to cleanly shut down my R610 (proxmox), and my netgate APU. If that's the case, are you aware of a good guide that covers setting up slaves?

Thanks,
-RYknow
 
I'm hoping maybe you guys could point me in the right direction.... as I have things configured, but the daemon is failing to start. When I first configured everything and started the service, it started fine. I decided to change the config file, so I stopped the service and changed the config file. When I went to restart the service, it fails. Here is the results from service apcupsd status;

root@proxmox:/home/ryknow# service apcupsd status
● apcupsd.service - LSB: Starts apcupsd daemon
Loaded: loaded (/etc/init.d/apcupsd)
Active: failed (Result: exit-code) since Mon 2017-05-08 20:58:18 EDT; 16s ago
Process: 2217 ExecStart=/etc/init.d/apcupsd start (code=exited, status=1/FAILURE)

May 08 20:58:18 proxmox apcupsd[2217]: Starting UPS power management: Terminating due to configuration file errors.
May 08 20:58:18 proxmox systemd[1]: apcupsd.service: control process exited, code=exited status=1
May 08 20:58:18 proxmox systemd[1]: Failed to start LSB: Starts apcupsd daemon.
May 08 20:58:18 proxmox systemd[1]: Unit apcupsd.service entered failed state.

Not really sure what I did. I went back into the config file and undid the changes I made, and tried to restart the service, and I still get the same results.

-RYknow
 
This explains it. So you need to fix your configuration file.

I was hoping that something in the error would maybe indicate what I've done wrong. I'll go back through the config file more thoroughly and report back.

-RYknow