Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: gbentley on March 13, 2012, 11:16:53 AM

Title: Short UPS Question [SOLVED]
Post by: gbentley on March 13, 2012, 11:16:53 AM
Hi All,

I have come to add another SME to the mix and plugged mains into our UPS, an APC SmartUPS 700 - this is already setup and working. From the UPS howto, on the additional SME I have ;

config setprop nut SlaveUPS UPS@192.168.1.1  (IP of Master)
config setprop nut Master no
signal-event post-upgrade
signal-event reboot

Now, when I ask for info by doing ;

upsc UPS@192.168.1.1

I get a screen full of info including battery charge states etc

Is that it? Nothing more to do? Im only asking because a

# config show nut

nut=service
    Master=no
    MasterPass=380717439666973
    Model=usbhid-ups
    SlavePass=728986054554372
    SlaveUPS=UPS@192.168.1.1
    status=disabled

That last status line bothered me??

Any comments / feedback / words of wisdom apprecaited :)



Title: Re: Short UPS Question
Post by: TerryF on March 13, 2012, 12:18:27 PM
You need to enable nut..

config setprop nut status enabled
signal-event post-upgrade signal-event reboot

See here (http://wiki.contribs.org/Uninterruptable_Power_Supply)
Title: Re: Short UPS Question
Post by: elmarconi on March 13, 2012, 12:55:15 PM
You need to enable nut..

Code: [Select]
config setprop nut status enabled
signal-event post-upgrade; signal-event reboot

See here (http://wiki.contribs.org/Uninterruptable_Power_Supply)

I wouldn't reboot.

Code: [Select]
config setprop nut status enabled
service nut start

That should do the job.


Title: Re: Short UPS Question
Post by: gbentley on March 13, 2012, 01:05:18 PM
Edit: sorry, my fault - missed post-upgrade step - duh!

I know you can expand the templates by hand but anyways all sorted ... for future ref of setting up a slave to another sme with an APC on ttyS0 ;


config setprop nut Device /dev/ttyS0
config setprop nut Model apcsmart
config setprop nut status enabled
config setprop nut SlaveUPS UPS@192.168.1.1
config setprop nut Master no
expand-template /etc/sysconfig/ups
expand-template /etc/ups/ups.conf
expand-template /etc/ups/upssched.conf
expand-template /etc/ups/upsmon.conf
expand-template /etc/ups/upsd.users
expand-template /etc/ups/upsd.conf
service nut start
config show nut
upsc UPS@192.168.1.1