Koozali.org: home of the SME Server

Some Help with my NUT (Solved)

Offline imcintyre

  • *
  • 609
  • +0/-0
Some Help with my NUT (Solved)
« on: March 22, 2007, 06:22:05 PM »
Some time ago I acquired an APC "Back-UPS XS 1000" uninterruptible power supply. I am trying to make it work with SME v7.1.2 and not sure that I have it right. I followed the basic idea of:
Quote
http://forums.contribs.org/index.php?topic=33852.0
omitting
Quote
config setprop nut Device /dev/ttyS1
as this device is usb.

From this site,
Quote
http://www.networkupstools.org/compat/stable.html
, I tried apcsmart, which did not work and then tried newhidups and hidups with results similar to below:
Quote
[root@myserver /]# config setprop nut status enabled
[root@myserver /]# config setprop nut Model newhidups
[root@myserver /]# config show nut
nut=service
    MasterPass=iGBD1WcOPITLh4B+DYFraCb246ZTT8qDlxDpfITLJDCgOwbRb/R4rNfKJEuhm0OuqJdSh9fuYLSS
    Model=newhidups
    SlavePass=eucEZsOc13zvFdDXC59GS2GAdzYVZrx+XA6AaDH+PRahRw7Rac2hAhJBkh0cd1xZIVoWuBVFdrOq
    status=enabled
[root@myserver /]# expand-template /etc/sysconfig/ups
[root@myserver /]# expand-template /etc/ups/ups.conf
[root@myserver /]# expand-template /etc/ups/upssched.conf
[root@myserver /]# expand-template /etc/ups/upsmon.conf
[root@myserver /]# expand-template /etc/ups/upsd.users
[root@myserver /]# expand-template /etc/ups/upsd.conf
[root@myserver /]# upsc UPS@myserver
Error: Connection failure: Connection refused


So it looks like it is working but I'm out of my depth (which is actually kind of shallow).
Any comments on the lines with MasterPass=* and SlavePass=*??
Thx in advance for your help.

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Some Help with my NUT
« Reply #1 on: March 22, 2007, 07:09:05 PM »
Quote from: "imcintyre"

So it looks like it is working but I'm out of my depth (which is actually kind of shallow).


After you made your config and expand changes it looks like you forgot to restart the service for example "/etc/rc7.d/S**nut restart" where ** is a number(s)

If that don't work report to the bug tracker as the motto is "It should just work" if it doesn't report it. Thanks!

Quote

Any comments on the lines with MasterPass=* and SlavePass=*??
Thx in advance for your help.


Search the bug tracker for hints on that!
--[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 imcintyre

  • *
  • 609
  • +0/-0
Some Help with my NUT (Solved)
« Reply #2 on: March 22, 2007, 09:17:41 PM »
Thx for quick reply.

I will look in the bugtracker. EDIT "Zarro Boogs found. "

Regarding
Quote
After you made your config and expand changes it looks like you forgot to restart the service for example "/etc/rc7.d/S**nut restart" where ** is a number(s)


I'm not familiar with linux so I'm a bit "dull" on these things. I looked in my rc7.d folder and found a file "S15nut" so that would make ** = 15.

So then the command to restart would be simply
Code: [Select]
/etc/rc7.d/S15nut?

Thx in advance for your confirmation.

Offline imcintyre

  • *
  • 609
  • +0/-0
Some Help with my NUT (Solved)
« Reply #3 on: March 22, 2007, 09:31:51 PM »
Hey thanks, got it. Here are my results. Not sure about the ups.delay.shutdown = -1, sounds kind of like a wrong number, any comments.

Quote
[root@myserver /]# /etc/rc7.d/S15nut
Usage: /etc/rc.d/init.d/nut {start|stop|restart|condrestart|status}
[root@myserver /]# /etc/rc7.d/S15nut restart
Stopping UPS monitor:                                      [FAILED]
Stopping upsd:                                             [FAILED]
Shutting down upsdrvctl: Network UPS Tools - UPS driver controller 2.0.5
Can't open /var/run/nut/hidups-UPS.pid: No such file or directory

Starting upsdrvctl:                                        [  OK  ]
Starting upsd:                                             [  OK  ]
Starting UPS monitor (master):                             [  OK  ]

[root@myserver rc7.d]# upsc UPS@localhost
battery.charge: 100
battery.chemistry: PbAc
battery.runtime: 2670
battery.voltage: 1.2
driver.name: hidups
driver.parameter.port: /var/lib/ups/hiddev0
driver.version: 2.0.5
ups.delay.shutdown: -1
ups.load: 20
ups.mfr: American Power Conversion
ups.model: Back-UPS RS 1000 FW:7.g8 .D USB FW:g8
ups.serial: JB0406007106
ups.status: OL
[root@myserver rc7.d]#