Koozali.org: home of the SME Server

Device setting in NUT

Offline bclayton

  • ****
  • 139
  • +0/-0
Device setting in NUT
« 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.

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Re: Device setting in NUT
« Reply #1 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

Offline bclayton

  • ****
  • 139
  • +0/-0
Re: Device setting in NUT
« Reply #2 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!

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Re: Device setting in NUT
« Reply #3 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 if you haven't already

Offline bclayton

  • ****
  • 139
  • +0/-0
Re: Device setting in NUT
« Reply #4 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.

Offline bclayton

  • ****
  • 139
  • +0/-0
Re: Device setting in NUT
« Reply #5 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.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Device setting in NUT
« Reply #6 on: June 02, 2010, 11:11:57 AM »
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline bclayton

  • ****
  • 139
  • +0/-0
Re: Device setting in NUT
« Reply #7 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.


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Device setting in NUT
« Reply #8 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
« Last Edit: June 04, 2010, 12:42:34 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline bclayton

  • ****
  • 139
  • +0/-0
Re: Device setting in NUT
« Reply #9 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.