509 und USV mit Seriellen Kabel anschliessen

  • Tag Leute,


    kann man eigentlich nun eine USV mit dem Seriellen Port an das QNAP anschliessen? Für was ist den der Port eigentlich da?!


    Zumindestens in der config /etc/config/uLinux.config gibt es ja diesen Block:
    [UPS]
    Support = TRUE
    Serial UPS = FALSE
    Snmp UPS = TRUE
    Daemon Type = 3
    UPS IP = 0.0.0.0
    Enable = TRUE
    UPS Type = apc-CS
    Shutdown System In = 5
    ValidCOM = 1
    AC Power = OK
    Battery Power = OK


    Hat das schon jemand getestet?


    Grüße Martin

  • Hallo,


    habe an meiner TS509 eine APC SmartUPS 420 seriell angeschlossen:


    Hier meine Vorgehensweise:


    1.)
    Install apcupsd


    2.)
    Konfigfile editieren


    vi /share/MD0_DATA/.qpkg/Optware/etc/apcupsd/apcupsd.conf


    ## apcupsd.conf v1.1 ##
    UPSCABLE smart
    UPSTYPE smartups
    DEVICE /dev/ttyS0
    LOCKFILE /var/lock
    UPSCLASS standalone
    UPSMODE disable


    UPSNAME SmartUPS420


    # ======== configuration parameters used during power failures ==========
    BATTERYLEVEL 0
    MINUTES 3
    TIMEOUT 0


    # ==== Configuration statements for Network Information Server ====


    NETSERVER on
    NISIP 0.0.0.0
    NISPORT 3551


    3.)


    mountpoint /mnt/boot einrichten
    mount /dev/sdx6 /tmp/boot


    4.)


    Autorun.sh editieren



    autorun.sh
    #!/bin/sh



    # added by SSODS (ssods-ts $Revision: 1.5 $) on Mon Mar 30 21:11:04 CEST 2009
    ln -sf /share/MD0_DATA /volume1 # SSODS (keep the tag!)
    /volume1/SSODS/etc/init.d/rc.ssods start # SSODS (keep the tag!)


    # added by RLE


    # copy custom apcupsd.conf to /etc/apcupsd/apcupsd.conf
    cp /share/MD0_DATA/.qpkg/Optware/etc/apcupsd/apcupsd.conf /etc/apcupsd/apcupsd.conf


    # start apcupsd
    /sbin/apcupsd -f /etc/apcupsd/apcupsd.conf

    [/share/MD0_DATA/.root] #


    5.)
    umount /tmp/boot


    6.)
    reboot NAS


    7.) Die Zeit zum Herunterfahren muss man aber im WebMenü unter der USV einstellen, also kurz den USV Support aktivieren, Zeit einstellen, speichern, USV Support ausschalten



    Bei einem anspringen der USV kommt jetzt bei mir eine Meldung "Shutdown in 10 Minuten" und bei Rückkehr zu Normalzustand "Shutdown abgebrochen".
    Nach 10 Minuten Stromausfall fährt dann das NAS automatisch herunter.


    :D