Koozali.org: home of the SME Server

how to update NUT to latest version

Offline ber

  • *****
  • 239
  • +0/-0
how to update NUT to latest version
« on: August 29, 2009, 02:25:59 AM »
Hi Have had a ongoing problem that I havent been able to resolve mainly due to lack on command line experience and interpretation.

Hav a 650VA ups connected via USB that is regularly loosing and reconnecting to the server. Get warning from the server with the following info every 20 minutes. Ive installed NUT version 2.2. I am able to get detailed info from the UPS using the nut command.

Broadcast message from nut (Sat Aug 29 11:48:21 2009):

Communications with UPS UPS@localhost lost

Broadcast message from nut (Sat Aug 29 11:48:26 2009):

Communications with UPS UPS@localhost established

Broadcast message from nut (Sat Aug 29 12:04:42 2009):

Communications with UPS UPS@localhost lost

Broadcast message from nut (Sat Aug 29 12:04:47 2009):

Communications with UPS UPS@localhost established

Ive been advised to upgrade to the latest NUT version 2.4 as this may resolve the connection issues with the UPS - I just dont know how to do this in command line- can anyone help.

Heres some relevant info that
login as: root
root@192.168.0.254's password:
Last login: Sat Aug 29 11:44:50 2009 from 192.168.0.230
[root@server ~]# config show nut
nut=service
    Device=/dev/ttyS0
    MasterPass=253855868565501
    Model=megatec_usb
    SlavePass=645711220929190
    Type=megatec_usb
    status=enabled
[root@server ~]# upsc -l
UPS
[root@server ~]# nano /etc/ups/upsd.users
  GNU nano 1.2.4              File: /etc/ups/upsd.users

#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
       [upsmaster]
               password  = 1cheon
               allowfrom = localhost
               upsmon master

       [upsslave]
               password  = 1cheon
               allowfrom = localhost localnet
               upsmon slave
       
I Had tried to load the drivers that came with the ups- BUT JUST GOT LOST.

Can anyone help.

Regards John



Offline janet

  • *****
  • 4,812
  • +0/-0
Re: how to update NUT to latest version
« Reply #1 on: August 29, 2009, 05:11:58 AM »
ber

Please provide your UPS brand and full model number/details.
We need to initially check your setup is correct.
Have you tried changing the USB cable and port it is plugged into ?

Quote
Ive installed NUT version 2.2.

On a standard 7.4 I get
rpm -q nut
nut-2.2.0-4.el4
Please check your version as above & advise us.


Quote
Ive been advised to upgrade to the latest NUT version 2.4 as this may resolve the connection issues with the UPS

Not initially advisable as you will have a non standard system. If a problem is identified it should be reported to bugzilla.

To instruct the system to update nut only (using default repos) do
yum update nut
although this may update nothing. Advise us the outcome.
I get no newer version available when I do this.

If you do need a newer version, then that is something everyone will probably need, so it should be reported to bugzilla.

To update to an newer upstream version (if there is one) you would do something like

yum update nut --enablerepo=xxxxx
signal-event post-upgrade; signal-event reboot
where xxxxx is the repo name that has the updated package, and that repo is configured (but disabled) in sme server. See the FAQ on repositories.
I'd guess you would be looking at a CentOS repo, so search appropriately.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline ber

  • *****
  • 239
  • +0/-0
Re: how to update NUT to latest version
« Reply #2 on: August 29, 2009, 08:18:48 AM »
hi Mary, i ran the update- nothing available,

heres an inquiry feedback of the UPS.
login as: root
root@192.168.0.254's password:
Last login: Sat Aug 29 18:02:18 2009 from 192.168.0.230
[root@server ~]# upsc UPS@localhost
battery.charge: 95.0
battery.voltage: 13.50
battery.voltage.nominal: 12.0
driver.name: megatec_usb
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ttyS0
driver.version: 2.2.0-
driver.version.internal: 1.5.4
input.frequency: 50.0
input.voltage: 230.0
input.voltage.fault: 165.0
input.voltage.maximum: 241.0
input.voltage.minimum: 220.0
output.voltage: 230.0
output.voltage.nominal: 225.0
ups.beeper.status: enabled
ups.delay.shutdown: 0
ups.delay.start: 2
ups.load: 20.0
ups.mfr: KEBO
ups.model: UPS-650VA VER7.03
ups.serial: unknown
ups.status: OL
ups.temperature: 0.0
[root@server ~]#


Ill see if i can list this problem on the bugzilla.

Regards John

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: how to update NUT to latest version
« Reply #3 on: August 29, 2009, 09:47:31 AM »
Quote
driver.name: megatec_usb

driver.parameter.port: /dev/ttyS0

mmmhhh... usb and ttyS0.. something is wrong here.. isn't it?

Ciao
Stefano

Offline ber

  • *****
  • 239
  • +0/-0
Re: how to update NUT to latest version
« Reply #4 on: August 29, 2009, 11:57:32 AM »
stefano again another sarcastic remark, forgive me for not being as knowledgeable as you, I'm not aware of Linux ports and how to configure it.
I will do some research on it.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: how to update NUT to latest version
« Reply #5 on: August 29, 2009, 12:27:01 PM »
Quote
stefano again another sarcastic remark, forgive me for not being as knowledgeable as you, I'm not aware of Linux ports and how to configure it.
I will do some research on it.

ber, no sarcasm in my answer.. I'm just saying that IMHO there's something wrong as I see 'usb' in the name of the driver but there's a serial port, not a usb one.

that said, I will stop answering/helping you as it seems that you can't understand me.

good luck

Stefano and " dare perle ai porci..."

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: how to update NUT to latest version
« Reply #6 on: August 29, 2009, 02:16:50 PM »
ber

Is this your UPS brand and model ?
KEBO UPS-650VA
Please provide the specific answers rather than making us work it out from various outputs you provide.

It is not listed here (which is a list for v2.4.1)
http://www.networkupstools.org/compat/stable.html
Have you checked it is fully compatible with nut ?

Is it a serial port device or a USB connection ?
Did you try swapping the cable and port it is connected to.
Have you tried a different driver ie megatec

Who suggested using v2.4 of nut, and why ?

A quick google search found this (amongst others)
http://lists.alioth.debian.org/pipermail/nut-upsuser/2008-May/004063.html
which suggests using the megatec driver and adding add ignoreoff to ups.conf.

PS Please do not read/imply emotion in peoples answers/questions/statements, as you can easily misinterpret them. It's dangerous to be that way in anonymous forums. Just because you don't like or understand someones answer, does not entitle you to criticise them (or read criticism into their answer).
« Last Edit: August 29, 2009, 02:22:38 PM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: how to update NUT to latest version
« Reply #7 on: August 29, 2009, 02:44:43 PM »
ber

Specs for that UPS suggest it's a serial RS232 port device, so your db settings should be as follows (assuming you are connected to COM1). No Type is listed so delete that.

config setprop nut Model megatec
config setprop nut Device /dev/ttyS0
config delprop nut Type
config setprop nut status enabled
expand-template /etc/sysconfig/ups
expand-template /etc/ups/*
/etc/rc7.d/S38nut start

You may also need to add the ignoreoff setting to ups.conf as mentioned previously, if that is an issue to you.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.