Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: ElFroggio on November 07, 2006, 05:01:13 PM
-
I am trying to configure nut, and it does not not work.
1. I have plugged in the USB port
db configuration setprop nut Device /dev/ttyUSB0
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/S15nut restart
and I get:
[root@coyote ~]# /etc/rc7.d/S15nut restart
Stopping UPS monitor: [ OK ]
Stopping upsd: [ OK ]
Shutting down newhidups: [FAILED]
Starting newhidups: Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3-pre2)
No matching USB/HID UPS found
[FAILED]
Starting upsd: [ OK ]
Starting UPS monitor (master): [ OK ]
[root@coyote ~]#
Broadcast message from nut (Tue Nov 7 07:57:27 2006):
Communications with UPS UPS@localhost lost
Broadcast message from nut (Tue Nov 7 07:57:32 2006):
UPS UPS@localhost is unavailable
Any suggestion?
Thanks
-
1. I have plugged in the USB port
db configuration setprop nut Device /dev/ttyUSB0
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/S15nut restart
You can remove this line as its USB...
db configuration setprop nut Device /dev/ttyUSB0
Try this...
[root@test]# config setprop nut Model newhidups
[root@test]# expand-template /etc/ups/*
[root@test]# expand-template /etc/sysconfig/ups
[root@test]# /etc/rc.d/rc7.d/S**nut restart
Where ** is a number,
-
Just did:
[root@coyote ~]# config setprop nut Model newhidups
[root@coyote ~]# expand-template /etc/ups/*
[root@coyote ~]#
Broadcast message from nut (Tue Nov 7 10:50:02 2006):
UPS UPS@localhost is unavailable
[root@coyote ~]# expand-template /etc/sysconfig/ups
[root@coyote ~]# /etc/rc7.d/S15nut restart
Stopping UPS monitor: [ OK ]
Stopping upsd: [ OK ]
Shutting down newhidups: [FAILED]
Starting newhidups: Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3-pre2)
No matching USB/HID UPS found
[FAILED]
Starting upsd: [ OK ]
Starting UPS monitor (master): [ OK ]
[root@coyote ~]#
Broadcast message from nut (Tue Nov 7 10:50:24 2006):
Communications with UPS UPS@localhost lost
Broadcast message from nut (Tue Nov 7 10:50:29 2006):
UPS UPS@localhost is unavailable
Still no joy. :(
-
Ok what does...
config show nut
Show? Did you remove the "Device" property?
If so then do...
config setprop nut Model newhidups
config setprop nut status enabled
Then...
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
Then restart...
/etc/rc7.d/S15nut restart
-
If "newhidups" model doesn't work try "hidups"
-
[root@coyote ~]# config show nut
nut=service
Device=/dev/ttyUSB0
Model=newhidups
status=enabled
How to I remove the device?
BTW, Thanks for the help
-
[root@coyote ~]# config show nut
nut=service
Device=/dev/ttyUSB0
Model=newhidups
status=enabled
How to I remove the device?
BTW, Thanks for the help
Do...
config delprop nut Device
Then don't forget to expand the templates,
-
Remove the device and tried both the newhidups and the hidups, still does not work. Is the APC Back-UPS ES725 supported by nuts?
[root@coyote ~]# config delprop nut Model
[root@coyote ~]# config setprop nut Model hidups
[root@coyote ~]# config setprop nut status enabled
[root@coyote ~]# expand-template /etc/sysconfig/ups
[root@coyote ~]# expand-template /etc/ups/ups.conf
[root@coyote ~]# expand-template /etc/ups/upssched.conf
[root@coyote ~]# expand-template /etc/ups/upsmon.conf
[root@coyote ~]# expand-template /etc/ups/upsd.users
[root@coyote ~]# expand-template /etc/ups/upsd.conf
[root@coyote ~]# /etc/rc7.d/S15nut restart
Stopping UPS monitor: [ OK ]
Stopping upsd: [ OK ]
Shutting down hidups: [FAILED]
Starting hidups: hiddev path open /var/lib/ups/hiddev0: No such device
Network UPS Tools: HID UPS driver 0.13 (2.0.3-pre2)
Warning: This is an experimental driver.
Some features may not function correctly.
[FAILED]
Starting upsd: [ OK ]
Starting UPS monitor (master): [ OK ]
[root@coyote ~]#
Broadcast message from nut (Tue Nov 7 16:56:53 2006):
Communications with UPS UPS@localhost lost
Broadcast message from nut (Tue Nov 7 16:56:58 2006):
UPS UPS@localhost is unavailable
[root@coyote ~]# config show nut
nut=service
Model=hidups
status=enabled
with newhidups if get:
[root@coyote ~]# config show nut
nut=service
Model=hidups
status=enabled
[root@coyote ~]# config delprop nut Model
[root@coyote ~]# config setprop nut Model newhidups
[root@coyote ~]# config setprop nut status enabled
[root@coyote ~]# expand-template /etc/sysconfig/ups
[root@coyote ~]# expand-template /etc/ups/ups.conf
[root@coyote ~]# expand-template /etc/ups/upssched.conf
[root@coyote ~]# expand-template /etc/ups/upsmon.conf
[root@coyote ~]# expand-template /etc/ups/upsmon.conf
Broadcast message from nut (Tue Nov 7 17:02:03 2006):
UPS UPS@localhost is unavailable
d.users
[root@coyote ~]# expand-template /etc/ups/upsd.conf
[root@coyote ~]# /etc/rc7.d/S15nut restart
Stopping UPS monitor: [ OK ]
Stopping upsd: [ OK ]
Shutting down newhidups: [FAILED]
Starting newhidups: Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.3-pre2)
No matching USB/HID UPS found
[FAILED]
Starting upsd: [ OK ]
Starting UPS monitor (master): [ OK ]
[root@coyote ~]#
Broadcast message from nut (Tue Nov 7 17:02:37 2006):
Communications with UPS UPS@localhost lost
Broadcast message from nut (Tue Nov 7 17:02:42 2006):
UPS UPS@localhost is unavailable
[root@coyote ~]# config show nut
nut=service
Model=newhidups
status=enabled
[root@coyote ~]#
-
Is the APC Back-UPS ES725 supported by nuts?
It would seem so...
http://www.networkupstools.org/compat/stable.html
I remember seeing on a few bug reports that USB UPS's are unreliable at this time, so what I'd suggest/do is take a look at the nut dev list and see what info they provide which may help you.