Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: bclayton on June 01, 2010, 05:25:58 PM

Title: Device setting in NUT
Post by: bclayton on June 01, 2010, 05:25:58 PM
I searched but did not find an answer to this one.  I have changed my UPS from serial to USB APC unit. 
My current nut settings:
Device=/dev/ttyS0
Model=apcsmart
status=enabled

I know that I must change the Model to usbhid-ups, but how do I change my Device setting to recognize the USB connection?
--Thanks.
Title: Re: Device setting in NUT
Post by: timn on June 01, 2010, 05:59:16 PM
You don't need to set a Device for a USB connection
 
Code: [Select]
config delprop nut Device
Title: Re: Device setting in NUT
Post by: bclayton on June 01, 2010, 06:35:27 PM
Thanks for your help.  That took care of the Device issue.  However, I am still not able to connect to the UPS.  Here is the message and my nut settings:

Jun  1 11:18:45 mailserver upsmon[5125]: Poll UPS [UPS@localhost] failed - Driver not connected

[root@mailserver ~]# config show nut
nut=service
    MasterPass=152689558078186
    Model=usbhid-ups
    SlavePass= 70672568294941
    status=enabled

I am running 7.5 and my APC is Back-UPS ES 550
Does everything look right?
Thanks!
Title: Re: Device setting in NUT
Post by: timn on June 01, 2010, 07:24:32 PM
Have you done a
Code: [Select]
signal-event post-upgrade; signal-event rebootor alternatively
Code: [Select]
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
/etc/rc7.d/S38nut start
Then try
Code: [Select]
upsc UPS@localhostto see if the UPS is communicating.

Please also read the wiki http://wiki.contribs.org/Uninterruptable_Power_Supply (http://wiki.contribs.org/Uninterruptable_Power_Supply) if you haven't already
Title: Re: Device setting in NUT
Post by: bclayton on June 01, 2010, 07:32:49 PM
Thanks again.  I did execute the post-upgrade and reboot.

Here is the result of the upsc command:

[root@mailserver ~]# upsc USP@localhost
Error: Unknown UPS

Thanks also for the reference.  I have read that a few times but perhaps I have overlooked something.  Any help appreciated.
Title: Re: Device setting in NUT
Post by: bclayton on June 01, 2010, 07:48:09 PM
Just realized that I had a typo in last command.  Here are corrected results:

[root@mailserver ~]# upsc UPS@localhost
Error: Driver not connected

Same error that I get in my log files via server-manager.
Thanks.
Title: Re: Device setting in NUT
Post by: byte on June 02, 2010, 11:11:57 AM
Have you had a look/read at:

http://wiki.contribs.org/Uninterruptable_Power_Supply

?
Title: Re: Device setting in NUT
Post by: bclayton on June 03, 2010, 03:52:15 AM
Actually, I read that document before my first post but didn't see a solution there.  I now suspect that something has changed in a file or template.  The nut status is now disabled and the Device prop deleted, but the messages log file shows references to the serial device upon reboot and the system is still polling the ups even though the status is disabled.

Title: Re: Device setting in NUT
Post by: janet on June 04, 2010, 12:34:46 AM
bclayton

As well as reading the article you need to do what it says.

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

After doing the above commands, please show us the output of
config show nut

Also have you checked that your UPS is supported,
as it says in the article
"Find the configuration details for your model of UPS.
Refer to:
http://www.networkupstools.org/compat/stable.html
and make note of the driver name and upstype number (if any) in the third column."

I looked and your model does not appear to be listed (APC Back-UPS ES 550)

Did an advanced search on the forums and found this post which seems to imply that UPS will work OK.
http://forums.contribs.org/index.php/topic,43343.msg206506.html#msg206506
Title: Re: Device setting in NUT
Post by: bclayton on June 04, 2010, 12:50:16 AM
Mary,

Thanks so much for your help.  I did check the compatibility chart and thought I found my unit listed:

APC Back-UPS ES/CyberFort 350 USB

and am grateful for your advance search and confirmation.  I will try again and post my results.