February 7, 201610 yr I want to monitor several UPSes on my Windows box, but since I can't run multiple instances of APCUPSD in Windows, but I can run multiple APCTrays to monitor APCUPSD services running elsewhere. I thought I would setup several instances of APCUPSD on UnRaid using different ports and monitor these in Windows. Before you ask, many of the UPSes are standalone (fish life support), so they have no PC on which to run a service. Is there a package I could run to install the new instances of APCUPSD without screwing up my working setup. I gather I just need to create copies of the config files, directories and update the config files accordingly and start the services when UnRaid starts? But if anyone has already done this or has a guide, it would save me slogging through the manual. Thanks
February 7, 201610 yr Never heard of anyone doing this, and you don't mention which version of unRAID you are using. APCUPSd is built-in functionality on unRAID v6, which is what most of the tinkerers around here will be running. There is a NUT plugin. Don't know if NUT has the capability you are looking for or not but there is a Windows version.
February 7, 201610 yr Maybe multiple low resource linux VM's with a UPS passed to each, then all combined on the windows box
February 7, 201610 yr Look in the apcupsd manual under the section Controlling Multiple UPSes on one Machine
February 8, 201610 yr Author Look in the apcupsd manual under the section Controlling Multiple UPSes on one Machine Thanks looks vaguely familiar . I was having trouble getting APCUPSD to see my new cards, until I finally clued in that it uses 'apc' for the user name, no matter what you change it to. So I've trolled the manual a bit the last few days.
February 12, 201610 yr Author OK, so I made the changes from the apcupsd manual suggested by unevent, but I haven't tried them yet as I'm in the middle of a preclear. So I know my UPS Plugin won't work anymore, since my config file now has a non-standard name. But will my Dashboard still see the UPS status of the primary UPS? I assume it won't since the daemon name is slightly different. I guess the easiest fix is to change the script to use the standard setup for UPS0 and the non-standard names for the monitor only UPSes. Unless there's some way to change what the dashboard is looking for to monitor the UPS? I really don't care about the Plugin, I've been through the config files so many time know, that I don't need the Plugin. Thanks
February 16, 201610 yr Author See what running 'apcaccess' shows you. The good news is that UnRaid can still see my UPS, the bad news is that the reboot happily wiped out my custom script. LOL. So where do I have to install it so that it becomes persistent? I am able to monitor UPS #1 in Windows though, so only 3 more to go. Thanks.
February 17, 201610 yr See what running 'apcaccess' shows you. The good news is that UnRaid can still see my UPS, the bad news is that the reboot happily wiped out my custom script. LOL. So where do I have to install it so that it becomes persistent? I am able to monitor UPS #1 in Windows though, so only 3 more to go. Thanks. Only boot (flash) and mnt (shares and disks) are actually storage. All other folders are in RAM.
February 18, 201610 yr Author Only boot (flash) and mnt (shares and disks) are actually storage. All other folders are in RAM. Yep, I miss installing packages from the Go script. So I gather I have to create my own Docker App to do this?
February 18, 201610 yr You can use the go script to copy in your config/script on boot then issue apcupsd restart. Store your config/script on the flash drive.
February 18, 201610 yr Author Sadly their are a couple of functions missing from the APCUPSD directory, killproc being one. Seems to kill by Instance and PID, which I gather you can't do in a script. I could hard code all of the directory names and just use kill, but it's so kewl the other way.
February 18, 201610 yr Sadly their are a couple of functions missing from the APCUPSD directory, killproc being one. Seems to kill by Instance and PID, which I gather you can't do in a script. I could hard code all of the directory names and just use kill, but it's so kewl the other way. Not in front of unRAID at the moment, but should be able to stop, start, restart apcupsd with something like '/etc/rc.d/rc.apcupsd restart'. Path may not be correct. Edit: verified it is correct path.
February 15, 20188 yr The link to the manual is offline, did you ever get this going and can you post an example of your config script for multiple UPS?
February 17, 20188 yr The monitor records events to a log file, you can try monitoring that. If you want to go that route, I can look into digging up a program I wrote that decoded the log file events.
Archived
This topic is now archived and is closed to further replies.