Hi all,
I know that this has been posted before in various formats, but I have symptoms and a fix, so hence the new thread...
The Dell Poweredge server is connected using an APC serial cable and has been running flawlessly for about 9 months now.
SYMPTOM:
Shortly after a YUM update (Dec 02 11:45:58 Updated: e-smith-nutUPS.noarch 2.0.0-1.el4.sme) my APC SmartUPS decided to give problems, popping on and off line until it exhausted it's battery.
The messages log gives no indications of anything untoward pre and post reboot.
Original config:
config show nut
nut=service
Device=/dev/ttyS0
MasterPass=<snip>
Model=apcsmart
SlavePass=<snip>
Type=7
status=enabled
Odd things is that there is nothing untoward in the log files until:
Dec 8 01:43:01 sylvie upsmon[3959]: UPS UPS@localhost on battery
Dec 8 01:43:01 sylvie wall[10673]: wall: user nut broadcasted 1 lines (30 chars)
Dec 8 01:43:36 sylvie upsmon[3959]: UPS UPS@localhost on line power
Dec 8 01:43:36 sylvie wall[10681]: wall: user nut broadcasted 1 lines (33 chars)
Dec 8 03:49:10 sylvie upsmon[3959]: UPS UPS@localhost on battery
Dec 8 03:49:10 sylvie wall[11802]: wall: user nut broadcasted 1 lines (30 chars)
Dec 8 04:31:56 sylvie upsmon[3959]: UPS UPS@localhost on line power
Dec 8 04:31:56 sylvie wall[7905]: wall: user nut broadcasted 1 lines (33 chars)
Dec 8 04:34:36 sylvie upsmon[3959]: UPS UPS@localhost on battery
Dec 8 04:34:36 sylvie wall[7922]: wall: user nut broadcasted 1 lines (30 chars)
Dec 8 04:34:46 sylvie upsmon[3959]: UPS UPS@localhost on line power
Dec 8 04:34:46 sylvie wall[7930]: wall: user nut broadcasted 1 lines (33 chars)
Dec 8 04:35:21 sylvie upsmon[3959]: UPS UPS@localhost on battery
Dec 8 04:35:21 sylvie wall[7949]: wall: user nut broadcasted 1 lines (30 chars)
Dec 8 04:35:31 sylvie upsmon[3959]: UPS UPS@localhost on line power
Dec 8 04:35:31 sylvie wall[7957]: wall: user nut broadcasted 1 lines (33 chars)
Dec 8 04:36:06 sylvie upsmon[3959]: UPS UPS@localhost on battery
Dec 8 04:36:06 sylvie wall[7965]: wall: user nut broadcasted 1 lines (30 chars)
Dec 8 04:39:41 sylvie upsmon[3959]: UPS UPS@localhost on line power
Dec 8 04:39:41 sylvie wall[7973]: wall: user nut broadcasted 1 lines (33 chars)
Dec 8 04:39:51 sylvie upsmon[3959]: UPS UPS@localhost on battery
Dec 8 04:39:51 sylvie wall[7981]: wall: user nut broadcasted 1 lines (30 chars)
Dec 8 04:40:21 sylvie upsmon[3959]: UPS UPS@localhost on line power
Dec 8 04:40:21 sylvie wall[7992]: wall: user nut broadcasted 1 lines (33 chars)
Dec 8 04:40:26 sylvie upsmon[3959]: UPS UPS@localhost on battery
Dec 8 04:40:26 sylvie wall[8000]: wall: user nut broadcasted 1 lines (30 chars)
Dec 8 04:40:56 sylvie upsmon[3959]: UPS UPS@localhost on line power
Dec 8 04:40:56 sylvie wall[8008]: wall: user nut broadcasted 1 lines (33 chars)
<snip>
This goes on until the UPS is exhausted.
Dec 8 08:25:27 sylvie upsmon[3959]: UPS UPS@localhost battery is low
Dec 8 08:25:27 sylvie upsd[3954]: Client upsmaster@127.0.0.1 set FSD on UPS [UPS]
Dec 8 08:25:27 sylvie wall[13403]: wall: user nut broadcasted 1 lines (34 chars)
Dec 8 08:25:27 sylvie upsmon[3959]: Executing automatic power-fail shutdown
Dec 8 08:25:27 sylvie wall[13409]: wall: user nut broadcasted 2 lines (43 chars)
Dec 8 08:25:27 sylvie upsmon[3959]: Auto logout and shutdown proceeding
Dec 8 08:25:27 sylvie wall[13412]: wall: user nut broadcasted 1 lines (37 chars)
I checked the hardware by plugging several desktops into the UPS and all went well. However each time I plugged in the server AND attached the serial cable, the UPS would click on and off line as shown above.
After restart:
Dec 8 10:32:08 sylvie apcsmart[3765]: Startup successful
Dec 8 10:32:08 sylvie upsdrvctl: Network UPS Tools - UPS driver controller 2.2.0-
Dec 8 10:32:08 sylvie nut: upsdrvctl startup succeeded
Dec 8 10:32:08 sylvie upsd[3768]: listening on 0.0.0.0 port 3493
Dec 8 10:32:08 sylvie upsd: listening on 0.0.0.0 port 3493
Dec 8 10:32:08 sylvie upsd[3768]: Connected to UPS [UPS]: apcsmart-UPS
Dec 8 10:32:08 sylvie upsd: Connected to UPS [UPS]: apcsmart-UPS
Dec 8 10:32:08 sylvie upsd[3769]: Startup successful
Dec 8 10:32:08 sylvie nut: upsd startup succeeded
Dec 8 10:32:08 sylvie upsmon: UPS: UPS@localhost (master) (power value 1)
Dec 8 10:32:08 sylvie upsmon: Using power down flag file /etc/killpower
Dec 8 10:32:08 sylvie upsmon:
Dec 8 10:32:08 sylvie upsmon[3773]: Startup successful
Dec 8 10:32:08 sylvie upsd[3769]: Connection from 127.0.0.1
Dec 8 10:32:08 sylvie upsd[3769]: Client upsmaster@127.0.0.1 logged into UPS [UPS]
Dec 8 10:32:08 sylvie nut: upsmon startup succeeded
<snip>
Dec 8 10:32:13 sylvie upsmon[3774]: UPS UPS@localhost battery is low
Dec 8 10:32:14 sylvie wall[4370]: wall: user nut broadcasted 1 lines (34 chars)
<snip>
Dec 8 10:43:44 sylvie upsmon[3774]: UPS UPS@localhost on battery
Dec 8 10:43:44 sylvie wall[5077]: wall: user nut broadcasted 1 lines (30 chars)
Dec 8 10:48:14 sylvie upsmon[3774]: UPS UPS@localhost battery is low
Dec 8 10:48:14 sylvie upsd[3769]: Client upsmaster@127.0.0.1 set FSD on UPS [UPS]
Dec 8 10:48:14 sylvie upsmon[3774]: Executing automatic power-fail shutdown
Dec 8 10:48:14 sylvie wall[5232]: wall: user nut broadcasted 1 lines (34 chars)
Dec 8 10:48:14 sylvie wall[5233]: wall: user nut broadcasted 2 lines (43 chars)
Dec 8 10:48:14 sylvie upsmon[3774]: Auto logout and shutdown proceeding
Dec 8 10:48:14 sylvie wall[5238]: wall: user nut broadcasted 1 lines (37 chars)
Dec 8 10:48:19 sylvie upsd[3769]: Host 127.0.0.1 disconnected (read failure)
<snip>
After this I started manually starting and stopping nut to see what the story was. However at that stage I was getting:
3083:Dec 8 10:50:51 sylvie upsdrvctl: Network UPS Tools - UPS driver controller 2.2.0-
3084:Dec 8 10:50:51 sylvie nut: upsdrvctl startup succeeded
3085:Dec 8 10:50:51 sylvie upsd[3756]: listening on 0.0.0.0 port 3493
3086:Dec 8 10:50:51 sylvie upsd: listening on 0.0.0.0 port 3493
3087:Dec 8 10:50:51 sylvie upsd[3756]: Connected to UPS [UPS]: apcsmart-UPS
3088:Dec 8 10:50:51 sylvie upsd: Connected to UPS [UPS]: apcsmart-UPS
3089:Dec 8 10:50:51 sylvie upsd[3757]: Startup successful
3090:Dec 8 10:50:51 sylvie nut: upsd startup succeeded
3091:Dec 8 10:50:51 sylvie upsmon: UPS: UPS@localhost (master) (power value 1)
3092:Dec 8 10:50:51 sylvie upsmon: Using power down flag file /etc/killpower
3093:Dec 8 10:50:51 sylvie upsmon:
3094:Dec 8 10:50:51 sylvie upsmon[3761]: Startup successful
3095:Dec 8 10:50:51 sylvie upsd[3757]: Connection from 127.0.0.1
3096:Dec 8 10:50:51 sylvie upsd[3757]: Client upsmaster@127.0.0.1 logged into UPS [UPS]
3097:Dec 8 10:50:51 sylvie nut: upsmon startup succeeded
3139:Dec 8 10:50:56 sylvie upsmon[3762]: UPS UPS@localhost on battery
3194:Dec 8 10:51:07 sylvie upsd[3757]: Data for UPS [UPS] is stale - check driver
3196:Dec 8 10:51:09 sylvie upsd[3757]: UPS [UPS] data is no longer stale
3197:Dec 8 10:51:11 sylvie upsmon[3762]: UPS UPS@localhost on line power
3201:Dec 8 10:51:19 sylvie upsd[3757]: Data for UPS [UPS] is stale - check driver
3203:Dec 8 10:51:21 sylvie upsd[3757]: UPS [UPS] data is no longer stale
3207:Dec 8 10:51:31 sylvie upsmon[3762]: UPS UPS@localhost on battery
3220:Dec 8 10:51:41 sylvie upsd[3757]: Data for UPS [UPS] is stale - check driver
3222:Dec 8 10:51:44 sylvie upsd[3757]: UPS [UPS] data is no longer stale
3231:Dec 8 10:51:46 sylvie upsmon[3762]: UPS UPS@localhost on line power
3233:Dec 8 10:51:56 sylvie upsmon[3762]: UPS UPS@localhost on battery
3236:Dec 8 10:51:58 sylvie upsd[3757]: Data for UPS [UPS] is stale - check driver
3238:Dec 8 10:52:00 sylvie upsd[3757]: UPS [UPS] data is no longer stale
3239:Dec 8 10:52:01 sylvie upsmon[3762]: UPS UPS@localhost on line power
3241:Dec 8 10:52:11 sylvie upsmon[3762]: UPS UPS@localhost on battery
3244:Dec 8 10:55:24 sylvie upsd[3757]: Data for UPS [UPS] is stale - check driver
3245:Dec 8 10:55:27 sylvie upsmon[3762]: Poll UPS [UPS@localhost] failed - Data stale
3246:Dec 8 10:55:27 sylvie upsmon[3762]: Communications with UPS UPS@localhost lost
3248:Dec 8 10:55:32 sylvie upsmon[3762]: Poll UPS [UPS@localhost] failed - Data stale
3249:Dec 8 10:55:37 sylvie upsmon[3762]: Poll UPS [UPS@localhost] failed - Data stale
3251:Dec 8 10:55:40 sylvie upsd[3757]: UPS [UPS] data is no longer stale
3252:Dec 8 10:55:42 sylvie upsmon[3762]: Communications with UPS UPS@localhost established
3253:Dec 8 10:55:42 sylvie upsmon[3762]: UPS UPS@localhost on line power
3258:Dec 8 11:13:37 sylvie upsmon[3762]: UPS UPS@localhost on battery
3261:Dec 8 11:14:49 sylvie upsd[3757]: Data for UPS [UPS] is stale - check driver
3263:Dec 8 11:14:51 sylvie upsd[3757]: UPS [UPS] data is no longer stale
3264:Dec 8 11:14:52 sylvie upsmon[3762]: UPS UPS@localhost on line power
3266:Dec 8 11:15:02 sylvie upsmon[3762]: UPS UPS@localhost on battery
3269:Dec 8 11:15:49 sylvie upsd[3757]: Data for UPS [UPS] is stale - check driver
3270:Dec 8 11:15:52 sylvie upsmon[3762]: Poll UPS [UPS@localhost] failed - Data stale
3271:Dec 8 11:15:52 sylvie upsmon[3762]: Communications with UPS UPS@localhost lost
3273:Dec 8 11:15:57 sylvie upsmon[3762]: Poll UPS [UPS@localhost] failed - Data stale
3275:Dec 8 11:16:07 sylvie upsd[3757]: Client upsmaster@127.0.0.1 set FSD on UPS [UPS]
3276:Dec 8 11:16:07 sylvie upsmon[3762]: Executing automatic power-fail shutdown
3278:Dec 8 11:16:07 sylvie upsmon[3762]: Auto logout and shutdown proceeding
3280:Dec 8 11:16:12 sylvie upsd[3757]: Host 127.0.0.1 disconnected (read failure)
3299:Dec 8 11:16:14 sylvie ups: upsmon shutdown failed
3300:Dec 8 11:16:14 sylvie upsd[3757]: Signal 15: exiting
Every time the UPS went to battery, the OVERLOAD light would light and the device would pop on and off line. If I used the UPS without the serial cable the UPS was happy.
(I did check the hardware - plugged in several desktops and they were fine. Of course I had no cables of monitoring software for the UPS. I let it alone with no load to allow it to charge up, but the minute I plugged it into the server and reconnected the Serial cable all hell broke loose.)
In the end I tried the USB connectivity:
config show nut:
nut=service
MasterPass=<snip>
Model=usbhid-ups
SlavePass=<snip>
status=enabled
I started up and all was well:
Dec 10 13:39:26 sylvie upsdrvctl: Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.2.0-)
Dec 10 13:39:26 sylvie upsdrvctl:
Dec 10 13:39:26 sylvie upsdrvctl: Detected a UPS: American Power Conversion/Smart-UPS 1500 FW:653.13.I USB FW:7.3
Dec 10 13:39:26 sylvie upsdrvctl: Using subdriver: APC/CyberPower HID 0.9
Dec 10 13:39:27 sylvie usbhid-ups[19817]: Startup successful
Dec 10 13:39:27 sylvie upsdrvctl: Network UPS Tools - UPS driver controller 2.2.0-
Dec 10 13:39:27 sylvie nut: upsdrvctl startup succeeded
Dec 10 13:39:27 sylvie upsd[19820]: listening on 0.0.0.0 port 3493
Dec 10 13:39:27 sylvie upsd[19820]: Connected to UPS [UPS]: usbhid-ups-UPS
Dec 10 13:39:27 sylvie upsd: listening on 0.0.0.0 port 3493
Dec 10 13:39:27 sylvie upsd[19821]: Startup successful
Dec 10 13:39:27 sylvie upsd: Connected to UPS [UPS]: usbhid-ups-UPS
Dec 10 13:39:27 sylvie nut: upsd startup succeeded
Dec 10 13:39:27 sylvie upsmon[19825]: Startup successful
Dec 10 13:39:27 sylvie upsmon: UPS: UPS@localhost (master) (power value 1)
Dec 10 13:39:27 sylvie upsmon: Using power down flag file /etc/killpower
Dec 10 13:39:27 sylvie upsmon:
Dec 10 13:39:27 sylvie upsd[19821]: Connection from 127.0.0.1
Dec 10 13:39:27 sylvie upsd[19821]: Client upsmaster@127.0.0.1 logged into UPS [UPS]
Dec 10 13:39:27 sylvie nut: upsmon startup succeeded
It's been an hour now and all is well - the above messages were the last ups/nut related log entries (apart from the ones I generated by examining the ups).
Sorry about the lengthy post, but this was really annoying me and there isn't anything there that matches my issue. Hopefully my experiences will help someone.
Fran.