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

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

[插件集成] Vmware_Vcenter ESXi插件

  [复制链接]

10

主题

140

帖子

639

积分

论坛积极会员

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

使用道具 举报

9

主题

249

帖子

4128

积分

元老级技术达人

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

使用道具 举报

2

主题

124

帖子

455

积分

中级会员

Rank: 3Rank: 3

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

使用道具 举报

2

主题

285

帖子

2275

积分

金牌会员

Rank: 6Rank: 6

积分
2275
金钱
1990
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

主题

32

帖子

196

积分

注册会员

Rank: 2

积分
196
金钱
164
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

主题

27

帖子

135

积分

注册会员

Rank: 2

积分
135
金钱
108
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-4-27 18:47 , Processed in 0.060878 second(s), 36 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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