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.
    • Meister Mopper
      Meister Mopper @crunchip last edited by

      @crunchip sagte in Test Adapter Linux Control v1.x.x:

      proxmox macht man aber ein dist-upgrade

      Ja klar, an solch sensible Server gehe ich auch selbst ran (auch mit dist-upgrade und reboot nach Kernelupdate und erst dann autoremove) 😉 .

      Hauptsächlich nutze ich die Visu, um einen Überblick über vorhandene Updates zu haben. Meistens geht's dann mit ssh weiter.

      @Basti97
      Die Symbole stammen von dem icons-mfd-png Adapter und werden mit diesem widget bedient:

      [{"tpl":"tplHqButton","data":{"oid":"linux-control.0.checkmk.control.aptUpdate","min":"false","max":"true","timeAsInterval":"true","infoLeftFontSize":"12","infoFontRightSize":"12","gestures-offsetX":0,"gestures-offsetY":0,"signals-cond-0":"==","signals-val-0":"true","signals-icon-0":"/icons-mfd-png/control_arrow_down.png","signals-icon-size-0":"90","signals-blink-0":false,"signals-horz-0":"-38","signals-vert-0":"-50","signals-hide-edit-0":false,"signals-cond-1":"==","signals-val-1":"false","signals-icon-1":"/icons-mfd-png/control_arrow_down.png","signals-icon-size-1":"90","signals-blink-1":false,"signals-horz-1":"-38","signals-vert-1":"-50","signals-hide-edit-1":false,"signals-cond-2":"==","signals-val-2":true,"signals-icon-2":"/vis.0/projektx/lowbattery.png","signals-icon-size-2":0,"signals-blink-2":false,"signals-horz-2":"0","signals-vert-2":0,"signals-hide-edit-2":false,"pushButton":false,"usejQueryStyle":false,"g_visibility":false,"styleActive":"hq-button-no-background","name":"Restart_Icon","infoLeftPaddingLeft":"15","infoLeftPaddingRight":"50","infoRightPaddingRight":"15","gestures-swipeLeft-limit":"-1","gestures-rotateLeft-limit":"2","styleNormal":"hq-button-no-background","testActive":false,"lc-type":"last-change","lc-is-interval":true,"lc-is-moment":false,"lc-format":"","lc-position-vert":"top","lc-position-horz":"right","lc-offset-vert":0,"lc-offset-horz":0,"lc-font-size":"12px","lc-font-family":"","lc-font-style":"","lc-bkg-color":"","lc-color":"","lc-border-width":"0","lc-border-style":"","lc-border-color":"","lc-border-radius":10,"lc-zindex":0,"descriptionLeft":"Side brush lifetime reset","descriptionLeftDisabled":true,"visibility-cond":"==","visibility-val":1,"visibility-groups-action":"hide","signals-oid-0":"linux-control.0.checkmk.info.is_online","signals-oid-1":"linux-control.0.checkmk.info.is_online","g_center":true,"iconName":"","btIconWidth":"56","offsetAuto":"true","leftOffset":"15","topOffset":"55"},"style":{"left":"13px","top":"81px","width":"50px","height":"50px","border-width":"2px","border-style":"hidden","border-color":"#212121","border-radius":"10px","z-index":1,"text-align":"center","font-size":"small","box-shadow":"","background":"#303030","background-color":"#303030"},"widgetSet":"hqwidgets"}]
      

      1 Reply Last reply Reply Quote 0
      • R
        Rushmed Most Active last edited by

        Hallo,

        ich bekomme im LOG immer den folgenden Fehler:

        
        linux-control.0
        2022-05-18 18:20:48.635	error	[cmdAptUpdate] UDM_Pro (192.168.178.1:22): response error: grep: /var/log/dpkg.log: No such file or directory, stack: ResponseError: [cmdAptUpdate] UDM_Pro (192.168.178.1:22): grep: /var/log/dpkg.log: No such file or directory at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:872:26) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:95:5) at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:780:19) at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:607:5) at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:79:5)
        
        linux-control.0
        2022-05-18 18:20:48.621	error	[cmdAptUpdate] UDM_Pro (192.168.178.1:22): response error: sh: dpkg-query: not found, stack: ResponseError: [cmdAptUpdate] UDM_Pro (192.168.178.1:22): sh: dpkg-query: not found at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:872:26) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:95:5) at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:770:18) at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:607:5) at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:79:5)
        
        linux-control.0
        2022-05-18 18:20:48.608	error	[cmdAptUpdate] UDM_Pro (192.168.178.1:22): response error: sh: apt-get: not found, stack: ResponseError: [cmdAptUpdate] UDM_Pro (192.168.178.1:22): sh: apt-get: not found at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:872:26) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:95:5) at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:704:21) at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:607:5) at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:79:5)
        

        Einstellungen:
        3541bdaf-5a3f-408f-9239-d318861cc859-grafik.png

        7253dcfd-2145-4018-8ca1-9015858bc475-grafik.png

        Keine Services, Ordner oder Befehle eingetragen.

        Was kann das bedeuten?

        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @Rushmed last edited by

          @rushmed

          Welche Distribution läuft auf dem Host? dpkg ist was aus der Debian-Ecke.
          Kein Debian = Kein dpkg.

          R 1 Reply Last reply Reply Quote 0
          • R
            Rushmed Most Active @Thomas Braun last edited by

            @thomas-braun Hab nen Raspi mit PiOS64. Basiert das nicht auf Debian?

            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Rushmed last edited by

              @rushmed sagte in Test Adapter Linux Control v1.x.x:

              Doch.

              R 1 Reply Last reply Reply Quote 0
              • R
                Rushmed Most Active @Thomas Braun last edited by

                @thomas-braun Ok, kann ich die Fehlermeldung dennoch irgendwie loswerden?

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Rushmed last edited by

                  @rushmed

                  Du fragst doch offenbar da UDM Pro ab.
                  Da läuft mit Sicherheit kein (vollständiges) Debian drauf. Die Abfrage läuft da ins Leere.

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    Rushmed Most Active @Thomas Braun last edited by

                    @thomas-braun Ach ja, das stimmt. Hab jetzt alles deaktiviert was ich nicht brauche und es scheint so zu gehen.

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

                      @rushmed
                      Also bei der UDM P funktioniert quasi keine der eingebauten standardmäßigen abfragen. Da kann man den Adapter nur nutzen um gezielt Befehle abzusetzen. Zb kopiere ich damit den Auto Update Ordner auf meinen Backup Server.

                      Und auch aufpassen was man hier macht, im Zweifel kann man sich das Ding auch zerschießen!

                      Meister Mopper R 2 Replies Last reply Reply Quote 0
                      • Meister Mopper
                        Meister Mopper @Scrounger last edited by

                        @scrounger sagte in Test Adapter Linux Control v1.x.x:

                        Zb kopiere ich damit den Auto Update Ordner auf meinen Backup Server.

                        Wie machst Du das? Ich kann den mnt/data Ordner in der cli nicht einmal sehen.

                        1 Reply Last reply Reply Quote 0
                        • R
                          Rushmed Most Active @Scrounger last edited by

                          @scrounger Interessant, könnte ich mir damit auch regelmäßig die Backups der UDM auf meinem Raspi sichern?

                          1 Reply Last reply Reply Quote 0
                          • D
                            darkiop Most Active last edited by

                            @rushmed Ja klar, bei UniFi OS Geräten liegen die Backups unter

                            /mnt/data/unifi-os/unifi/data/backup
                            

                            Kopieren kannst du Sie z.B. mit rsync oder scp.

                            R 1 Reply Last reply Reply Quote 0
                            • R
                              Rushmed Most Active @darkiop last edited by

                              @darkiop Klingt toll, hast du evtl. ein Script dafür?

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

                                @rushmed
                                Ich ziehe mittlerweile mit scp die Backups auf einen Raspberry Pi und von dort synchronisiere ich über rclone in meinem google drive.

                                Hierzu muss der public key des Raspberry auf die udmpro kopiert werden, damit das login ohne Passwort funktioniert. Blöd nur, dass die udmpro den key bei einem reboot vergisst.
                                Hierzu gibt es aber auch einen workaround bei github (udm-boot).

                                1 Reply Last reply Reply Quote 0
                                • David G.
                                  David G. last edited by David G.

                                  Kann mir zufällig jemand sagen, wie ich mit dem Adapter die CPU Auslastung auslesen kann?

                                  Hoffe, das wurde hier nich nicht gefragt, hab nichts gefunden.

                                  Die Befehle die ich kenne (zB top) spucken ja viel zu viele Infos aus.

                                  EDIT:
                                  Hab hab was gefunden:

                                  echo $[100-$(vmstat 1 2|tail -1|awk '{print $15}')]
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    haumichel last edited by

                                    Schönen guten Abend,

                                    Linux Control läuft bei mir so gut, dass ich ihn, glaub ich, ein Jahr schon nicht mehr beachtet und somit auch alles vergessen habe. 😢
                                    Ich möchte unter "meine Befehle" eine neue DB Abfrage ans PiHole senden.
                                    Die eingetragene "Datenpunkt-ID" erscheint nicht in den Objekten und Linux Control mault im Log rum, dass kein Objekt da ist.

                                    State "linux-control.0.PiHole.wha_used" has no existing object, this might lead to an error in future versions

                                    Die Datenpunkte werden doch eigentlich automatisch erstellt, oder?

                                    Dankeschön.....

                                    H 1 Reply Last reply Reply Quote 0
                                    • H
                                      haumichel @haumichel last edited by

                                      @haumichel

                                      Hat sich erledigt, mein Fehler.
                                      Im DP sollte natürlich auch ein Inhalt sein.
                                      Kaum macht man's richtig, dann klappts......

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        Kuddel @Scrounger last edited by

                                        @scrounger in wie weit kann man ESXi Systeme abfragen?

                                        Ich habe alle DPs deaktiviert und will nur einen Button für meinen ESX Host hinterlegen, damit ich den Host, wenn die USV leer ist, herunterfahren kann.

                                        SSH auf dem ESX Host ist aktiv.

                                        Der Adapter meldet:

                                        	[getConnection] error: All configured authentication methods failed, stack: Error: All configured authentication methods failed at doNextAuth (/opt/iobroker/node_modules/node-ssh/node_modules/ssh2/lib/client.js:413:17) at tryNextAuth (/opt/iobroker/node_modules/node-ssh/node_modules/ssh2/lib/client.js:484:5) at SSH2Stream.onUSERAUTH_FAILURE (/opt/iobroker/node_modules/node-ssh/node_modules/ssh2/lib/client.js:597:5) at SSH2Stream.emit (node:events:527:28) at parsePacket (/opt/iobroker/node_modules/node-ssh/node_modules/ssh2-streams/lib/ssh.js:3682:10) at SSH2Stream._transform (/opt/iobroker/node_modules/node-ssh/node_modules/ssh2-streams/lib/ssh.js:701:13) at SSH2Stream.Transform._write (node:internal/streams/transform:184:23) at writeOrBuffer (node:internal/streams/writable:389:12) at _write (node:internal/streams/writable:330:10) at SSH2Stream.Writable.write (node:internal/streams/writable:334:10) at Socket.ondata (node:internal/streams/readable:754:22) at Socket.emit (node:events:527:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • mickym
                                          mickym Most Active last edited by

                                          So nachdem ich nun auch seit einiger Zeit Nutzer dieses tollen Adapters bin - hier mal die Warnungen für die es ja auch schon ein gitHub Issue gibt: https://github.com/Scrounger/ioBroker.linux-control/issues/39

                                          Taucht bei mir immer nach Neustart des Adapters auf.

                                          022-07-30 13:20:42.088 - warn: linux-control.0 (2339) Object linux-control.0.command.host is invalid: obj.common.states has an invalid type! Expected "object", received "string"
                                          2022-07-30 13:20:42.092 - warn: linux-control.0 (2339) This object will not be created in future versions. Please report this to the developer.
                                          2022-07-30 13:20:42.115 - info: linux-control.0 (2339) starting. Version 1.1.3 in /opt/iobroker/node_modules/iobroker.linux-control, node: v16.16.0, js-controller: 4.0.23
                                          2022-07-30 13:20:42.263 - warn: linux-control.0 (2339) Object linux-control.0.command.host is invalid: obj.common.states has an invalid type! Expected "object", received "string"
                                          2022-07-30 13:20:42.265 - warn: linux-control.0 (2339) This object will not be created in future versions. Please report this to the developer.
                                          
                                          liv-in-sky created this issue in Scrounger/ioBroker.linux-control

                                          closed warning im log #39

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

                                            @Scrounger
                                            Hallo Scrounger. Ich habe deinen Adapter mal wieder installiert da ich ein ihn für ein Projekt nutzen möchte.
                                            Kurz gesagt mein Problem ist wenn ich einen Host im Adapter anlege und den Benutzer root mit Passwort nutze, funktioniert alles wie es soll. Benutze ich den Benutzer osmc der sudo Rechte hat. Funktioniert kein Button und keine Datenabfrage. Wo mache ich einen Fehler? Nutze Sudo ist natürlich angehakt im Adapter.
                                            Distribution ist Debian Buster / Osmc

                                            linux-control.0
                                            2022-09-12 16:38:09.164	info	successful received data from Osmc_Schlafzimmer (192.168.178.79:3332)
                                            
                                            linux-control.0
                                            2022-09-12 16:38:05.723	error	[cmdAptUpdate] Osmc_Schlafzimmer (192.168.178.79:3332): response error: bash: column: command not found, stack: ResponseError: [cmdAptUpdate] Osmc_Schlafzimmer (192.168.178.79:3332): bash: column: command not found at LinuxControl.sendCommand (/opt/iobroker/node_modules/iobroker.linux-control/main.js:872:26) at processTicksAndRejections (node:internal/process/task_queues:96:5) at LinuxControl.cmdAptUpdate (/opt/iobroker/node_modules/iobroker.linux-control/main.js:707:18) at LinuxControl.updateInfos (/opt/iobroker/node_modules/iobroker.linux-control/main.js:607:5) at LinuxControl.refreshHost (/opt/iobroker/node_modules/iobroker.linux-control/main.js:79:5)
                                            
                                            linux-control.0
                                            2022-09-12 16:37:47.050	warn	[distributionInfo] Osmc_Schlafzimmer (192.168.178.79:3332): property 'VERSION_CODENAME' not exist in result!
                                            
                                            linux-control.0
                                            2022-09-12 16:37:46.585	info	getting data from Osmc_Schlafzimmer (192.168.178.79:3332, Adapter start)
                                            
                                            linux-control.0
                                            2022-09-12 16:37:46.571	warn	This object will not be created in future versions. Please report this to the developer.
                                            
                                            linux-control.0
                                            2022-09-12 16:37:46.570	warn	Object linux-control.0.command.host is invalid: obj.common.states has an invalid type! Expected "object", received "string"
                                            
                                            linux-control.0
                                            2022-09-12 16:37:46.513	info	starting. Version 1.1.3 in /opt/iobroker/node_modules/iobroker.linux-control, node: v16.17.0, js-controller: 4.0.23
                                            
                                            linux-control.0
                                            2022-09-12 16:37:46.504	warn	This object will not be created in future versions. Please report this to the developer.
                                            
                                            linux-control.0
                                            2022-09-12 16:37:46.503	warn	Object linux-control.0.command.host is invalid: obj.common.states has an invalid type! Expected "object", received "string"
                                            
                                            linux-control.0
                                            2022-09-12 16:37:42.842	info	Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                                            
                                            linux-control.0
                                            2022-09-12 16:37:42.841	info	terminating
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            829
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

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