Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter Linux Control v1.x.x

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Test Adapter Linux Control v1.x.x

    This topic has been deleted. Only users with topic management privileges can see it.
    • liv-in-sky
      liv-in-sky @lemuba last edited by

      @lemuba

      das ist der code - wenn der ping "falsch" zurückkommt - kommt deine meldung - ganz untem im else - wenn man es aufwendig machen will, könnte man ein script mit der ping-node machen und mal schauen, was da so kommt - aber warten wir damit lieber auf scrounger - du hast aber mal einen ping vom iobroker server ( in der console) auf die devices gemacht - ob das funktioniert - nicht nur ping vom windows-client

      irgendwas blockiert da

      if (pingResult.alive) {
         			let obj = await this.getForeignObjectAsync('system.config');
         			let password = await this.getPassword(host);
      
         			let ssh = new NodeSSH();
      
         			let options = {
         				host: host.ip,
         				port: host.port,
         				username: host.user,
         				password: password,
         				readyTimeout: parseInt(host.timeout) * 1000 || 5000
         			}
      
         			if (host.rsakey && host.rsakey.length > 0) {
         				this.log.debug(`[getConnection] Host '${host.name}' (${host.ip}:${host.port}): using rsa key for authentification`);
         				options.passphrase = password;
         				options.privateKey = host.rsakey;
         			} else if (host.useSudo) {
         				this.log.debug(`[getConnection] Host '${host.name}' (${host.ip}:${host.port}): using sudo for authentification`);
         			}
      
         			return await ssh.connect(options);
         		} else {
         			this.log.info(`[getConnection] Host '${host.name}' (${host.ip}:${host.port}) seems not to be online`);
         			return undefined;
      

      1 Reply Last reply Reply Quote 0
      • Scrounger
        Scrounger Developer @lemuba last edited by

        @lemuba
        genau das was @liv-in-sky sagt mach Mal nen Ping von deinem iob Rechner auf den Host. Wenn das auch nicht gehen sollte, dann liegt es nicht am Adapter. Evtl. Firewall rule oder sowas.
        IP Adresse ist auch wirklich korrekt?

        L 2 Replies Last reply Reply Quote 0
        • L
          lemuba @Scrounger last edited by lemuba

          @Scrounger

          Schön das meine Systeme so weit gut funktionieren 😉 - Ping von Iobroker in Richtung Weewx, sowie anders herum...:

          ping auf weewx.JPG

          ping auf iobroker.JPG

          Müssen auf dem Iobroker Host oder auf der anderen Seite noch irgendwelche weiteren Dienste laufen, oder Adapter im Iobroker? Noch habe ich Alles relativ neu/frisch... viellleicht fehlt ja noch was?

          Gruß,

          Matthias

          Scrounger 1 Reply Last reply Reply Quote 0
          • L
            lemuba @Scrounger last edited by lemuba

            @Scrounger

            Ich habe den Adapter nochmal auf meiner aktuellen Iobroker Production Instanz installiert (Diskstation 718, DietPi Debian 9 VM Instanz).
            Da funktioniert es in Richtung auf meine Weewx Instanz unter Proxmox/Esprimo Nuc...

            Ich habe nun echt keine Ahnung, warum es auf meiner Proxmox Iobroker Instanz nicht genauso laufen sollte, oder was ich noch testen könnte???

            Firewall ist weder auf Proxmox noch auf Iobroker Ebene/Container aktiviet.

            weewx OK.JPG

            weewx OK2.JPG

            liv-in-sky 1 Reply Last reply Reply Quote 0
            • Scrounger
              Scrounger Developer @lemuba last edited by Scrounger

              @lemuba sagte in Test Adapter Linux Control v0.x.x:

              Müssen auf dem Iobroker Host oder auf der anderen Seite noch irgendwelche weiteren Dienste laufen, oder Adapter im Iobroker? Noch habe ich Alles relativ neu/frisch... viellleicht fehlt ja noch was?

              Nee da muss nichts speziell installiert sein.

              @lemuba sagte in Test Adapter Linux Control v0.x.x:

              @Scrounger

              Ich habe den Adapter nochmal auf meiner aktuellen Iobroker Production Instanz installiert (Diskstation 718, DietPi Debian 9 VM Instanz).
              Da funktioniert es in Richtung auf meine Weewx Instanz unter Proxmox/Esprimo Nuc...

              Hmm sehr komisch.
              Evtl. timeout problem, stell den mal auf einen höheren Wert ein z.B. 20s.
              Könntest auch mal testen ob Pingen mit dem Ping Adapter geht.

              L 1 Reply Last reply Reply Quote 0
              • liv-in-sky
                liv-in-sky @lemuba last edited by

                @lemuba könnte es sein, dass bei deinen umstellungen gleiche ip adressen sind

                L 1 Reply Last reply Reply Quote 0
                • L
                  lemuba @liv-in-sky last edited by

                  @liv-in-sky

                  das überprüfe ich "nochmal"...

                  Meine Fritzbox: 192.168.12.1
                  DHCP über die Fritzbox ab 192.168.12.100 bis 200

                  Proxmox Server über DHCP bei 161

                  Für die Proxmox Container habe ich jetzt feste IP-Adressen vergeben im Bereich unter 100, ab 5,6,7 u.s.w

                  Fahre aber jetzt mal alles runter und boote meine Fritzbox neu - schaue dann nach was im einstelligen Bereich noch angemledet ist, da sollte aber nichts sein....

                  Chaot 1 Reply Last reply Reply Quote 0
                  • Chaot
                    Chaot @lemuba last edited by

                    @lemuba Proxmox Server über DHCP hat bei mir nicht funktioniert. Alle Container hatten Verbindungsprobleme. Obwohl diese feste IPs hatten.

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      lemuba @Scrounger last edited by lemuba

                      @liv-in-sky

                      Proxmox Server runter gefahren.
                      Fritzbox rebootet.
                      Hat nur DHCP Adressen ab 100 vergeben.

                      Proxmox Server und Container wieder hochgefahren - Fritzbox, zeigt sauber die fest vergeben Addressen 5,6,7 etc. an...
                      Ping Adapter installiert und zwei Adressen 5 Weewx und 1 Fritzbox aktiviert = FALSE 😞

                      Auf der anderen Seite läuft der Node-Red Adapter im Ibroker in alle Richtungen sauber - sendet und empfängt aus allen Adressbereichen.
                      Proxmox kommt auch sauber auf InfluxDb im Iobroker - etc., etc.
                      Auch auf der Iobroker Konsole komme ich ja sauber in alle Richtungen.

                      a) Hat sich vielleicht beim Backup einspielen was im Iobroker geschossen?
                      b) Schiesst vielleicht meine noch aktive Production Iobroker Instanz auf 192.168.12.127 (als Fest ID in Fritzbox reserviert) quer?

                      Egal, ich installiere mir nochmal einen neuen Iobroker auf Proxmox und schaue weiter. Aber nicht mehr heute...

                      Es wird sicherlich nicht am Adapter liegen und damit nun hier Offtopic - Aber vielen Dank nochmal! Auch an @Scrounger !

                      liv-in-sky 1 Reply Last reply Reply Quote 0
                      • L
                        lemuba @Chaot last edited by lemuba

                        @Chaot sagte in Test Adapter Linux Control v0.x.x:

                        @lemuba Proxmox Server über DHCP hat bei mir nicht funktioniert. Alle Container hatten Verbindungsprobleme. Obwohl diese feste IPs hatten.

                        Keiner meine Proxmox Container hat irgendwelche Verbindungsproblmen, nur Iobroker selber im Container.

                        liv-in-sky 1 Reply Last reply Reply Quote 0
                        • liv-in-sky
                          liv-in-sky @lemuba last edited by

                          @lemuba

                          du kannst auch mal in google suchen - proxmox ping not working ....

                          vielleicht gibt es da noch mehr info ?

                          L 1 Reply Last reply Reply Quote 0
                          • liv-in-sky
                            liv-in-sky @lemuba last edited by liv-in-sky

                            @lemuba

                            ohne genau zu wissen warum - im container unter options mal das nesting aktivieren und cont. neustarten

                            wenn das nix bringt, wieder rückgängig machen

                            ist nur ein versuch . kann es nicht wirklich erklären

                            1 Reply Last reply Reply Quote 0
                            • L
                              lemuba @liv-in-sky last edited by

                              @liv-in-sky sagte in Test Adapter Linux Control v0.x.x:

                              @lemuba

                              du kannst auch mal in google suchen - proxmox ping not working ....

                              vielleicht gibt es da noch mehr info ?

                              Bringt doch nichts...? In Proxmox, nach Proxmox, zwischen allen Proxmox Containern funktioniert der Ping auf der Konsole. Nur Iobroker selber und dessen Adapter haben Probleme.

                              Scrounger 1 Reply Last reply Reply Quote 0
                              • Scrounger
                                Scrounger Developer @lemuba last edited by

                                @lemuba
                                evtl. liegt das wirklich an der firewall. versuch mal das hier:
                                https://askubuntu.com/questions/6995/how-to-enable-ufw-firewall-to-allow-icmp-response

                                L 2 Replies Last reply Reply Quote 1
                                • L
                                  lemuba @Scrounger last edited by

                                  @Scrounger

                                  Mache ich... Komme aber erst wieder ab Sonntag dazu. Werde dann auch nochmal parallel eine neue frische Debian/Iobroker Installation testen. Auf Proxmox ja alles zügig erledigt.

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    lemuba @Scrounger last edited by lemuba

                                    @Scrounger @liv-in-sky

                                    Nochmal gesucht und nun gefixt! :

                                    https://github.com/ioBroker/ioBroker.ping/issues/19

                                    Lösung: sudo apt-get install iputils-ping --reinstall

                                    Habe auch gleich sicherheitshalber meine ganzeren anderen Container damit übergebügelt - keine Ahnung wann ich mir das eingefangen habe.

                                    @Christoph @Dr-Bakterius Kann es sein, das das Debian 10 Proxmox Container Template ne Macke hat? Aber Danke für Eure Arbeit letztes Jahr! 😉

                                    DrBakterius created this issue in ioBroker/ioBroker.ping

                                    closed Alle Ziele immer 'false' #19

                                    1 Reply Last reply Reply Quote 1
                                    • L
                                      lemuba last edited by lemuba

                                      Mein Nuc (Esprimo Q920) mit i5xxxxT Prozessor ist ja mit Proxmox bespielt - gibt es im Adapter einen Weg die CPU Temp als Datenpunkt zu erhalten? LMsensors hatte ich mal über die Konsole installiert und läuft auch gut...

                                      Auf der Konsole dann:

                                      watch -n 1 sensors

                                      temp.JPG

                                      liv-in-sky 1 Reply Last reply Reply Quote 0
                                      • liv-in-sky
                                        liv-in-sky @lemuba last edited by liv-in-sky

                                        @lemuba muss evtl bei dir angepasst werden - mal auf console testen - falls es nicht sofort funktioniert

                                        Image 7.png

                                        sensors | grep Package -m 1 | awk '{print $4}' | awk '{print substr($1, length($0)-6,2)}'
                                        

                                        Image 8.png

                                        L 1 Reply Last reply Reply Quote 1
                                        • L
                                          lemuba @liv-in-sky last edited by lemuba

                                          @liv-in-sky sagte in Test Adapter Linux Control v0.x.x:

                                          sensors | grep Package -m 1 | awk '{print $4}' | awk '{print substr($1, length($0)-6,2)}'

                                          Top, Danke!

                                          root@pve:~# sensors | grep Package -m 1 | awk '{print $4}' | awk '{print substr($1, length($0)-6,2)}'
                                          44
                                          root@pve:~#
                                          

                                          Gibt es da ne Matrix für, für andere Werte wie z.B. Lüfterdrehzahl?

                                          liv-in-sky 1 Reply Last reply Reply Quote 0
                                          • liv-in-sky
                                            liv-in-sky @lemuba last edited by liv-in-sky

                                            @lemuba

                                            habe keine lüfter in meinen nucs

                                            aber du hast ja den fan1 - unter sensors

                                            da müßte man das ändern können

                                            sensors | grep fan1 -m 1 | awk '{print $2}' 
                                            
                                            L 1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            852
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter control hardware linux steuern
                                            64
                                            656
                                            128607
                                            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