Re: [Nut-upsuser] Apple Mac slave

2017-06-15 Thread Robbie van der Walle
conf. # # RUN_AS_USER nutmon RUN_AS_USER root For security reasons you should change root to another user? which other rights are needed for this user to make it work? Kind Regards, Rob > On 15 Jun 2017, at 21:48, Robbie van der Walle <rvanderwa...@gmail.com> wrote: >

Re: [Nut-upsuser] Apple Mac slave

2017-06-15 Thread Robbie van der Walle
0 9:38PM ?? 0:00.01 /sw/sbin/upsmon -D 0 1267 1266 0 9:38PM ?? 0:00.02 /sw/sbin/upsmon -D Let try to reboot my Mac and check. Kind Regards, Rob > On 15 Jun 2017, at 16:51, Robbie van der Walle <rvanderwa...@gmail.com> wrote: > > I deleted

Re: [Nut-upsuser] Apple Mac slave

2017-06-15 Thread Robbie van der Walle
is not running. Kind Regards, Rob > On 15 Jun 2017, at 16:38, Charles Lepple <clep...@gmail.com> wrote: > > On Jun 15, 2017, at 10:31 AM, Robbie van der Walle <rvanderwa...@gmail.com > <mailto:rvanderwa...@gmail.com>> wrote: >> >> Did you change anything i

Re: [Nut-upsuser] Apple Mac slave

2017-06-14 Thread Robbie van der Walle
ProgramArguments /sw/sbin/upsmon -D RunAtLoad KeepAlive SuccessfulExit Kind Regards, Rob > On 12 Jun 2017, at 14:42, Charles Lepple <clep...@gmail.co

Re: [Nut-upsuser] Apple Mac slave

2017-06-11 Thread Robbie van der Walle
appears after a while. With the same command osascript it should be possible to send an message to a mobile phone. Thanks ! Kind Regards, Rob > On 10 Jun 2017, at 10:02, Roger Price <ro...@rogerprice.org> wrote: > > On Fri, 9 Jun 2017, Robbie van der Walle wrote: &

Re: [Nut-upsuser] Apple Mac slave

2017-06-11 Thread Robbie van der Walle
>> What I wonder if the shutdown is done proper. Does the shutdown command use >> umount to prevent disk corruption? > > Yes, it prevents filesystem corruption, but I am not sure if it bothers to > save the desktop state. > > You can check the "last" logs to see if it was cleanly shut down: >

Re: [Nut-upsuser] Apple Mac slave

2017-06-09 Thread Robbie van der Walle
disk corruption? I also have to find a solution for starting up upsmon when the Mac starts and also still open is the notification on the Mac. But thanks so much all for the steps so far. Kind Regards, Rob > On 9 Jun 2017, at 14:42, Charles Lepple <clep...@gmail.com> wrote: > &

Re: [Nut-upsuser] Apple Mac slave

2017-06-09 Thread Robbie van der Walle
>> After the first test and the NAS is restarted I had to change the setting >> battery.charge.low again to 80 > > Does the NAS DSM reset battery.charge.low to 10 or is it internal to the UPS? > You will have to experiment by disconnecting the UPS control lead from the > NAS and connecting

Re: [Nut-upsuser] Apple Mac slave

2017-06-09 Thread Robbie van der Walle
>> After the first test and the NAS is restarted I had to change the setting >> battery.charge.low again to 80 > > Does the NAS DSM reset battery.charge.low to 10 or is it internal to the UPS? > You will have to experiment by disconnecting the UPS control lead from the > NAS and connecting

Re: [Nut-upsuser] Apple Mac slave

2017-06-09 Thread Robbie van der Walle
>> After the first test and the NAS is restarted I had to change the setting >> battery.charge.low again to 80 > > Does the NAS DSM reset battery.charge.low to 10 or is it internal to the UPS? > You will have to experiment by disconnecting the UPS control lead from the > NAS and connecting

Re: [Nut-upsuser] Apple Mac slave

2017-06-09 Thread Robbie van der Walle
>> 7. No they didn’t restart. I know there is a setting on the NAS to activate >> this. I will check and try again. > > Not sure for the NAS, but for the Mac, it is probably something like this: > > sudo pmset -a autorestart 1 > > There is also usually a checkbox in the Energy Saver panel

Re: [Nut-upsuser] Apple Mac slave

2017-06-08 Thread Robbie van der Walle
> When you carry out tests to ensure that the setup is working well, you will > pull the power cord from the wall and wait until the UPS reaches LB. This > means waiting and wasting time. You can speed up the testing by setting LB > very high so that the UPS reaches it quickly. Later you can

Re: [Nut-upsuser] Apple Mac slave

2017-06-08 Thread Robbie van der Walle
> The "upsrw" command contacts upsd, so it sounds like you should be able to > add a user to upsd.users on the NAS, and then run something like this on the > Mac: > > upsrw -s battery.charge.low=80 -u upsmaster -s sekret UPS@synology > > Per

Re: [Nut-upsuser] Apple Mac slave

2017-06-08 Thread Robbie van der Walle
ut I don’t know which variable this is, sekret. Kind regards, Rob > On 8 Jun 2017, at 11:30, Roger Price <ro...@rogerprice.org> wrote: > > On Wed, 7 Jun 2017, Robbie van der Walle wrote: > >> Out of curiosity, when you shut down the NAS, do you run the >>

Re: [Nut-upsuser] Apple Mac slave

2017-06-07 Thread Robbie van der Walle
> I see upsd and the first upsmon are running as "root". They are often run as > user "nut" or "upsd”. Apparently Synology has implemented it standard like this. Upsmon.conf on the Synology NAS: RUN_AS_USER root I suppose this needs to be changed from a security point of view. > I don't

Re: [Nut-upsuser] Apple Mac slave

2017-06-07 Thread Robbie van der Walle
>> I am running NUT on a Synology NAS with attached a USB APC UPS. > > Do you have upsd and upsmon running as daemons on the Synology DSM? > Yes I have them both running on the Synology DSM: root 7236 1 0 Jun01 ?00:00:16 /usr/sbin/upsd root 7741 1 0 Jun01 ?

[Nut-upsuser] Apple Mac slave

2017-06-06 Thread Robbie van der Walle
Hello, I am running NUT on a Synology NAS with attached a USB APC UPS. I am trying to connect and shutdown a Mac OS X system. I have installed the NUT software and it looks like there is connection with the master but when battery gets low the Mac is not shutdown. I don't know if I have to