Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [Gelöst] CPU Temperatur von Proxmox VM

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Gelöst] CPU Temperatur von Proxmox VM

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas 18147
      Thomas 18147 @Dr. Bakterius last edited by Thomas 18147

      @dr-bakterius
      dann hängt sich die Shell auf und eMails kommen weiterhin.
      Mit welchem Befehl kann ich den laufenden Prozess stoppen?


      root@server:~# bash /usr/local/bin/cpu_temp_send_iobroker.sh > /dev/null 2>&1

      Danke

      Dr. Bakterius 1 Reply Last reply Reply Quote 0
      • Dr. Bakterius
        Dr. Bakterius Most Active @Thomas 18147 last edited by

        @thomas-18147 Wie sieht denn das Skript aus?

        1 Reply Last reply Reply Quote 0
        • Thomas 18147
          Thomas 18147 last edited by

          @dr-bakterius

          hab schon über 3000 eMails bekommen ; )

          #!/bin/bash
          #ioBroker-Datenpunkt
          DP=info.0.sysinfo.cpu.temperature.main
          DP1=info.0.sysinfo.cpu.temperature.main_1
          DP2=info.0.sysinfo.cpu.temperature.main_2
          DP3=info.0.sysinfo.cpu.temperature.main_3
          DP4=info.0.sysinfo.cpu.temperature.main_4
          DP5=info.0.sysinfo.cpu.temperature.main_5
          DP6=info.0.sysinfo.cpu.temperature.main_6
          
          
          #ioBroker-IP:Port
          IPP=192.168.1.174:8087 
          
          #Systemtemperatur abfragen
          SQL=$(sensors | grep 'Core 0:' | awk '{print $3}' | cut -c2-3)
          SQL1=$(sensors | grep 'Core 1:' | awk '{print $3}' | cut -c2-3)
          SQL2=$(sensors | grep 'Core 2:' | awk '{print $3}' | cut -c2-3)
          SQL3=$(sensors | grep 'Core 3:' | awk '{print $3}' | cut -c2-3)
          SQL4=$(sensors | grep 'Core 4:' | awk '{print $3}' | cut -c2-3)
          SQL5=$(sensors | grep 'Core 5:' | awk '{print $3}' | cut -c2-3)
          SQL6=$(sensors | grep Package -m 1 | awk '{print $4}' | awk '{print substr($1, length($0)-6,2)}')
          
          
           
          #an ioBroker senden
          curl http://${IPP}/set/${DP}?value={$SQL}
          curl http://${IPP}/set/${DP1}?value={$SQL1}
          curl http://${IPP}/set/${DP2}?value={$SQL2}
          curl http://${IPP}/set/${DP3}?value={$SQL3}
          curl http://${IPP}/set/${DP4}?value={$SQL4}
          curl http://${IPP}/set/${DP5}?value={$SQL5}
          curl http://${IPP}/set/${DP6}?value={$SQL6}
          
          sleep 10
          SQL=$(sensors | grep 'Core 0:' | awk '{print $3}' | cut -c2-3)
          SQL1=$(sensors | grep 'Core 1:' | awk '{print $3}' | cut -c2-3)
          SQL2=$(sensors | grep 'Core 2:' | awk '{print $3}' | cut -c2-3)
          SQL3=$(sensors | grep 'Core 3:' | awk '{print $3}' | cut -c2-3)
          SQL4=$(sensors | grep 'Core 4:' | awk '{print $3}' | cut -c2-3)
          SQL5=$(sensors | grep 'Core 5:' | awk '{print $3}' | cut -c2-3)
          SQL6=$(sensors | grep Package -m 1 | awk '{print $4}' | awk '{print substr($1, length($0)-6,2)}')
          curl http://${IPP}/set/${DP}?value={$SQL}
          curl http://${IPP}/set/${DP1}?value={$SQL1}
          curl http://${IPP}/set/${DP2}?value={$SQL2}
          curl http://${IPP}/set/${DP3}?value={$SQL3}
          curl http://${IPP}/set/${DP4}?value={$SQL4}
          curl http://${IPP}/set/${DP5}?value={$SQL5}
          curl http://${IPP}/set/${DP6}?value={$SQL6}
          sleep 10
          SQL=$(sensors | grep 'Core 0:' | awk '{print $3}' | cut -c2-3)
          SQL1=$(sensors | grep 'Core 1:' | awk '{print $3}' | cut -c2-3)
          SQL2=$(sensors | grep 'Core 2:' | awk '{print $3}' | cut -c2-3)
          SQL3=$(sensors | grep 'Core 3:' | awk '{print $3}' | cut -c2-3)
          SQL4=$(sensors | grep 'Core 4:' | awk '{print $3}' | cut -c2-3)
          SQL5=$(sensors | grep 'Core 5:' | awk '{print $3}' | cut -c2-3)
          SQL6=$(sensors | grep Package -m 1 | awk '{print $4}' | awk '{print substr($1, length($0)-6,2)}')
          curl http://${IPP}/set/${DP}?value={$SQL}
          curl http://${IPP}/set/${DP1}?value={$SQL1}
          curl http://${IPP}/set/${DP2}?value={$SQL2}
          curl http://${IPP}/set/${DP3}?value={$SQL3}
          curl http://${IPP}/set/${DP4}?value={$SQL4}
          curl http://${IPP}/set/${DP5}?value={$SQL5}
          curl http://${IPP}/set/${DP6}?value={$SQL6}
          sleep 10
          SQL=$(sensors | grep 'Core 0:' | awk '{print $3}' | cut -c2-3)
          SQL1=$(sensors | grep 'Core 1:' | awk '{print $3}' | cut -c2-3)
          SQL2=$(sensors | grep 'Core 2:' | awk '{print $3}' | cut -c2-3)
          SQL3=$(sensors | grep 'Core 3:' | awk '{print $3}' | cut -c2-3)
          SQL4=$(sensors | grep 'Core 4:' | awk '{print $3}' | cut -c2-3)
          SQL5=$(sensors | grep 'Core 5:' | awk '{print $3}' | cut -c2-3)
          SQL6=$(sensors | grep Package -m 1 | awk '{print $4}' | awk '{print substr($1, length($0)-6,2)}')
          curl http://${IPP}/set/${DP}?value={$SQL}
          curl http://${IPP}/set/${DP1}?value={$SQL1}
          curl http://${IPP}/set/${DP2}?value={$SQL2}
          curl http://${IPP}/set/${DP3}?value={$SQL3}
          curl http://${IPP}/set/${DP4}?value={$SQL4}
          curl http://${IPP}/set/${DP5}?value={$SQL5}
          curl http://${IPP}/set/${DP6}?value={$SQL6}
          sleep 10
          SQL=$(sensors | grep 'Core 0:' | awk '{print $3}' | cut -c2-3)
          SQL1=$(sensors | grep 'Core 1:' | awk '{print $3}' | cut -c2-3)
          SQL2=$(sensors | grep 'Core 2:' | awk '{print $3}' | cut -c2-3)
          SQL3=$(sensors | grep 'Core 3:' | awk '{print $3}' | cut -c2-3)
          SQL4=$(sensors | grep 'Core 4:' | awk '{print $3}' | cut -c2-3)
          SQL5=$(sensors | grep 'Core 5:' | awk '{print $3}' | cut -c2-3)
          SQL6=$(sensors | grep Package -m 1 | awk '{print $4}' | awk '{print substr($1, length($0)-6,2)}')
          curl http://${IPP}/set/${DP}?value={$SQL}
          curl http://${IPP}/set/${DP1}?value={$SQL1}
          curl http://${IPP}/set/${DP2}?value={$SQL2}
          curl http://${IPP}/set/${DP3}?value={$SQL3}
          curl http://${IPP}/set/${DP4}?value={$SQL4}
          curl http://${IPP}/set/${DP5}?value={$SQL5}
          curl http://${IPP}/set/${DP6}?value={$SQL6}
          sleep 10
          SQL=$(sensors | grep 'Core 0:' | awk '{print $3}' | cut -c2-3)
          SQL1=$(sensors | grep 'Core 1:' | awk '{print $3}' | cut -c2-3)
          SQL2=$(sensors | grep 'Core 2:' | awk '{print $3}' | cut -c2-3)
          SQL3=$(sensors | grep 'Core 3:' | awk '{print $3}' | cut -c2-3)
          SQL4=$(sensors | grep 'Core 4:' | awk '{print $3}' | cut -c2-3)
          SQL5=$(sensors | grep 'Core 5:' | awk '{print $3}' | cut -c2-3)
          SQL6=$(sensors | grep Package -m 1 | awk '{print $4}' | awk '{print substr($1, length($0)-6,2)}')
          curl http://${IPP}/set/${DP}?value={$SQL}
          curl http://${IPP}/set/${DP1}?value={$SQL1}
          curl http://${IPP}/set/${DP2}?value={$SQL2}
          curl http://${IPP}/set/${DP3}?value={$SQL3}
          curl http://${IPP}/set/${DP4}?value={$SQL4}
          curl http://${IPP}/set/${DP5}?value={$SQL5}
          curl http://${IPP}/set/${DP6}?value={$SQL6}
          
          

          Dr. Bakterius 1 Reply Last reply Reply Quote 0
          • Dr. Bakterius
            Dr. Bakterius Most Active @Thomas 18147 last edited by

            @thomas-18147 Du bekommst die Mails wenn du das Skipt in der Shell aufrufst und/oder wenn es über cron gestartet wird? Sollte eigentlich nur bei cron passieren und mit der oben erwähnten Erweiterung abgestellt werden. Bei direktem Aufruf sollte es keine Wirkung haben (weil ja auch keine Mails versendet werden sollten).

            Thomas 18147 1 Reply Last reply Reply Quote 0
            • Thomas 18147
              Thomas 18147 @Dr. Bakterius last edited by

              @dr-bakterius
              Ich hab das Skript einmal über die Shell gestartet und bis jetzt läuft es noch. Die Werte werden zuverlässig genesendet. Wie kann das Skript gestoppt werden?

              bash /usr/local/bin/cpu_temp_send_iobroker.sh
              

              Und ein Crone Job wurde noch angelegt.

              * * * * * bash /usr/local/bin/cpu_temp_send_iobroker.sh 
              
              Meister Mopper 1 Reply Last reply Reply Quote 0
              • Meister Mopper
                Meister Mopper @Thomas 18147 last edited by

                @thomas-18147 sagte in [Gelöst] CPU Temperatur von Proxmox VM:

                Und ein Crone Job wurde noch angelegt.

                Und da sollte stehen:
                * * * * * bash /usr/local/bin/cpu_temp_send_iobroker.sh >/dev/null 2>&1,

                wie @Dr-Bakterius schrieb

                Thomas 18147 1 Reply Last reply Reply Quote 0
                • Thomas 18147
                  Thomas 18147 @Meister Mopper last edited by

                  @meister-mopper

                  Vielen Dank, es kommen keine eMails mehr!

                  Meister Mopper Dr. Bakterius 2 Replies Last reply Reply Quote 0
                  • Meister Mopper
                    Meister Mopper @Thomas 18147 last edited by

                    @thomas-18147
                    Dann ist dieser thread ja offenbar wirklich [Gelöst] 😊

                    1 Reply Last reply Reply Quote 0
                    • Dr. Bakterius
                      Dr. Bakterius Most Active @Thomas 18147 last edited by

                      @thomas-18147 sagte in [Gelöst] CPU Temperatur von Proxmox VM:

                      Vielen Dank, es kommen keine eMails mehr!

                      Schwere Geburt... 👏

                      1 Reply Last reply Reply Quote 0
                      • stony2k
                        stony2k last edited by

                        Das Script funktioniert wunderbar, auch der State lässt sich setzten. Aber bekommt ihr im Log auch diesen Fehler?

                        Read-only state "info.0.sysinfo.cpu.temperature.main" has been written without ack-flag with value "39"
                        
                        1 Reply Last reply Reply Quote 0
                        • C
                          ChrisXY last edited by

                          Ich habe das Problem das immer /A übermittelt wird.. meine sensors:

                          root@pve:/usr/local/bin# sensors
                          iwlwifi_1-virtual-0
                          Adapter: Virtual device
                          temp1:            N/A  
                          
                          acpitz-acpi-0
                          Adapter: ACPI interface
                          temp1:       -263.2°C  
                          temp2:        +27.8°C  (crit = +119.0°C)
                          
                          coretemp-isa-0000
                          Adapter: ISA adapter
                          Package id 0:  +84.0°C  (high = +100.0°C, crit = +100.0°C)
                          Core 0:        +84.0°C  (high = +100.0°C, crit = +100.0°C)
                          Core 1:        +80.0°C  (high = +100.0°C, crit = +100.0°C)
                          Core 2:        +73.0°C  (high = +100.0°C, crit = +100.0°C)
                          Core 3:        +74.0°C  (high = +100.0°C, crit = +100.0°C)
                          
                          pch_cannonlake-virtual-0
                          Adapter: Virtual device
                          temp1:        +73.0°C  
                          
                          
                          Meister Mopper 1 Reply Last reply Reply Quote 0
                          • Meister Mopper
                            Meister Mopper @ChrisXY last edited by

                            @chrisxy
                            Was ist das für ein System?
                            Die Temperatur der vier Kerne ist grenzwertig, ist das immer so?
                            Lass das mit dem root-login und lege dir einen user im pve an.

                            C 1 Reply Last reply Reply Quote 0
                            • C
                              ChrisXY @Meister Mopper last edited by

                              @meister-mopper Ganz frischer Intel NUC8 i7 der alte war auf einmal aus.... Ich glaube dort ist der Lüfter gestorben.

                              Da nun der frische neue NUC schon solche Werte hat mit Lüfte rund Neu ... Läuft Proxmox drauf mit cpu 40-60%

                              Meister Mopper 1 Reply Last reply Reply Quote 0
                              • Meister Mopper
                                Meister Mopper @ChrisXY last edited by

                                @chrisxy sagte in [Gelöst] CPU Temperatur von Proxmox VM:

                                Ich glaube dort ist der Lüfter gestorben.

                                Das wird bei diesen Temperaturen vermutlich auch mit diesem i7 passieren. Das ist dauerhaft nicht normal.

                                Die i7 werden schon mal heißer als andere, hier mal drei von meinen NUC:

                                c7387d15-3cd2-46bb-8a93-5342d32d68a6-grafik.png

                                Homoran 1 Reply Last reply Reply Quote 0
                                • Homoran
                                  Homoran Global Moderator Administrators @Meister Mopper last edited by

                                  @meister-mopper sagte in [Gelöst] CPU Temperatur von Proxmox VM:

                                  Das wird bei diesen Temperaturen vermutlich auch mit diesem i7 passieren.

                                  ich gehe eher davon aus, dass der Lüfter eingestaubt war. Das passiert da gerne. und dann die cpu überhitzt.

                                  Meister Mopper 1 Reply Last reply Reply Quote 0
                                  • Meister Mopper
                                    Meister Mopper @Homoran last edited by

                                    @homoran
                                    Jup, da achte ich auch immer drauf. Bei steigenden Temperaturen muss ausgebaut und durchgepustet werden.

                                    Homoran Basti97 2 Replies Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @Meister Mopper last edited by

                                      @meister-mopper...und da kommt vielleicht viel raus. traut man dem kleinen Ding gar nicht zu

                                      C 1 Reply Last reply Reply Quote 0
                                      • C
                                        ChrisXY @Homoran last edited by

                                        Ich glaub das der Lüfter von meinem alten NUC ganz ausgefallen ist. Will die Temperaturen nicht wissen da der NUC damals locker 1 Jahr lang bei 90% CPU gelaufen ist.

                                        Der jetzt ist ganz neu 1 Tag alt .. und dann schon diese Temperaturen sehr komisch. Hab gedacht die haben ein Schutz und der NUC schaltet sich aus .. das passiert wohl nicht.

                                        Zum Thema: Hab nun den INFO Adapter Aktiviert. Hier bekomme ich alle Temperaturen über Proxmox vom IntelNuc. Das reicht mir.

                                        opossum 1 Reply Last reply Reply Quote 0
                                        • opossum
                                          opossum @ChrisXY last edited by opossum

                                          Hallo,

                                          sorry, wenn ich mich hier reinhänge. Ich habe das Problem der Temperaturen bei meinem NUC 10i7 gelöst, in dem ich das Gehäuse gewechselt habe. Es gibt da für die NUC's Gehäuse von AKASA, das AKASA PLATO X8 zum Beispiel ist für einen 8i7 (Klick), das AKASA TURING FX GEHÄUSE (Klick) ist für einen 10i7. Zugegeben, die Gehäuse sind nicht preiswert. Aber völlig Lüfterlos, meine CPU-Temperaturen bewegen sich zwischen 30°C und 45 °C.
                                          Bin auch schon wieder wech.

                                          1 Reply Last reply Reply Quote 1
                                          • C
                                            ChrisXY @Dr. Bakterius last edited by ChrisXY

                                            @dr-bakterius tjaa ich musste nun von LXC auf eine VM wechseln .. dadurch bekommt der info Adapter keine Temperatur werte mehr ..

                                            Also wieder beim Script bekomme aber als Ausgabe immer nur /A

                                            Das hier liefert was brauchbares:
                                            sensors | grep Package -m 1 | awk '{print $4}' | awk '{print substr($1, length($0)-6,2)}'

                                            Meister Mopper 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            917
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            blockly javascript monitoring
                                            31
                                            129
                                            20230
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo