Koozali.org: home of the SME Server

Replaced my APC UPS with a new USB version ...how to NUT?

icpix

Replaced my APC UPS with a new USB version ...how to NUT?
« on: February 08, 2005, 02:17:56 AM »
• Reading around I get the distinct impression this should be working on my SME Server 6.0.1-10 server gateway. However I've now been around the loops, using so many combinations, that I am really unsure what is what or even particularly why!

• Some bits seem good...

[DMESG] appears to find the kit (so BIOS is OK?)
hiddev0: USB HID v1.10 Joystick [American Power Conversion Smart-UPS 1500 FW:601.3.I USB FW:1.5] on usb1:2.0

[System Monitor] a new UPS graph shows 'some' data.

• Some bits don't seem OK at all...

Absolutely nothing in the SME Server control panel area.

[messages] this log is getting longer and longer:
Feb  8 00:59:00 systa upsd[17105]: Connection from 127.0.0.1
Feb  8 00:59:00 systa upsd[17105]: Client on 127.0.0.1 logged out
Feb  8 01:00:00 systa upsd[17105]: Connection from 127.0.0.1
Feb  8 01:00:00 systa upsd[17105]: Client on 127.0.0.1 logged out
Feb  8 01:01:00 systa upsd[17105]: Connection from 127.0.0.1
Feb  8 01:01:00 systa upsd[17105]: Client on 127.0.0.1 logged out

• I've worked out that I can arrest that part of the burgeoning log with judicious use of:

[root@systa etc]# service nut stop
Stopping UPS monitor:                                      [   OK   ]
Stopping upsd:                                             [   OK   ]
Stopping upsdrvctl: Network UPS Tools - UPS driver controller 1.2.0
Stopping UPS: UPS

[root@systa etc]# service nut start
Starting upsdrvctl:                                        [   OK   ]
Starting upsd:                                             [   OK   ]
Starting UPS monitor (master):                             [   OK   ]
[root@systa etc]#

• the first line of this last part of the boot log is a fail for the old APCUPSD stuff (I think) but the rest 'looks' reasonable:

Feb  7 17:22:41 systa apcupsd: /etc/rc7.d/S99apcupsd: Couldn't find/execute init script /etc/rc.d/init.d/apcupsd
Feb  7 17:22:41 systa rc: Starting apcupsd:  failed
Feb  7 17:22:45 systa mysql.init: Loading 20horde.mysql_update_privs.sql into mysql succeeded
Feb  7 17:22:45 systa mysql.init: Loading 20mysql_migrate_horde.sql into mysql succeeded
Feb  7 17:22:45 systa mysql.init: Loading 21horde.mysql_set_password.sql into mysql succeeded
Feb  7 17:22:45 systa mysql.init: Loading 30mysql_create_tables.sql into mysql succeeded
Feb  7 17:22:46 systa mysql.init: Loading 50turba_upgrade_1.1_to_1.2 into mysql succeeded
Feb  7 17:22:46 systa mysql.init: Loading 60migrate-imp-to-turba into mysql succeeded
Feb  7 17:23:08 systa atalk: atalkd startup succeeded
Feb  7 17:23:21 systa atalk: papd startup succeeded
Feb  7 17:23:21 systa atalk: afpd startup succeeded
Feb  7 22:49:06 systa upsdrvctl: Network UPS Tools - UPS driver controller 1.2.0
Feb  7 22:49:06 systa nut: upsdrvctl startup succeeded
Feb  7 22:49:06 systa upsd: Network UPS Tools upsd 1.2.0
Feb  7 22:49:06 systa upsd: Can't bind to socket: Address already in use
Feb  7 22:49:06 systa nut: upsd startup failed
Feb  7 22:49:22 systa nut: upsmon shutdown succeeded
Feb  7 22:49:22 systa nut: upsd shutdown succeeded
Feb  8 00:17:21 systa upsdrvctl: Network UPS Tools - UPS driver controller 1.2.0
Feb  8 00:17:21 systa nut: upsdrvctl startup succeeded
Feb  8 00:17:21 systa upsd: Read data for UPS [UPS] successfully
Feb  8 00:17:21 systa upsd: Data source for UPS [UPS]: hidups-hiddev0
Feb  8 00:17:21 systa nut: upsd startup succeeded
Feb  8 00:17:22 systa upsmon: UPS: localhost (slave) (power value 1)
Feb  8 00:17:22 systa upsmon: Using power down flag file /etc/killpower
Feb  8 00:17:22 systa upsmon:
Feb  8 00:17:22 systa nut: upsmon startup succeeded
Feb  8 01:03:54 systa nut: upsmon shutdown succeeded
Feb  8 01:03:54 systa nut: upsd shutdown succeeded
Feb  8 01:04:43 systa upsdrvctl: Network UPS Tools - UPS driver controller 1.2.0
Feb  8 01:04:43 systa nut: upsdrvctl startup succeeded
Feb  8 01:04:43 systa upsd: Read data for UPS [UPS] successfully
Feb  8 01:04:43 systa upsd: Data source for UPS [UPS]: hidups-hiddev0
Feb  8 01:04:43 systa nut: upsd startup succeeded
Feb  8 01:04:43 systa upsmon: UPS: localhost (slave) (power value 1)
Feb  8 01:04:43 systa upsmon: Using power down flag file /etc/killpower
Feb  8 01:04:43 systa upsmon:
Feb  8 01:04:43 systa nut: upsmon startup succeeded

• there doesn't seem to be any /etc/nut/ stuff (appropos reading a French language reference).

• things are sort of present but the overall flavour is not brilliant at the moment.

Would welcome some thoughts, hints, ideas and any other assistance;~))

best wishes, Robert