『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: syjjx

[插件集成] Vmware_Vcenter ESXi插件

  [复制链接]

10

主题

140

帖子

649

积分

论坛积极会员

积分
649
金钱
509
HASS币
0
发表于 2018-11-9 14:25:59 | 显示全部楼层
能不能监控OPENWRT
回复

使用道具 举报

9

主题

251

帖子

4380

积分

元老级技术达人

积分
4380
金钱
4114
HASS币
100
发表于 2018-11-9 14:41:25 | 显示全部楼层
学习学习!
E5-2650L-V2+华南X79+16GB*2
回复

使用道具 举报

2

主题

124

帖子

463

积分

中级会员

Rank: 3Rank: 3

积分
463
金钱
339
HASS币
0
发表于 2018-11-20 17:07:55 | 显示全部楼层
正在为装上esxi发愁。。
回复

使用道具 举报

2

主题

284

帖子

2279

积分

金牌会员

Rank: 6Rank: 6

积分
2279
金钱
1994
HASS币
0
发表于 2018-11-23 21:14:43 | 显示全部楼层
升级了ESXI 6.7后,插件报错了
2018-11-23 21:12:17 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform ha_vcenter
Traceback (most recent call last):
  File "/config/custom_components/sensor/ha_vcenter.py", line 382, in _HostInformation
    networkTx = (float(sum(statNetworkTx[0].value[0].value) * 8 * 1024) / statInt)
TypeError: 'bool' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/sensor/ha_vcenter.py", line 354, in _ComputeResourceInformation
    self._HostInformation(host,datacenter_name,computeResource_name,content,perf_dict,vchtime,interval)
  File "/config/custom_components/sensor/ha_vcenter.py", line 391, in _HostInformation
    _LOGGER.error( "Unable to access information for host: ", host.name)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1336, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1443, in _log
    self.handle(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1453, in handle
    self.callHandlers(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1515, in callHandlers
    hdlr.handle(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 864, in handle
    self.emit(record)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/system_log/__init__.py", line 130, in emit
    entry = self._create_entry(record, stack)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/system_log/__init__.py", line 113, in _create_entry
    'message': record.getMessage(),
  File "/usr/local/lib/python3.6/logging/__init__.py", line 338, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/sensor/ha_vcenter.py", line 140, in setup_platform
    client.start(hass)
  File "/config/custom_components/sensor/ha_vcenter.py", line 258, in start
    self.run(dt_util.now())
  File "/config/custom_components/sensor/ha_vcenter.py", line 510, in run
    self._ComputeResourceInformation(computeResource,datacenter_name,content,perf_dict,vchtime,self._interval)
  File "/config/custom_components/sensor/ha_vcenter.py", line 356, in _ComputeResourceInformation
    _LOGGER.error( "Unable to access information for compute resource: ", computeResource.name)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1336, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1443, in _log
    self.handle(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1453, in handle
    self.callHandlers(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 1515, in callHandlers
    hdlr.handle(record)
  File "/usr/local/lib/python3.6/logging/__init__.py", line 864, in handle
    self.emit(record)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/system_log/__init__.py", line 130, in emit
    entry = self._create_entry(record, stack)
  File "/usr/local/lib/python3.6/site-packages/homeassistant/components/system_log/__init__.py", line 113, in _create_entry
    'message': record.getMessage(),
  File "/usr/local/lib/python3.6/logging/__init__.py", line 338, in getMessage
    msg = msg % self.args
TypeError: not all arguments converted during string formatting

回复

使用道具 举报

0

主题

1

帖子

16

积分

新手上路

Rank: 1

积分
16
金钱
15
HASS币
0
发表于 2018-12-3 00:35:34 | 显示全部楼层

学习学习!
回复

使用道具 举报

0

主题

33

帖子

218

积分

中级会员

Rank: 3Rank: 3

积分
218
金钱
185
HASS币
0
发表于 2018-12-4 16:20:00 | 显示全部楼层
厉害!学习一下
回复

使用道具 举报

0

主题

24

帖子

123

积分

注册会员

Rank: 2

积分
123
金钱
99
HASS币
0
发表于 2018-12-4 17:46:44 来自手机 | 显示全部楼层
我都还不会弄
回复

使用道具 举报

7

主题

220

帖子

749

积分

高级会员

Rank: 4

积分
749
金钱
524
HASS币
20
发表于 2018-12-5 12:45:39 | 显示全部楼层
回复看个帖
回复

使用道具 举报

0

主题

28

帖子

139

积分

注册会员

Rank: 2

积分
139
金钱
111
HASS币
0
发表于 2019-1-31 21:11:54 | 显示全部楼层
Vmware_Vcenter ESXi插件
回复

使用道具 举报

2

主题

150

帖子

1038

积分

金牌会员

Rank: 6Rank: 6

积分
1038
金钱
888
HASS币
0
发表于 2019-2-1 08:20:49 | 显示全部楼层
看看学习一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-26 07:40 , Processed in 0.059044 second(s), 36 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表