Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: 79schultz on June 28, 2010, 06:51:26 PM

Title: UPS UPS@localhost is unavailable
Post by: 79schultz on June 28, 2010, 06:51:26 PM
Hello to all. I am having trouble with a new server machine (Dell PowerEdge T110) losing communication with my APC BackUPS RS 1500 battery backup. We had a PowerEdge 840 on the same backup previously and did not have a problem. I have not been able to pinpoint the problem, but it appears to happen over the weekend (I'm wondering if it has something to do with the server not being accessed?) most of the time. I lose communication, but if I reboot the server, all is well for a while again. I looked at http://www.networkupstools.org/  (http://www.networkupstools.org/) but can't seem to find a forum there or where to pose my question. Can anybody help me? It is very frustrating to get back to work on Monday and have 800 or more emails (it sends a message to admin every 5 minutes) about no communication.
Title: Re: UPS UPS@localhost is unavailable
Post by: byte on June 29, 2010, 12:19:14 PM
Could be a couple of things....any power-saving features enabled in BIOS ? Also what does "config show nut" show (remember to remove your passwords before posting)
Title: Re: UPS UPS@localhost is unavailable
Post by: cactus on June 29, 2010, 12:43:33 PM
Also what does "config show nut" show (remember to remove your passwords before posting)
You could ask for this, next time:

Code: [Select]
config show nut | grep -vi pass
Title: Re: UPS UPS@localhost is unavailable
Post by: 79schultz on June 29, 2010, 08:19:08 PM
OK. Here are the BIOS 'Power Management' settings, and none of them have any settings to change.

Power Management: Active Power Controller
CPU Power and Performance Management: System DBPM
Fan Power and Performance: Minimum Power
Memory Power and Performance: Maximum Performance


And here's messages from 'config show nut' and 'service nut restart'.
[root@gt01 ~]# config show nut
nut=service
    Device=/dev/ttySO
    MasterPass=***********
    Model=usbhid-ups
    SlavePass=***********
    Type=7
    mdl=Back-UPSRS1500LCD
    mfr=APC
    status=enabled
[root@gt01 ~]#

[root@gt01 ~]# service nut restart
Stopping UPS monitor:                                      [  OK  ]
Stopping upsd:                                             [  OK  ]
Shutting down upsdrvctl: Network UPS Tools - UPS driver controller 2.2.0-
Can't open /var/run/nut/genericups-ttySO.pid: No such file or directory

Starting UPS driver controller: UPS type: CyberPower Power99

Fatal error: unusable configuration
Network UPS Tools - Generic UPS driver 1.33 (2.2.0-)

Unable to open /dev/ttySO: No such file or directory

Things to try:

 - Check 'port=' in ups.conf

 - Check owner/permissions of all parts of path

Network UPS Tools - UPS driver controller 2.2.0-
Driver failed to start (exit status=1)
                                                           [FAILED]
Starting upsd:                                             [  OK  ]
Starting UPS monitor (master):                             [  OK  ]

Broadcast message from nut (Tue Jun 29 12:56:37 2010):

Communications with UPS UPS@localhost lost
[root@gt01 ~]#
Broadcast message from nut (Tue Jun 29 12:56:42 2010):

UPS UPS@localhost is unavailable


Yesterday I tried doing what was suggested at this website http://www.sonoracomm.com/support/18-support/201-config-ups-sme?format=pdf (http://www.sonoracomm.com/support/18-support/201-config-ups-sme?format=pdf) and got the Device set to 'ttyS0'. Later I realized that probably was not the thing to do. It is using a USB cord. How can I set Device back to 'Auto'?

I am just learning to work with SME Server so don't know how to do some of the commands, for example, it says to check 'port' in in ups.conf. I must confess I can't figure out how to do that.

This thing is driving me 'nuts'!! (pun intended)
Title: Re: UPS UPS@localhost is unavailable
Post by: byte on June 29, 2010, 09:52:51 PM
Have a read of http://wiki.contribs.org/Uninterruptable_Power_Supply - you need to use the usbhid-ups device, all instructions are clear on that wiki page, if you're unsure of anything please ask again.


Hope this helps.
Title: Re: UPS UPS@localhost is unavailable
Post by: 79schultz on June 29, 2010, 11:24:55 PM
Thanks, byte. If I would have paid more attention, I would have seen the link in that website for APC UPS's. If you have an APC UPS, see also Uninterruptable_Power_Supply:APC  for an alternative to the standard SME Nut implementation  http://wiki.contribs.org/Uninterruptable_Power_Supply:APC (http://wiki.contribs.org/Uninterruptable_Power_Supply:APC)

I laboriously followed the instructions on there and it seems to be working now. Thanks a lot!