Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. iob diag - Skript

    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

    iob diag - Skript

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @emil70 last edited by

      @emil70 sagte in iob diag - Skript:

      Nein, wollte damit nur mitteilen, das bei mir weniger steht als bei dir.

      Das ist klar, mit dem grep wird ja auch nur die interessante Zeile aus dem ganzen Wust an Informationen rausgepickt. Wenn du dir die vollständige Version von iobroker status all anschaust wird da auch mehr stehen.

      Die Frage ist mehr, warum bei @wendy2702 gar keine Werte dazu auffindbar sind.

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

        @wendy2702

        Ist ja aktueller Stand.
        Ich frickel hier mit js-controller 5.0.1-alpha.0-20230406-4552d569 herum.
        Ist das etwa damit erst eingeführt worden?

        1 Reply Last reply Reply Quote 0
        • wendy2702
          wendy2702 @Thomas Braun last edited by

          @thomas-braun mal auf einem Slave ausgeführt kommt die Multihost Info

          
          pi@pi-iobroker:~ $ iob status all
          iobroker is running on this host.
          
          At least one iobroker host is running.
          
          Instance "admin.0" is running
          Instance "admin.1" is running
          Instance "admin.2" is not running
          Instance "daswetter.0" is not running
          Instance "dwd.0" is not running
          Instance "email.0" is running
          Instance "enigma2.0" is running
          Instance "feiertage.0" is not running
          Instance "flot.0" is not running
          Instance "fritzbox.0" is running
          Instance "harmony.0" is running
          Instance "history.0" is running
          Instance "hm-rega.0" is running
          Instance "hm-rpc.0" is running
          Instance "hm-rpc.1" is running
          Instance "hm-rpc.2" is running
          Instance "hue.0" is running
          Instance "ical.0" is not running
          Instance "ical.1" is not running
          Instance "ical.2" is not running
          Instance "icons-addictive-flavour-png.0" is not running
          Instance "icons-fatcow-hosting.0" is not running
          Instance "icons-icons8.0" is not running
          Instance "icons-material-png.0" is not running
          Instance "icons-material-svg.0" is not running
          Instance "icons-mfd-png.0" is not running
          Instance "icons-mfd-svg.0" is not running
          Instance "icons-open-icon-library-png.0" is not running
          Instance "icons-ultimate-png.0" is not running
          Instance "javascript.0" is running
          Instance "javascript.1" is running
          Instance "javascript.2" is running
          Instance "js2fs.0" is not running
          Instance "modbus.0" is running
          Instance "modbus.2" is running
          Instance "modbus.3" is running
          Instance "modbus.4" is not running
          Instance "musiccast.0" is not running
          Instance "nut.0" is not running
          Instance "ping.0" is running
          Instance "rpi2.0" is not running
          Instance "rpi2.1" is not running
          Instance "sayit.0" is running
          Instance "simple-api.0" is running
          Instance "smartmeter.0" is running
          Instance "tankerkoenig.0" is running
          Instance "telegram.0" is running
          Instance "tr-064.0" is not running
          Instance "vis-bars.0" is not running
          Instance "vis-canvas-gauges.0" is not running
          Instance "vis-colorpicker.0" is not running
          Instance "vis-fancyswitch.0" is not running
          Instance "vis-google-fonts.0" is not running
          Instance "vis-hqwidgets.0" is not running
          Instance "vis-jqui-mfd.0" is not running
          Instance "vis-justgage.0" is not running
          Instance "vis-keyboard.0" is not running
          Instance "vis-metro.0" is not running
          Instance "vis-plumb.0" is not running
          Instance "vis-rgraph.0" is not running
          Instance "vis-timeandweather.0" is not running
          Instance "vis.0" is not running
          Instance "weatherunderground.0" is not running
          Instance "web.0" is running
          Instance "yahka.0" is running
          Instance "yahka.1" is running
          Instance "yamaha.0" is running
          Instance "yr.0" is not running
          Instance "yahka.2" is running
          Instance "trashschedule.0" is running
          Instance "vis-material-webfont.0" is not running
          Instance "vis-materialdesign.0" is not running
          Instance "vis-material.0" is not running
          Instance "influxdb.0" is running
          Instance "vis-inventwo.0" is running
          Instance "vis-icontwo.0" is not running
          Instance "yahka.3" is not running
          Instance "homeconnect.0" is not running
          Instance "hue-extended.0" is not running
          Instance "linux-control.0" is running
          Instance "yahka.4" is running
          Instance "socketio.0" is running
          Instance "birthdays.0" is not running
          Instance "birthdays.1" is not running
          Instance "pushover.0" is not running
          Instance "alias-manager.0" is not running
          Instance "discovery.0" is not running
          Instance "net-tools.0" is not running
          Instance "sayit.1" is not running
          Instance "modbus.5" is running
          Instance "enocean.0" is running
          Instance "modbus.1" is running
          Instance "shuttercontrol.0" is running
          Instance "energiefluss.0" is running
          Instance "ws.0" is running
          Instance "web.1" is running
          Instance "backitup.0" is not running
          Instance "modbus.6" is not running
          Instance "shelly.0" is running
          Instance "sourceanalytix.0" is running
          Instance "roborock.0" is not running
          Instance "vis-2-beta.0" is running
          Instance "vis-2-widgets-material.0" is not running
          Instance "vis-2-widgets-energy.0" is not running
          Instance "vis-2-widgets-gauges.0" is not running
          Instance "smartstate.0" is running
          Instance "smartmeter.1" is not running
          Instance "energiefluss.1" is not running
          
          SYSTEM/memoryLimitMB: 0
          SYSTEM/hostname:
          SYSTEM/statisticsInterval: 15000
          SYSTEM/checkDiskInterval: 300000
          SYSTEM/instanceStartInterval: 2000
          SYSTEM/compact: false
          SYSTEM/allowShellCommands: false
          SYSTEM/memLimitWarn: 100
          SYSTEM/memLimitError: 50
          MULTIHOSTSERVICE/enabled: false
          MULTIHOSTSERVICE/secure: true
          MULTIHOSTSERVICE/password:
          OBJECTS/type: jsonl
          OBJECTS/host: 192.168.178.18
          OBJECTS/port: 9001
          OBJECTS/noFileCache: false
          OBJECTS/maxQueue: 1000
          OBJECTS/connectTimeout: 5000
          OBJECTS/writeFileInterval: 5000
          OBJECTS/OPTIONS/retry_max_count: 19
          OBJECTS/OPTIONS/db: 0
          OBJECTS/OPTIONS/family: 0
          OBJECTS/OPTIONS/retryStrategy: reconnectCount => {
                      if (!ready && initError && ignoreErrors) {
                          return new Error('No more tries');
                      }
                      if (this.stop) {
                          return new Error('Client has stopped ... no retries anymore');
                      }
                      if (ready && reconnectCount >= retry_max_count) {
                          return new Error('Stop trying to reconnect');
                      }
                      // A function that receives an options object as parameter including the retry attempt,
                      // the total_retry_time indicating how much time passed since the last time connected,
                      // the error why the connection was lost and the number of times_connected in total.
                      // If you return a number from this function, the retry will happen exactly after that
                      // time in milliseconds. If you return a non-number, no further retry will happen and
                      // all offline commands are flushed with errors. Return an error to return that
                      // specific error to all offline commands.
          
                      if (!ready) {
                          return 300;
                      } else {
                          return retry_max_delay;
                      }
                      /*if (options.error.code === 'ECONNREFUSED') {
                          // End reconnecting on a specific error and flush all commands with a individual error
                          return new Error('The server refused the connection');
                      }
                      if (options.total_retry_time > 1000 * 60 * 60) {
                          // End reconnecting after a specific timeout and flush all commands with a individual error
                          return new Error('Retry time exhausted');
                      }
                      if (options.times_connected > 10) {
                          // End reconnecting with built in error
                          return undefined;
                      }
                      // reconnect after
                      return Math.max(options.attempt * 100, 3000);*/
                  }
          OBJECTS/OPTIONS/enableReadyCheck: true
          OBJECTS/OPTIONS/host: 192.168.178.18
          OBJECTS/OPTIONS/port: 9001
          OBJECTS/OPTIONS/autoResubscribe: false
          OBJECTS/OPTIONS/connectionName:
          OBJECTS/BACKUP/disabled: false
          OBJECTS/BACKUP/files: 24
          OBJECTS/BACKUP/hours: 48
          OBJECTS/BACKUP/period: 120
          OBJECTS/BACKUP/path:
          STATES/type: jsonl
          STATES/host: 192.168.178.18
          STATES/port: 9000
          STATES/connectTimeout: 5000
          STATES/writeFileInterval: 30000
          STATES/OPTIONS/retry_max_count: 19
          STATES/OPTIONS/db: 0
          STATES/OPTIONS/family: 0
          STATES/OPTIONS/retryStrategy: reconnectCount => {
                      if (!ready && initError) {
                          return new Error('No more tries');
                      }
                      if (this.stop) {
                          return new Error('Client has stopped ... no retries anymore');
                      }
                      if (ready && reconnectCount >= retry_max_count) {
                          return new Error('Stop trying to reconnect');
                      }
                      // A function that receives an options object as parameter including the retry attempt,
                      // the total_retry_time indicating how much time passed since the last time connected,
                      // the error why the connection was lost and the number of times_connected in total.
                      // If you return a number from this function, the retry will happen exactly after that
                      // time in milliseconds. If you return a non-number, no further retry will happen and
                      // all offline commands are flushed with errors. Return an error to return that
                      // specific error to all offline commands.
          
                      if (!ready) {
                          return 300;
                      }
                      return retry_max_delay;
                      /*if (options.error.code === 'ECONNREFUSED') {
                          // End reconnecting on a specific error and flush all commands with a individual error
                          return new Error('The server refused the connection');
                      }
                      if (options.total_retry_time > 1000 * 60 * 60) {
                          // End reconnecting after a specific timeout and flush all commands with a individual error
                          return new Error('Retry time exhausted');
                      }
                      if (options.times_connected > 10) {
                          // End reconnecting with built in error
                          return undefined;
                      }
                      // reconnect after
                      return Math.max(options.attempt * 100, 3000);*/
                  }
          STATES/OPTIONS/enableReadyCheck: true
          STATES/OPTIONS/host: 192.168.178.18
          STATES/OPTIONS/port: 9000
          STATES/OPTIONS/autoResubscribe: false
          STATES/OPTIONS/connectionName:
          STATES/BACKUP/disabled: false
          STATES/BACKUP/files: 24
          STATES/BACKUP/hours: 48
          STATES/BACKUP/period: 120
          STATES/BACKUP/path:
          STATES/maxQueue: 1000
          LOG/level: info
          LOG/maxDays: 7
          LOG/noStdout: true
          LOG/TRANSPORT/FILE1/type: file
          LOG/TRANSPORT/FILE1/enabled: true
          LOG/TRANSPORT/FILE1/filename: log/iobroker
          LOG/TRANSPORT/FILE1/fileext: .log
          LOG/TRANSPORT/SYSLOG1/type: syslog
          LOG/TRANSPORT/SYSLOG1/enabled: false
          LOG/TRANSPORT/SYSLOG1/host: localhost
          LOG/TRANSPORT/SYSLOG1/protocol: udp4
          LOG/TRANSPORT/SYSLOG1/localhost: iobroker
          LOG/TRANSPORT/SEQ1/type: seq
          LOG/TRANSPORT/SEQ1/enabled: false
          LOG/TRANSPORT/SEQ1/serverUrl: http://IP:PORT
          LOG/TRANSPORT/SEQ1/apiKey:
          dataDir: ../../iobroker-data/
          
          
          bahnuhr Thomas Braun 2 Replies Last reply Reply Quote 0
          • bahnuhr
            bahnuhr Forum Testing Most Active @wendy2702 last edited by

            @wendy2702
            Warum hast du 3 admin ?
            Nur mal so zur Info.

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

              @wendy2702

              Aber auch mit false.
              Schade, ich hatte gedacht/erwartet, man könnte damit ein Multihost-Setup erkennen.

              bahnuhr 1 Reply Last reply Reply Quote 0
              • wendy2702
                wendy2702 @bahnuhr last edited by

                @bahnuhr historisch gewachsen da es früher mal drei einzelne Installation waren.

                @Thomas-Braun : ja, merkwürdig das da false steht.

                1 Reply Last reply Reply Quote 0
                • bahnuhr
                  bahnuhr Forum Testing Most Active @Thomas Braun last edited by

                  @thomas-braun
                  @wendy2702

                  habe auch ein multihost
                  Und bei mir steht auch false

                  MULTIHOSTSERVICE/enabled: false
                  MULTIHOSTSERVICE/secure: true
                  MULTIHOSTSERVICE/password: $/aes-192-cbc:08dab1f
                  MULTIHOSTSERVICE/persist: false
                  
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @bahnuhr last edited by Thomas Braun

                    @bahnuhr @wendy2702 @emil70
                    Danke fürs nachschauen.

                    Aber so kann ich den Punkt für iob diag leider nicht brauchen. Muss ich mal nach was anderem schauen.

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

                      @thomas-braun

                      Habs in Docker in nem Container auch mal laufen lassen.

                      Wird auch false angezeigt, obwohl es ein Multihostsystem ist.

                      8afbd037-fcdc-4453-aac1-0bcdf8a0398c-grafik.png

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

                        @haselchen

                        Ja, der Code funktioniert nicht. Ist im github auch schon wieder verschwunden.

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

                          @thomas-braun

                          Feilst Du da noch einer Lösung ?

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

                            @haselchen

                            Im Moment sehe ich keine Möglichkeit das verlässlich abzugreifen. Vor allen Dingen nicht von 'extern' über ein bash-skript.

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

                              @thomas-braun

                              Lustigerweise, ich weiss ja nicht ob meine Vorredner da nachgesehen haben,
                              steht in der iobroker.json das schon falsch drin.

                              "multihostService": {
                                  "enabled": false,
                                  "secure": true,
                              
                              Thomas Braun andre 2 Replies Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @haselchen last edited by

                                @haselchen
                                Ja, das dürfte die Ursache dafür sein. Also grundsätzlich funktioniert der Abruf der Info schon, nur ist die Info selber falsch.

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

                                  @thomas-braun

                                  Ich kann da ja mal true reinballern und sehen was dein Skript macht.
                                  Die Frage ist, wer korrigiert den Fehler in der iobroker.json?

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    fastfoot last edited by

                                    es gibt auch noch den Befehl iob multihost status

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

                                      @fastfoot

                                      Okay, ich greppe im Skript danach.

                                      iobroker status all | grep MULTIHOSTSERVICE/enabled
                                      

                                      vielleicht kann @haselchen mal beides auf seinem Multihost-System ausführen?

                                      iob multihost status
                                      
                                      Glasfaser 1 Reply Last reply Reply Quote 0
                                      • haselchen
                                        haselchen Most Active last edited by

                                        @thomas-braun

                                        731e3b3b-c34f-4442-b223-73702017c063-grafik.png

                                        Was hat das mit persistent.....auf sich?
                                        Sollte da enable stehen?

                                        1 Reply Last reply Reply Quote 0
                                        • Glasfaser
                                          Glasfaser @Thomas Braun last edited by

                                          @thomas-braun sagte in iob diag - Skript:

                                          iob multihost status

                                          hatten wir schonmal ganz am Anfang !

                                          https://forum.iobroker.net/post/884438

                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • andre
                                            andre Developer @haselchen last edited by

                                            @haselchen sagte in iob diag - Skript:

                                            @thomas-braun

                                            Lustigerweise, ich weiss ja nicht ob meine Vorredner da nachgesehen haben,
                                            steht in der iobroker.json das schon falsch drin.

                                            "multihostService": {
                                                "enabled": false,
                                                "secure": true,
                                            

                                            Das ist nicht lustigerweise so und auch nicht falsch. 🙂
                                            Im Docker Container wird schlicht nicht mit dem "multihostService" gearbeitet.

                                            MfG,
                                            André

                                            haselchen Thomas Braun 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            502
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            49
                                            738
                                            149037
                                            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