APCUPSD/NUT Synology and unRAID - Getting confused


Recommended Posts

I have 2 synology diskstations that I would like to have communicate to the unRAID APC.

 

I'm running apcupsd on the unRAID with the clean powerdown package.

 

Synology utilizes NUT to communicate to an ups, while unRAID is using the apcupsd

http://www.networkupstools.org/

 

I have 2 options, but wonder if I am making this more complicated than need be.

 

1.  Setup Syno as the master, unRAID as the slave.  

http://lime-technology.com/forum/index.php?topic=13791.msg130563#msg130563

Would I have to install NUT on the unRAID? or should I just...

           

2.  Setup unRAID as the master, and install apcupsd on the Syno?

http://forum.synology.com/enu/viewtopic.php?f=27&t=19378

 

Or...can I just leave as is (doubtful)- setup the syno as master, modify the unRAID .conf file (SynoIP:3493) - and have unRAID monitor UPS status <See below>

 

 

 

06_Aug._25_11_50.jpg.10bfeabc9f8596022ed0df26a349bcdf.jpg

Link to comment

:)Making progress....installed bootstrap, and the apcupsd ipkg on the synology, and configuring apcupsd.conf for slave service..  I'll post steps how to accomplish if I get it to successfully shutdown on command from the unRAID server.  Any suggestions or help is appreciated

 

 

btw:  only command line experience has been mounting drives via nfs, running screen for the pre-clear - I have never done any of this. (if you don't count machine language coding back when I was in 8th grade for simple games!)  Trying to be careful though.

Link to comment
  • 3 years later...

I am trying to do exactly the same thing (unraid and synology sharing a UPS). Did you have any luck?

FYI, APCUPSD on unRAID is setup by default to be Master. If you can get APCUPSD installed on Synology you can set it to listen to unRAID by setting Device:unRAIDIP:3551  UPS type:Net  UPS cable:Ether

Link to comment

Thank you very much for the pointers! I tried to follow your advice, but got this from synology when running apctest

 

# ./apctest

 

 

2015-08-22 13:51:17 apctest 3.14.8 (16 January 2010) unknown

Checking configuration ...

Attached to driver: usb

sharenet.type = DISABLE

cable.type = USB_CABLE

 

You are using a USB cable type, so I'm entering USB test mode

mode.type = USB_UPS

Setting up the port ...

apctest FATAL ERROR in linux-usb.c at line 609

Cannot find UPS device --

For a link to detailed USB trouble shooting information,

please see <http://www.apcupsd.com/support.html>.

apctest error termination completed

 

Synology's own ups setting is working and communicating with the ups, so i am messing something up with the apcupsd settings. Any ideas?

 

btw this is my .conf file

https://dl.dropboxusercontent.com/u/3260689/apcupsd.conf

Link to comment

Thank you very much for the pointers! I tried to follow your advice, but got this from synology when running apctest

 

# ./apctest

 

 

2015-08-22 13:51:17 apctest 3.14.8 (16 January 2010) unknown

Checking configuration ...

Attached to driver: usb

sharenet.type = DISABLE

cable.type = USB_CABLE

 

You are using a USB cable type, so I'm entering USB test mode

mode.type = USB_UPS

Setting up the port ...

apctest FATAL ERROR in linux-usb.c at line 609

Cannot find UPS device --

For a link to detailed USB trouble shooting information,

please see <http://www.apcupsd.com/support.html>.

apctest error termination completed

 

Synology's own ups setting is working and communicating with the ups, so i am messing something up with the apcupsd settings. Any ideas?

 

btw this is my .conf file

https://dl.dropboxusercontent.com/u/3260689/apcupsd.conf

Have a look om the encl conf. I am using this one for a Windows VM but settings should be similar.

apcupsd.conf

Link to comment

I may have misunderstood, so I would like to clarify things. Your unraid machine is running the apc daemon as configured by the "apc settings" on the unraid ui, correct?  The .conf file you sent me is from the one running on the "slave" machine, correct?

 

I am doing the modifications to your .conf file (change the ip of the unraid box), but apctest show "getlink not up".  Am I supposed to activate the master mode from the unraid menu somehow or am I still doing something wrong in the .conf file of the synology?

Link to comment

I may have misunderstood, so I would like to clarify things. Your unraid machine is running the apc daemon as configured by the "apc settings" on the unraid ui, correct?  The .conf file you sent me is from the one running on the "slave" machine, correct?

 

I am doing the modifications to your .conf file (change the ip of the unraid box), but apctest show "getlink not up".  Am I supposed to activate the master mode from the unraid menu somehow or am I still doing something wrong in the .conf file of the synology?

Correct, there is nothing more on unRaid the do the settings in the GUI, unRAID is master as default (no conf file or anything else to change).

 

There is something in the conf for Synology missing, take a clean conf file for Linux (mine is for Windows) and look for differences and change the Linux conf file. It can be the case that a Linux system needs something slightly different so google it as well.

UPS_settings.png.8e7248ec8f50093a013d36ccfbd788d1.png

Link to comment
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.