Hali!
Ubuntu server 6.06-tal szenvedek, egy IBM xSeries226-on, egy MGE Pulsar Evolutin 1100-as UPS-szel.
A UPS (neve az alábbi logokban: 'enyim') USB-n csatlakozik, a newhidups drivert használom.
Probléma: a driver csak akkor találja meg a UPS-t, ha az USB-kábelt kihúzom és visszadugom.
Amit kiderítettem:
-a kernel bootoláskor megtalálja a UPS-t (dmesg):
[42949416.840000] usb 2-2: new low speed USB device using uhci_hcd and address 2
-és utánna (syslog, csak az idevágó üzenetekkel):
Jun 16 10:27:44 csiga kernel: [42949424.420000] kjournald starting. Commit interval 5 seconds
Jun 16 10:27:44 csiga upsd[4680]: Can't connect to UPS [enyim] (newhidups-auto): No such file or directory
Jun 16 10:27:49 csiga upsd[4706]: Startup successful
Jun 16 10:27:49 csiga upsmon[4708]: Startup successful
Jun 16 10:27:49 csiga upsd[4706]: Connection from 127.0.0.1
Jun 16 10:27:49 csiga upsd[4706]: Client monuserKUKAC(csakhogy ne tördeljen a drupal)127.0.0.1 logged into UPS [enyim]
Jun 16 10:27:49 csiga upsmon[4709]: Poll UPS [enyimKUKAClocalhost] failed - Driver not connected
Jun 16 10:27:49 csiga upsmon[4709]: Communications with UPS enyim@localhost lost
Jun 16 10:27:54 csiga upsmon[4709]: Poll UPS [enyimKUKAClocalhost] failed - Driver not connected
Jun 16 10:27:54 csiga upsmon[4709]: UPS enyimKUKAClocalhost is unavailable
Jun 16 10:27:59 csiga upsmon[4709]: Poll UPS [enyimKUKAClocalhost] failed - Driver not connected
Jun 16 10:28:34 csiga last message repeated 7 times
-kihúzom az USB-kábelt
Jun 16 10:28:37 csiga kernel: [42949478.200000] usb 2-2: USB disconnect, address 2
-visszadugom az USB-kábelt
Jun 16 10:28:38 csiga kernel: [42949479.730000] usb 2-2: new low speed USB device using uhci_hcd and address 3
Jun 16 10:28:39 csiga upsmon[4709]: Poll UPS [enyimKUKAClocalhost] failed - Driver not connected
Jun 16 10:28:59 csiga last message repeated 4 times
-/etc/init.d/nut stop
Jun 16 10:29:00 csiga upsmon[4709]: Signal 15: exiting
Jun 16 10:29:00 csiga upsd[4706]: Client monuserKUKAC127.0.0.1 logged out
Jun 16 10:29:00 csiga upsmon[4708]: upsmon parent: read: Success
Jun 16 10:29:00 csiga upsd[4706]: Signal 15: exiting
-/etc/init.d/nut restart
Jun 16 10:29:42 csiga upsd[4965]: Connected to UPS [enyim]: newhidups-auto
Jun 16 10:29:47 csiga upsd[4966]: Startup successful
Jun 16 10:29:47 csiga upsmon[4968]: Startup successful
Jun 16 10:29:47 csiga upsd[4966]: Connection from 127.0.0.1
Jun 16 10:29:47 csiga upsd[4966]: Client monuserKUKAC127.0.0.1 logged into UPS [enyim]
-egyszer mindig elveszti a kapcsolatot
Jun 16 10:29:47 csiga upsmon[4969]: Poll UPS [enyimKUKAClocalhost] failed - Variable not supported by UPS
Jun 16 10:29:47 csiga upsmon[4969]: Communications with UPS enyimKUKAClocalhost lost
Jun 16 10:29:52 csiga upsmon[4969]: Poll UPS [enyimKUKAClocalhost] failed - Variable not supported by UPS
Jun 16 10:29:52 csiga upsmon[4969]: UPS enyimKUKAClocalhost is unavailable
-megtalálja újra
Jun 16 10:29:57 csiga upsmon[4969]: Communications with UPS enyimKUKAClocalhost established
-innetől boldog
Az idegtől remegek,
A falnak megyek,
Mit tegyek, ó egek???