<div dir="ltr">bonjour Julien<br><div><div class="gmail_extra"><br><div class="gmail_quote">2013/4/11 Julien Métairie <span dir="ltr"><<a href="mailto:ruliane@ruliane.net" target="_blank">ruliane@ruliane.net</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi everybody,<br>
<br>
I installed and configured Nut 2.4.3 on Debian Squeeze, using package. It monitors an MGE Pulsar 1500 UPS in standalone mode.<br>
<br>
Here are parts of upsmon.conf :<br>
SHUTDOWNCMD "/bin/bash /root/extinction.sh >> /var/log/ups/ups.log 2>>&1"<br>
NOTIFYCMD "/bin/bash /usr/sbin/alerte.sh"<br>
[...]<br>
NOTIFYFLAG ONBATT       SYSLOG+EXEC<br>
<br>
At startup, driver, upsd and upsmon start but when I pull off the line, a message is appended to syslog but no script is executed, nor SHUTDOWNCMD is called. To make things better, I must restart Nut :<br>
invoke-rc.d nut restart<br>
<br>
Trying to understand this behavior, i noticed the following lines in syslog at computer startup, pasted there[1] for convenience :<br>
<br>
usb 3-1: New USB device found, idVendor=0463, idProduct=ffff<br>
usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=4<br>
usb 3-1: Product: Pulsar<br>
usb 3-1: Manufacturer: MGE UPS SYSTEMS<br>
usb 3-1: SerialNumber: 1Y3H34201<br>
usb 3-1: configuration #1 chosen from 1 choice<br>
[...]<br>
/build/buildd-linux-2.6_2.6.<u></u>32-48squeeze1-i386-F95osd/<u></u>linux-2.6-2.6.32/debian/build/<u></u>source_i386_none/drivers/hid/<u></u>usbhid/hid-core.c: usb_submit_urb(ctrl) failed<br>
generic-usb 0003:0463:FFFF.0001: timeout initializing reports<br>
generic-usb 0003:0463:FFFF.0001: hiddev0,hidraw0: USB HID v1.10 Device [MGE UPS SYSTEMS Pulsar] on usb-0000:00:0a.1-1/input0<br>
usbcore: registered new interface driver usbhid<br>
usbhid: v2.6:USB HID core driver<br>
<br>
May the failure be linked to my issue ? What can I do to make Nut work as soon as my computer boots up ?<br></blockquote><div><br></div><div>maybe.<br>can you reproduce this easily?<br></div><div>if so, what the result of "upsc <devname>":<br>
1) just after the boot?<br>2) then, when you've pulled the line?<br><br></div></div></div><div class="gmail_extra">Arnaud<br></div><div class="gmail_extra">cheers,<br></div><div class="gmail_extra">-- <br>NUT (Network UPS Tools) Project Leader - <a href="http://www.networkupstools.org" target="_blank">http://www.networkupstools.org</a><br>
Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>Free Software Developer - <a href="http://arnaud.quette.fr" target="_blank">http://arnaud.quette.fr</a><br><br></div></div></div>