NEWS
Драйвер Ping
-
Это хорошо, что ты попробовал ping. При переводе на русский я забыл обновить одну ссылку.
Можешь сам заменить файл ioBroker/node_modules/iobroker.ping/admin/index.html на:
! | |
! ### PING adapter settings
! |
! #### Ping settings
! | Interval[ms]: | |
! #### Ping addresses после этого вызвать в ioBroker директории.node iobroker upload ping
Ну или дождаться вечера и я исправлю ошибку.
Спасибо.
Все сделал, кнопочка добавления хоста появилась. Добавил ардуинку, перезапустил драйвер несколько раз, но он не стартует.На вкладке "Лог" ошибки:
! system.adapter.ping.0 2015-01-14 18:57:40 error invalid mode
! host.bananapi 2015-01-14 18:57:40 info object change system.adapter.ping.0
! system.adapter.ping.0 2015-01-14 18:57:03 error invalid mode
! host.bananapi 2015-01-14 18:57:03 info object change system.adapter.ping.0
! system.adapter.ping.0 2015-01-14 18:54:43 error invalid mode
! host.bananapi 2015-01-14 18:54:43 info object change system.adapter.ping.0 ` -
Это хорошо, что ты попробовал ping. При переводе на русский я забыл обновить одну ссылку.
Можешь сам заменить файл ioBroker/node_modules/iobroker.ping/admin/index.html на:
! | |
! ### PING adapter settings
! |
! #### Ping settings
! | Interval[ms]: | |
! #### Ping addresses после этого вызвать в ioBroker директории.node iobroker upload ping
Ну или дождаться вечера и я исправлю ошибку.
Спасибо.
Все сделал, кнопочка добавления хоста появилась. Добавил ардуинку, перезапустил драйвер несколько раз, но он не стартует.На вкладке "Лог" ошибки:
! system.adapter.ping.0 2015-01-14 18:57:40 error invalid mode
! host.bananapi 2015-01-14 18:57:40 info object change system.adapter.ping.0
! system.adapter.ping.0 2015-01-14 18:57:03 error invalid mode
! host.bananapi 2015-01-14 18:57:03 info object change system.adapter.ping.0
! system.adapter.ping.0 2015-01-14 18:54:43 error invalid mode
! host.bananapi 2015-01-14 18:54:43 info object change system.adapter.ping.0
Тоже ошибка перевода. Пофиксю -
Это хорошо, что ты попробовал ping. При переводе на русский я забыл обновить одну ссылку.
Можешь сам заменить файл ioBroker/node_modules/iobroker.ping/admin/index.html на:
! | |
! ### PING adapter settings
! |
! #### Ping settings
! | Interval[ms]: | |
! #### Ping addresses после этого вызвать в ioBroker директории.node iobroker upload ping
Ну или дождаться вечера и я исправлю ошибку.
Спасибо.
Все сделал, кнопочка добавления хоста появилась. Добавил ардуинку, перезапустил драйвер несколько раз, но он не стартует.На вкладке "Лог" ошибки:
! system.adapter.ping.0 2015-01-14 18:57:40 error invalid mode
! host.bananapi 2015-01-14 18:57:40 info object change system.adapter.ping.0
! system.adapter.ping.0 2015-01-14 18:57:03 error invalid mode
! host.bananapi 2015-01-14 18:57:03 info object change system.adapter.ping.0
! system.adapter.ping.0 2015-01-14 18:54:43 error invalid mode
! host.bananapi 2015-01-14 18:54:43 info object change system.adapter.ping.0
Тоже ошибка перевода. ПофиксюНужно ещё раз деактивировать ping и снова активирвать через админку. (Просто перезапуск не поможет)
-
Установил драйвер, перешел на вкладку драйверов, добавил хосты, нажал сохранить и выйти, в логe:
! ping.0 2015-01-22 19:41:22 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:41:19 info instance system.adapter.ping.0 started with pid 3496
! host.bananapi 2015-01-22 19:41:17 info instance system.adapter.ping.0 terminated with code 0 (OK)
! ping.0 2015-01-22 19:41:17 info terminating
! host.bananapi 2015-01-22 19:41:17 info stopInstance system.adapter.ping.0 killing pid 2293
! host.bananapi 2015-01-22 19:41:17 info stopInstance system.adapter.ping.0
! host.bananapi 2015-01-22 19:41:17 info object change system.adapter.ping.0
Вроде все хорошо.Затем опять зашел в настройки драйвера, в одином из хостов поменял название и IP-адрес (даже если только адрес), сохранить и выйти, в логе пошли ошибки:
! bananapi 2015-01-22 19:49:15 info host.bananapi Restart adapter system.adapter.ping.0 because enabled
! bananapi 2015-01-22 19:49:15 error host.bananapi instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! ping.0 2015-01-22 19:49:15 error TypeError: Cannot call method 'replace' of undefined at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43 at Socket. (/opt/iobroker/lib/adapter.js:989:44) at Socket.onack
! ping.0 2015-01-22 19:49:15 error uncaught exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:49:15 info ping.0 starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! bananapi 2015-01-22 19:49:11 info host.bananapi instance system.adapter.ping.0 started with pid 5744
! host.bananapi 2015-01-22 19:48:41 info Restart adapter system.adapter.ping.0 because enabled
! host.bananapi 2015-01-22 19:48:41 error instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! TypeError: 2015-01-22 19:48:41 error at Decoder.add (/opt/iobroker/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:247:12)
! TypeError: 2015-01-22 19:48:41 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:48:41 error at Decoder. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:48:41 error at Manager.ondecoded (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:274:8)
! TypeError: 2015-01-22 19:48:41 error at Manager.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:48:41 error at Manager. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:48:41 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:219:12)
! TypeError: 2015-01-22 19:48:41 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:294:6)
! TypeError: 2015-01-22 19:48:41 error at Socket. (/opt/iobroker/lib/adapter.js:989:44)
! TypeError: 2015-01-22 19:48:41 error at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43
! TypeError: 2015-01-22 19:48:41 error Cannot call method 'replace' of undefined
! uncaught 2015-01-22 19:48:41 error exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:48:40 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:48:37 info instance system.adapter.ping.0 started with pid 5577
! host.bananapi 2015-01-22 19:48:07 info Restart adapter system.adapter.ping.0 because enabled
! host.bananapi 2015-01-22 19:48:07 error instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! TypeError: 2015-01-22 19:48:07 error at Decoder.add (/opt/iobroker/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:247:12)
! TypeError: 2015-01-22 19:48:07 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:48:07 error at Decoder. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:48:07 error at Manager.ondecoded (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:274:8)
! TypeError: 2015-01-22 19:48:07 error at Manager.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:48:07 error at Manager. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:48:07 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:219:12)
! TypeError: 2015-01-22 19:48:07 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:294:6)
! TypeError: 2015-01-22 19:48:07 error at Socket. (/opt/iobroker/lib/adapter.js:989:44)
! TypeError: 2015-01-22 19:48:07 error at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43
! TypeError: 2015-01-22 19:48:07 error Cannot call method 'replace' of undefined
! uncaught 2015-01-22 19:48:07 error exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:48:06 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:48:03 info instance system.adapter.ping.0 started with pid 5410
! host.bananapi 2015-01-22 19:47:33 info Restart adapter system.adapter.ping.0 because enabled
! host.bananapi 2015-01-22 19:47:33 error instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! TypeError: 2015-01-22 19:47:33 error at Decoder.add (/opt/iobroker/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:247:12)
! TypeError: 2015-01-22 19:47:33 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:47:33 error at Decoder. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:47:33 error at Manager.ondecoded (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:274:8)
! TypeError: 2015-01-22 19:47:33 error at Manager.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:47:33 error at Manager. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:47:33 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:219:12)
! TypeError: 2015-01-22 19:47:33 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:294:6)
! TypeError: 2015-01-22 19:47:33 error at Socket. (/opt/iobroker/lib/adapter.js:989:44)
! TypeError: 2015-01-22 19:47:33 error at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43
! TypeError: 2015-01-22 19:47:33 error Cannot call method 'replace' of undefined
! uncaught 2015-01-22 19:47:33 error exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:47:32 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:47:29 info instance system.adapter.ping.0 started with pid 5244
! host.bananapi 2015-01-22 19:46:59 info Restart adapter system.adapter.ping.0 because enabled
! host.bananapi 2015-01-22 19:46:59 error instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! TypeError: 2015-01-22 19:46:58 error at Decoder.add (/opt/iobroker/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:247:12)
! TypeError: 2015-01-22 19:46:58 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:46:58 error at Decoder. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:46:58 error at Manager.ondecoded (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:274:8)
! TypeError: 2015-01-22 19:46:58 error at Manager.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:46:58 error at Manager. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:46:58 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:219:12)
! TypeError: 2015-01-22 19:46:58 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:294:6)
! TypeError: 2015-01-22 19:46:58 error at Socket. (/opt/iobroker/lib/adapter.js:989:44)
! TypeError: 2015-01-22 19:46:58 error at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43
! TypeError: 2015-01-22 19:46:58 error Cannot call method 'replace' of undefined
! uncaught 2015-01-22 19:46:58 error exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:46:58 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:46:55 info instance system.adapter.ping.0 started with pid 5078
! host.bananapi 2015-01-22 19:46:25 info Restart adapter system.adapter.ping.0 because enabled
! host.bananapi 2015-01-22 19:46:25 error instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! TypeError: 2015-01-22 19:46:24 error at Decoder.add (/opt/iobroker/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:247:12)
! TypeError: 2015-01-22 19:46:24 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:46:24 error at Decoder. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:46:24 error at Manager.ondecoded (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:274:8)
! TypeError: 2015-01-22 19:46:24 error at Manager.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:46:24 error at Manager. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:46:24 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:219:12)
! TypeError: 2015-01-22 19:46:24 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:294:6)
! TypeError: 2015-01-22 19:46:24 error at Socket. (/opt/iobroker/lib/adapter.js:989:44)
! TypeError: 2015-01-22 19:46:24 error at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43
! TypeError: 2015-01-22 19:46:24 error Cannot call method 'replace' of undefined
! uncaught 2015-01-22 19:46:24 error exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:46:24 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:46:21 info instance system.adapter.ping.0 started with pid 4912
! host.bananapi 2015-01-22 19:46:19 info instance system.adapter.ping.0 terminated with code 0 (OK)
! ping.0 2015-01-22 19:46:19 info terminating
! host.bananapi 2015-01-22 19:46:18 info stopInstance system.adapter.ping.0 killing pid 4265
! host.bananapi 2015-01-22 19:46:18 info stopInstance system.adapter.ping.0
! host.bananapi 2015-01-22 19:46:18 info object change system.adapter.ping.0
Редактирование хоста со старыми настройками (вернуть значения) не помогает, перезагрузка драйвера не помогает. Только полная очистка настроек, потом удаление объекта "bananapi" из папки "ping.0" на вкладке "Объекты" и полная перезагрузка сервера. Затем добавление нужных хостов для сканирования в драйвер и его запуск - так срабатывает…
50_pic_101.jpg
50_pic_100.jpg -
Установил драйвер, перешел на вкладку драйверов, добавил хосты, нажал сохранить и выйти, в логe:
! ping.0 2015-01-22 19:41:22 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:41:19 info instance system.adapter.ping.0 started with pid 3496
! host.bananapi 2015-01-22 19:41:17 info instance system.adapter.ping.0 terminated with code 0 (OK)
! ping.0 2015-01-22 19:41:17 info terminating
! host.bananapi 2015-01-22 19:41:17 info stopInstance system.adapter.ping.0 killing pid 2293
! host.bananapi 2015-01-22 19:41:17 info stopInstance system.adapter.ping.0
! host.bananapi 2015-01-22 19:41:17 info object change system.adapter.ping.0
Вроде все хорошо.Затем опять зашел в настройки драйвера, в одином из хостов поменял название и IP-адрес (даже если только адрес), сохранить и выйти, в логе пошли ошибки:
! bananapi 2015-01-22 19:49:15 info host.bananapi Restart adapter system.adapter.ping.0 because enabled
! bananapi 2015-01-22 19:49:15 error host.bananapi instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! ping.0 2015-01-22 19:49:15 error TypeError: Cannot call method 'replace' of undefined at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43 at Socket. (/opt/iobroker/lib/adapter.js:989:44) at Socket.onack
! ping.0 2015-01-22 19:49:15 error uncaught exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:49:15 info ping.0 starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! bananapi 2015-01-22 19:49:11 info host.bananapi instance system.adapter.ping.0 started with pid 5744
! host.bananapi 2015-01-22 19:48:41 info Restart adapter system.adapter.ping.0 because enabled
! host.bananapi 2015-01-22 19:48:41 error instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! TypeError: 2015-01-22 19:48:41 error at Decoder.add (/opt/iobroker/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:247:12)
! TypeError: 2015-01-22 19:48:41 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:48:41 error at Decoder. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:48:41 error at Manager.ondecoded (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:274:8)
! TypeError: 2015-01-22 19:48:41 error at Manager.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:48:41 error at Manager. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:48:41 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:219:12)
! TypeError: 2015-01-22 19:48:41 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:294:6)
! TypeError: 2015-01-22 19:48:41 error at Socket. (/opt/iobroker/lib/adapter.js:989:44)
! TypeError: 2015-01-22 19:48:41 error at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43
! TypeError: 2015-01-22 19:48:41 error Cannot call method 'replace' of undefined
! uncaught 2015-01-22 19:48:41 error exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:48:40 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:48:37 info instance system.adapter.ping.0 started with pid 5577
! host.bananapi 2015-01-22 19:48:07 info Restart adapter system.adapter.ping.0 because enabled
! host.bananapi 2015-01-22 19:48:07 error instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! TypeError: 2015-01-22 19:48:07 error at Decoder.add (/opt/iobroker/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:247:12)
! TypeError: 2015-01-22 19:48:07 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:48:07 error at Decoder. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:48:07 error at Manager.ondecoded (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:274:8)
! TypeError: 2015-01-22 19:48:07 error at Manager.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:48:07 error at Manager. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:48:07 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:219:12)
! TypeError: 2015-01-22 19:48:07 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:294:6)
! TypeError: 2015-01-22 19:48:07 error at Socket. (/opt/iobroker/lib/adapter.js:989:44)
! TypeError: 2015-01-22 19:48:07 error at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43
! TypeError: 2015-01-22 19:48:07 error Cannot call method 'replace' of undefined
! uncaught 2015-01-22 19:48:07 error exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:48:06 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:48:03 info instance system.adapter.ping.0 started with pid 5410
! host.bananapi 2015-01-22 19:47:33 info Restart adapter system.adapter.ping.0 because enabled
! host.bananapi 2015-01-22 19:47:33 error instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! TypeError: 2015-01-22 19:47:33 error at Decoder.add (/opt/iobroker/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:247:12)
! TypeError: 2015-01-22 19:47:33 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:47:33 error at Decoder. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:47:33 error at Manager.ondecoded (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:274:8)
! TypeError: 2015-01-22 19:47:33 error at Manager.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:47:33 error at Manager. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:47:33 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:219:12)
! TypeError: 2015-01-22 19:47:33 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:294:6)
! TypeError: 2015-01-22 19:47:33 error at Socket. (/opt/iobroker/lib/adapter.js:989:44)
! TypeError: 2015-01-22 19:47:33 error at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43
! TypeError: 2015-01-22 19:47:33 error Cannot call method 'replace' of undefined
! uncaught 2015-01-22 19:47:33 error exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:47:32 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:47:29 info instance system.adapter.ping.0 started with pid 5244
! host.bananapi 2015-01-22 19:46:59 info Restart adapter system.adapter.ping.0 because enabled
! host.bananapi 2015-01-22 19:46:59 error instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! TypeError: 2015-01-22 19:46:58 error at Decoder.add (/opt/iobroker/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:247:12)
! TypeError: 2015-01-22 19:46:58 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:46:58 error at Decoder. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:46:58 error at Manager.ondecoded (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:274:8)
! TypeError: 2015-01-22 19:46:58 error at Manager.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:46:58 error at Manager. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:46:58 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:219:12)
! TypeError: 2015-01-22 19:46:58 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:294:6)
! TypeError: 2015-01-22 19:46:58 error at Socket. (/opt/iobroker/lib/adapter.js:989:44)
! TypeError: 2015-01-22 19:46:58 error at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43
! TypeError: 2015-01-22 19:46:58 error Cannot call method 'replace' of undefined
! uncaught 2015-01-22 19:46:58 error exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:46:58 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:46:55 info instance system.adapter.ping.0 started with pid 5078
! host.bananapi 2015-01-22 19:46:25 info Restart adapter system.adapter.ping.0 because enabled
! host.bananapi 2015-01-22 19:46:25 error instance system.adapter.ping.0 terminated with code 6 (uncaught exception)
! TypeError: 2015-01-22 19:46:24 error at Decoder.add (/opt/iobroker/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:247:12)
! TypeError: 2015-01-22 19:46:24 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:46:24 error at Decoder. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:46:24 error at Manager.ondecoded (/opt/iobroker/node_modules/socket.io-client/lib/manager.js:274:8)
! TypeError: 2015-01-22 19:46:24 error at Manager.Emitter.emit (/opt/iobroker/node_modules/socket.io-client/node_modules/component-emitter/index.js:134:20)
! TypeError: 2015-01-22 19:46:24 error at Manager. (/opt/iobroker/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
! TypeError: 2015-01-22 19:46:24 error at Socket.onpacket (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:219:12)
! TypeError: 2015-01-22 19:46:24 error at Socket.onack (/opt/iobroker/node_modules/socket.io-client/lib/socket.js:294:6)
! TypeError: 2015-01-22 19:46:24 error at Socket. (/opt/iobroker/lib/adapter.js:989:44)
! TypeError: 2015-01-22 19:46:24 error at /opt/iobroker/node_modules/iobroker.ping/main.js:195:43
! TypeError: 2015-01-22 19:46:24 error Cannot call method 'replace' of undefined
! uncaught 2015-01-22 19:46:24 error exception: Cannot call method 'replace' of undefined
! ping.0 2015-01-22 19:46:24 info starting. Version 0.1.2 in /opt/iobroker/node_modules/iobroker.ping
! host.bananapi 2015-01-22 19:46:21 info instance system.adapter.ping.0 started with pid 4912
! host.bananapi 2015-01-22 19:46:19 info instance system.adapter.ping.0 terminated with code 0 (OK)
! ping.0 2015-01-22 19:46:19 info terminating
! host.bananapi 2015-01-22 19:46:18 info stopInstance system.adapter.ping.0 killing pid 4265
! host.bananapi 2015-01-22 19:46:18 info stopInstance system.adapter.ping.0
! host.bananapi 2015-01-22 19:46:18 info object change system.adapter.ping.0
Редактирование хоста со старыми настройками (вернуть значения) не помогает, перезагрузка драйвера не помогает. Только полная очистка настроек, потом удаление объекта "bananapi" из папки "ping.0" на вкладке "Объекты" и полная перезагрузка сервера. Затем добавление нужных хостов для сканирования в драйвер и его запуск - так срабатывает… `
В новой версии должно работать. 0.1.3 -
Bluefox, подскажи, что должно происходить если хост перестал пинговаться?
Или это я сам должен в виде скрипта сделать, то что мне нужно?
-
Bluefox, подскажи, что должно происходить если хост перестал пинговаться?
Или это я сам должен в виде скрипта сделать, то что мне нужно? `
Если хост перестал пинговаться, то значение переменной станет false и все.Реакция может быть как графическая - просто фигура/текст/картинка - зеленый/красный/путь_к_картинке, так и через скрипт. В скрипте либо "подписаться" на изменение переменной, либо по таймеру проверять состояние (как в CCU.IO сейчас).
-
electric69, спасибо.
-
А есть возможность получить массив и его проверить на значение false? Чтобы каждое устройство не проверять.
И у кого какая реакция настроена на отсутствие ping'а?
-
А есть возможность получить массив и его проверить на значение false? Чтобы каждое устройство не проверять. `
Возможности нет. Но мысли есть.Какой use-case?
> И у кого какая реакция настроена на отсутствие ping'а?
Показывать в vis, мониторить по IP телефонов присутствие домочадцев дома. Рассылка для особо критичных устройств email. Например если NAS не пингуется.