NEWS
iob diag - Skript
-
@thomas-braun sagte in iob diag - Skript:
Und das ist ein Multihost-System?
Nein, wollte damit nur mitteilen, das bei mir weniger steht als bei dir. So wie ich das verstanden habe hast du auch kein Mutihorst
-
@thomas-braun JS 4.0.24
Admin 6.4.3
-
@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 voniobroker status all
anschaust wird da auch mehr stehen.Die Frage ist mehr, warum bei @wendy2702 gar keine Werte dazu auffindbar sind.
-
Ist ja aktueller Stand.
Ich frickel hier mit js-controller5.0.1-alpha.0-20230406-4552d569
herum.
Ist das etwa damit erst eingeführt worden? -
@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/
-
@wendy2702
Warum hast du 3 admin ?
Nur mal so zur Info. -
Aber auch mit false.
Schade, ich hatte gedacht/erwartet, man könnte damit ein Multihost-Setup erkennen. -
@bahnuhr historisch gewachsen da es früher mal drei einzelne Installation waren.
@Thomas-Braun : ja, merkwürdig das da false steht.
-
habe auch ein multihost
Und bei mir steht auch falseMULTIHOSTSERVICE/enabled: false MULTIHOSTSERVICE/secure: true MULTIHOSTSERVICE/password: $/aes-192-cbc:08dab1f MULTIHOSTSERVICE/persist: false
-
@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.
-
Habs in Docker in nem Container auch mal laufen lassen.
Wird auch false angezeigt, obwohl es ein Multihostsystem ist.
-
Ja, der Code funktioniert nicht. Ist im github auch schon wieder verschwunden.
-
Feilst Du da noch einer Lösung ?
-
Im Moment sehe ich keine Möglichkeit das verlässlich abzugreifen. Vor allen Dingen nicht von 'extern' über ein bash-skript.
-
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,
-
@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. -
Ich kann da ja mal true reinballern und sehen was dein Skript macht.
Die Frage ist, wer korrigiert den Fehler in der iobroker.json? -
es gibt auch noch den Befehl
iob multihost status
-
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
-
Was hat das mit persistent.....auf sich?
Sollte da enable stehen?