Koozali.org: home of the SME Server

Problems with nut 1.2.0 on SME 6.0.1

Offline RvLardin

  • ****
  • 82
  • +0/-0
    • http://sme.firewall-services.com
Problems with nut 1.2.0 on SME 6.0.1
« on: September 20, 2004, 08:52:03 PM »
Hello everybody,

I've decided to do it the hard way, choosing something else than an APC with USB (that is said to run simply).
I'm nuts (sorry):hammer:

According to the doc, My UPS model is 'genericups upstype=16' and is plug on the serial port 0.

So my /etc/ups/ups.conf file looks like (no templates   for the test) :
Quote

[UPS]
#       driver = hidups
        driver = genericups upstype=16
#       port = /var/lib/ups/hiddev0
        port = /dev/ttyS0


And my /etc/sysconfig/ups file sounds like that :

Quote

# DEVICE=/var/lib/ups/hiddev0
DEVICE=/dev/ttyS0
#MODEL=hidups
MODEL=genericups upstype=16
OPTIONS=
SERVER=yes


So, when I try :
#service nut start
I've got the 3 [OK], but in /var/log/messages :
Quote

Sep 20 20:39:48 test upsmon[5435]: Startup successful
Sep 20 20:39:48 test upsd[5430]: Connection from 127.0.0.1
Sep 20 20:39:48 test upsmon[5436]: Poll UPS [localhost] failed - Data stale
Sep 20 20:39:48 test upsmon[5436]: UPS localhost is unavailable
sep 20 20:39:48 test upsmon: UPS: localhost (slave) (power value 1)
sep 20 20:39:48 test upsmon: Using power down flag file /etc/killpower
sep 20 20:39:48 test upsmon:
sep 20 20:39:48 test nut: Démarrage de upsmon  succeeded
Sep 20 20:39:53 test upsmon[5436]: Poll UPS [localhost] failed - Data stale


And, of course, it doesn't works.

A 'service nut stop' command give me an interrresting info :
Quote

Can't open /var/lib/ups/genericups-ttyS0.pid: No such file or directory


Is there a simlink to create or something like that ?

Thanks for reading until here,
I hope to find some help.

A+,
RV.
----
"Those who are willing to lose some of their essential liberties in favour of security deserve neither and will lose both."
- Thomas Jefferson .