Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Off Topic
  4. Proxmox
  5. USV bzw. apcupsd einrichten

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.0k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    924

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

USV bzw. apcupsd einrichten

Geplant Angeheftet Gesperrt Verschoben Proxmox
5 Beiträge 2 Kommentatoren 797 Aufrufe 3 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • S Offline
    S Offline
    senior1418
    schrieb am zuletzt editiert von
    #1

    Hallo .

    Beim Einrichten einer USV unter Proxmox benötige ich Hilfe.

    Vor ein paar Tagen hatten wir im Haus den Totalausfall Stromnetzes. Na ja, jemand hat versehentlich den Hauptschalter des Sicherungskasten umgelegt.

    SD-Karte der CCU3 inkl. USB-Stick defekt, der Rest, Synology und NUC mit Proxmox haben es überlebt.

    Das habe ich heute zum Anlass genommen, die bisher nur halbwegs eingebundene USV auf allen Slaves einzurichten.

    Den NUT Server habe ich nach "https://forum.iobroker.net/topic/23688/howto-usv-nut-server-auf-sbc-installieren" auf einen RPI3 aufgesetzt. 2 Synology NAS entsprechend konfiguriert.

    Die CCU3(Raspberrymatic) habe ich entlang der Anleitung https://github.com/jens-maus/RaspberryMatic/wiki/Experten-Features#usv-clientserver-nut eingerichtet. Dank dieser Doku hier war das sehr einfach.

    Leider komme ich bei Proxmox nicht weiter. Der Start des apcupsd.service führt zu Fehler.
    Das habe ich ausgeführt:

    sudo apt-get install apcupsd
    sudo cp /etc/apcupsd/apcupsd.conf /etc/apcupsd/apcupsd.conf.bak
    
    sudo nano /etc/apcupsd/apcupsd.conf
    

    Konfiguration so erstellt:

    UPSCABLE ether
    UPSTYP pcnet
    DEVICE 192.168.0.37:upsmaster:**********
    BATTERYLEVEL 40
    MINUTES 20
    POLLTIME 60
    # Vorgabe beibehalten
    LOCKFILE /var/lock
    SCRIPTDIR /etc/apcupsd
    PWRFAILDIR /etc/apcupsd
    NOLOGINDIR /etc
    ONBATTERYDELAY 6
    TIMEOUT 0
    ANNOY 300
    ANNOYDELAY 60
    NOLOGON disable
    KILLDELAY 0
    NETSERVER on
    NISIP 127.0.0.1
    NISPORT 3551
    EVENTSFILE /var/log/apcupsd.events
    EVENTSFILEMAX 10
    UPSCLASS standalone
    UPSMODE disable
    STATTIME 0
    STATFILE /var/log/apcupsd.status
    LOGSTATS off
    DATATIME 0
    

    Letztlich in :sudo nano /etc/default/apcupsd ISCONFIGURED=yes eingetragen.

    Leider startet der Service nicht:sudo systemctl restart apcupsd.service bringt:

    root@pve:~# systemctl status apcupsd.service
    × apcupsd.service - UPS power management daemon
         Loaded: loaded (/lib/systemd/system/apcupsd.service; enabled; preset: enabled)
         Active: failed (Result: exit-code) since Thu 2025-02-06 21:09:36 CET; 2min 18s ago
       Duration: 33min 39.031s
           Docs: man:apcupsd(8)
        Process: 699949 ExecStartPre=/lib/apcupsd/prestart (code=exited, status=0/SUCCESS)
        Process: 699953 ExecStart=/sbin/apcupsd (code=exited, status=1/FAILURE)
            CPU: 4ms
    
    Feb 06 21:09:36 pve systemd[1]: Starting apcupsd.service - UPS power management daemon...
    Feb 06 21:09:36 pve apcupsd[699953]: apcupsd FATAL ERROR in apcconfig.c at line 672
    Feb 06 21:09:36 pve apcupsd[699953]: Terminating due to configuration file errors.
    Feb 06 21:09:36 pve apcupsd[699953]: apcupsd FATAL ERROR in apcconfig.c at line 672
                                         Terminating due to configuration file errors.
    Feb 06 21:09:36 pve apcupsd[699953]: apcupsd error shutdown completed
    Feb 06 21:09:36 pve systemd[1]: apcupsd.service: Control process exited, code=exited, status=1/FAILURE
    Feb 06 21:09:36 pve systemd[1]: apcupsd.service: Failed with result 'exit-code'.
    Feb 06 21:09:36 pve systemd[1]: Failed to start apcupsd.service - UPS power management daemon.
    
    S Marc BergM 2 Antworten Letzte Antwort
    0
    • S senior1418

      Hallo .

      Beim Einrichten einer USV unter Proxmox benötige ich Hilfe.

      Vor ein paar Tagen hatten wir im Haus den Totalausfall Stromnetzes. Na ja, jemand hat versehentlich den Hauptschalter des Sicherungskasten umgelegt.

      SD-Karte der CCU3 inkl. USB-Stick defekt, der Rest, Synology und NUC mit Proxmox haben es überlebt.

      Das habe ich heute zum Anlass genommen, die bisher nur halbwegs eingebundene USV auf allen Slaves einzurichten.

      Den NUT Server habe ich nach "https://forum.iobroker.net/topic/23688/howto-usv-nut-server-auf-sbc-installieren" auf einen RPI3 aufgesetzt. 2 Synology NAS entsprechend konfiguriert.

      Die CCU3(Raspberrymatic) habe ich entlang der Anleitung https://github.com/jens-maus/RaspberryMatic/wiki/Experten-Features#usv-clientserver-nut eingerichtet. Dank dieser Doku hier war das sehr einfach.

      Leider komme ich bei Proxmox nicht weiter. Der Start des apcupsd.service führt zu Fehler.
      Das habe ich ausgeführt:

      sudo apt-get install apcupsd
      sudo cp /etc/apcupsd/apcupsd.conf /etc/apcupsd/apcupsd.conf.bak
      
      sudo nano /etc/apcupsd/apcupsd.conf
      

      Konfiguration so erstellt:

      UPSCABLE ether
      UPSTYP pcnet
      DEVICE 192.168.0.37:upsmaster:**********
      BATTERYLEVEL 40
      MINUTES 20
      POLLTIME 60
      # Vorgabe beibehalten
      LOCKFILE /var/lock
      SCRIPTDIR /etc/apcupsd
      PWRFAILDIR /etc/apcupsd
      NOLOGINDIR /etc
      ONBATTERYDELAY 6
      TIMEOUT 0
      ANNOY 300
      ANNOYDELAY 60
      NOLOGON disable
      KILLDELAY 0
      NETSERVER on
      NISIP 127.0.0.1
      NISPORT 3551
      EVENTSFILE /var/log/apcupsd.events
      EVENTSFILEMAX 10
      UPSCLASS standalone
      UPSMODE disable
      STATTIME 0
      STATFILE /var/log/apcupsd.status
      LOGSTATS off
      DATATIME 0
      

      Letztlich in :sudo nano /etc/default/apcupsd ISCONFIGURED=yes eingetragen.

      Leider startet der Service nicht:sudo systemctl restart apcupsd.service bringt:

      root@pve:~# systemctl status apcupsd.service
      × apcupsd.service - UPS power management daemon
           Loaded: loaded (/lib/systemd/system/apcupsd.service; enabled; preset: enabled)
           Active: failed (Result: exit-code) since Thu 2025-02-06 21:09:36 CET; 2min 18s ago
         Duration: 33min 39.031s
             Docs: man:apcupsd(8)
          Process: 699949 ExecStartPre=/lib/apcupsd/prestart (code=exited, status=0/SUCCESS)
          Process: 699953 ExecStart=/sbin/apcupsd (code=exited, status=1/FAILURE)
              CPU: 4ms
      
      Feb 06 21:09:36 pve systemd[1]: Starting apcupsd.service - UPS power management daemon...
      Feb 06 21:09:36 pve apcupsd[699953]: apcupsd FATAL ERROR in apcconfig.c at line 672
      Feb 06 21:09:36 pve apcupsd[699953]: Terminating due to configuration file errors.
      Feb 06 21:09:36 pve apcupsd[699953]: apcupsd FATAL ERROR in apcconfig.c at line 672
                                           Terminating due to configuration file errors.
      Feb 06 21:09:36 pve apcupsd[699953]: apcupsd error shutdown completed
      Feb 06 21:09:36 pve systemd[1]: apcupsd.service: Control process exited, code=exited, status=1/FAILURE
      Feb 06 21:09:36 pve systemd[1]: apcupsd.service: Failed with result 'exit-code'.
      Feb 06 21:09:36 pve systemd[1]: Failed to start apcupsd.service - UPS power management daemon.
      
      S Offline
      S Offline
      senior1418
      schrieb am zuletzt editiert von senior1418
      #2

      @senior1418

      ach ja, weis nicht ob das wichig ist.

      USV meldet sich als : Back-UPS RS 900G

      LG

      1 Antwort Letzte Antwort
      0
      • S senior1418

        Hallo .

        Beim Einrichten einer USV unter Proxmox benötige ich Hilfe.

        Vor ein paar Tagen hatten wir im Haus den Totalausfall Stromnetzes. Na ja, jemand hat versehentlich den Hauptschalter des Sicherungskasten umgelegt.

        SD-Karte der CCU3 inkl. USB-Stick defekt, der Rest, Synology und NUC mit Proxmox haben es überlebt.

        Das habe ich heute zum Anlass genommen, die bisher nur halbwegs eingebundene USV auf allen Slaves einzurichten.

        Den NUT Server habe ich nach "https://forum.iobroker.net/topic/23688/howto-usv-nut-server-auf-sbc-installieren" auf einen RPI3 aufgesetzt. 2 Synology NAS entsprechend konfiguriert.

        Die CCU3(Raspberrymatic) habe ich entlang der Anleitung https://github.com/jens-maus/RaspberryMatic/wiki/Experten-Features#usv-clientserver-nut eingerichtet. Dank dieser Doku hier war das sehr einfach.

        Leider komme ich bei Proxmox nicht weiter. Der Start des apcupsd.service führt zu Fehler.
        Das habe ich ausgeführt:

        sudo apt-get install apcupsd
        sudo cp /etc/apcupsd/apcupsd.conf /etc/apcupsd/apcupsd.conf.bak
        
        sudo nano /etc/apcupsd/apcupsd.conf
        

        Konfiguration so erstellt:

        UPSCABLE ether
        UPSTYP pcnet
        DEVICE 192.168.0.37:upsmaster:**********
        BATTERYLEVEL 40
        MINUTES 20
        POLLTIME 60
        # Vorgabe beibehalten
        LOCKFILE /var/lock
        SCRIPTDIR /etc/apcupsd
        PWRFAILDIR /etc/apcupsd
        NOLOGINDIR /etc
        ONBATTERYDELAY 6
        TIMEOUT 0
        ANNOY 300
        ANNOYDELAY 60
        NOLOGON disable
        KILLDELAY 0
        NETSERVER on
        NISIP 127.0.0.1
        NISPORT 3551
        EVENTSFILE /var/log/apcupsd.events
        EVENTSFILEMAX 10
        UPSCLASS standalone
        UPSMODE disable
        STATTIME 0
        STATFILE /var/log/apcupsd.status
        LOGSTATS off
        DATATIME 0
        

        Letztlich in :sudo nano /etc/default/apcupsd ISCONFIGURED=yes eingetragen.

        Leider startet der Service nicht:sudo systemctl restart apcupsd.service bringt:

        root@pve:~# systemctl status apcupsd.service
        × apcupsd.service - UPS power management daemon
             Loaded: loaded (/lib/systemd/system/apcupsd.service; enabled; preset: enabled)
             Active: failed (Result: exit-code) since Thu 2025-02-06 21:09:36 CET; 2min 18s ago
           Duration: 33min 39.031s
               Docs: man:apcupsd(8)
            Process: 699949 ExecStartPre=/lib/apcupsd/prestart (code=exited, status=0/SUCCESS)
            Process: 699953 ExecStart=/sbin/apcupsd (code=exited, status=1/FAILURE)
                CPU: 4ms
        
        Feb 06 21:09:36 pve systemd[1]: Starting apcupsd.service - UPS power management daemon...
        Feb 06 21:09:36 pve apcupsd[699953]: apcupsd FATAL ERROR in apcconfig.c at line 672
        Feb 06 21:09:36 pve apcupsd[699953]: Terminating due to configuration file errors.
        Feb 06 21:09:36 pve apcupsd[699953]: apcupsd FATAL ERROR in apcconfig.c at line 672
                                             Terminating due to configuration file errors.
        Feb 06 21:09:36 pve apcupsd[699953]: apcupsd error shutdown completed
        Feb 06 21:09:36 pve systemd[1]: apcupsd.service: Control process exited, code=exited, status=1/FAILURE
        Feb 06 21:09:36 pve systemd[1]: apcupsd.service: Failed with result 'exit-code'.
        Feb 06 21:09:36 pve systemd[1]: Failed to start apcupsd.service - UPS power management daemon.
        
        Marc BergM Offline
        Marc BergM Offline
        Marc Berg
        Most Active
        schrieb am zuletzt editiert von Marc Berg
        #3

        @senior1418 sagte in USV bzw. apcupsd einrichten:

        UPSTYP pcnet

        Das muss

        UPSTYPE

        heißen. Damit ist vielleicht die Meldung "configuration file errors" weg.

        EDIT:

        Unsinn gelöscht

        NUC10I3+Ubuntu+Docker+ioBroker+influxDB2+Node Red+EMQX+Grafana

        Pi-hole, Traefik, Checkmk, Conbee II+Zigbee2MQTT, ESPSomfy-RTS, LoRaWAN, Arduino, KiCad

        Benutzt das Voting im Beitrag, wenn er euch geholfen hat.

        S 1 Antwort Letzte Antwort
        0
        • Marc BergM Marc Berg

          @senior1418 sagte in USV bzw. apcupsd einrichten:

          UPSTYP pcnet

          Das muss

          UPSTYPE

          heißen. Damit ist vielleicht die Meldung "configuration file errors" weg.

          EDIT:

          Unsinn gelöscht

          S Offline
          S Offline
          senior1418
          schrieb am zuletzt editiert von
          #4

          @marc-berg sagte in USV bzw. apcupsd einrichten:

          Das muss
          UPSTYPE
          heißen. Damit ist vielleicht die Meldung "configuration file errors" weg.

          oh ja - Asche über mein Haupt- der Service starte nun.

          Nach wenigen Minuten kommt es aber zum Verbindungsabbruch. Ist das normal ?

          root@pve:~# tail /var/log/apcupsd.events
          2025-02-06 11:42:22 +0100  apcupsd 3.14.14 (31 May 2016) debian startup succeeded
          2025-02-06 11:43:23 +0100  Communications with UPS lost.
          2025-02-06 11:53:36 +0100  Communications with UPS lost.
          2025-02-06 12:03:47 +0100  Communications with UPS lost.
          2025-02-06 12:14:01 +0100  Communications with UPS lost.
          2025-02-06 12:16:01 +0100  apcupsd exiting, signal 15
          2025-02-06 12:16:01 +0100  apcupsd shutdown succeeded
          2025-02-07 10:16:28 +0100  apcupsd 3.14.14 (31 May 2016) debian startup succeeded
          
          Broadcast message from root@pve (somewhere) (Fri Feb  7 10:17:23 2025):
          
          Warning communications lost with UPS pve
          

          und hier auch:

          root@pve:~# apcaccess
          APC      : 001,018,0441
          DATE     : 2025-02-07 10:23:15 +0100
          HOSTNAME : pve
          VERSION  : 3.14.14 (31 May 2016) debian
          UPSNAME  : pve
          CABLE    : Ethernet Link
          DRIVER   : PCNET UPS Driver
          UPSMODE  : Stand Alone
          STARTTIME: 2025-02-07 10:16:28 +0100
          STATUS   : COMMLOST
          MBATTCHG : 40 Percent
          MINTIMEL : 20 Minutes
          MAXTIME  : 0 Seconds
          NUMXFERS : 0
          TONBATT  : 0 Seconds
          CUMONBATT: 0 Seconds
          XOFFBATT : N/A
          STATFLAG : 0x05000100
          END APC  : 2025-02-07 10:32:15 +0100
          
          S 1 Antwort Letzte Antwort
          0
          • S senior1418

            @marc-berg sagte in USV bzw. apcupsd einrichten:

            Das muss
            UPSTYPE
            heißen. Damit ist vielleicht die Meldung "configuration file errors" weg.

            oh ja - Asche über mein Haupt- der Service starte nun.

            Nach wenigen Minuten kommt es aber zum Verbindungsabbruch. Ist das normal ?

            root@pve:~# tail /var/log/apcupsd.events
            2025-02-06 11:42:22 +0100  apcupsd 3.14.14 (31 May 2016) debian startup succeeded
            2025-02-06 11:43:23 +0100  Communications with UPS lost.
            2025-02-06 11:53:36 +0100  Communications with UPS lost.
            2025-02-06 12:03:47 +0100  Communications with UPS lost.
            2025-02-06 12:14:01 +0100  Communications with UPS lost.
            2025-02-06 12:16:01 +0100  apcupsd exiting, signal 15
            2025-02-06 12:16:01 +0100  apcupsd shutdown succeeded
            2025-02-07 10:16:28 +0100  apcupsd 3.14.14 (31 May 2016) debian startup succeeded
            
            Broadcast message from root@pve (somewhere) (Fri Feb  7 10:17:23 2025):
            
            Warning communications lost with UPS pve
            

            und hier auch:

            root@pve:~# apcaccess
            APC      : 001,018,0441
            DATE     : 2025-02-07 10:23:15 +0100
            HOSTNAME : pve
            VERSION  : 3.14.14 (31 May 2016) debian
            UPSNAME  : pve
            CABLE    : Ethernet Link
            DRIVER   : PCNET UPS Driver
            UPSMODE  : Stand Alone
            STARTTIME: 2025-02-07 10:16:28 +0100
            STATUS   : COMMLOST
            MBATTCHG : 40 Percent
            MINTIMEL : 20 Minutes
            MAXTIME  : 0 Seconds
            NUMXFERS : 0
            TONBATT  : 0 Seconds
            CUMONBATT: 0 Seconds
            XOFFBATT : N/A
            STATFLAG : 0x05000100
            END APC  : 2025-02-07 10:32:15 +0100
            
            S Offline
            S Offline
            senior1418
            schrieb am zuletzt editiert von
            #5

            wegen des Verbindungsabbruch habe ich den RPI3 USV-Server vom Netz genommen um mit aktuellem Debian-Image einen neu zu beginnen.

            Das war eine anscheinend eine schlechte Idee denn alle Clients --- NUC, CCU3 und beide Synology'en -- sind daraufhin runtergefahren. Funktionstest bestanden ;-)

            1 Antwort Letzte Antwort
            0
            Antworten
            • In einem neuen Thema antworten
            Anmelden zum Antworten
            • Älteste zuerst
            • Neuste zuerst
            • Meiste Stimmen


            Support us

            ioBroker
            Community Adapters
            Donate

            681

            Online

            32.6k

            Benutzer

            82.2k

            Themen

            1.3m

            Beiträge
            Community
            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
            ioBroker Community 2014-2025
            logo
            • Anmelden

            • Du hast noch kein Konto? Registrieren

            • Anmelden oder registrieren, um zu suchen
            • Erster Beitrag
              Letzter Beitrag
            0
            • Home
            • Aktuell
            • Tags
            • Ungelesen 0
            • Kategorien
            • Unreplied
            • Beliebt
            • GitHub
            • Docu
            • Hilfe