当前位置:网站首页>Zabbix6.0 monitoring vcenter7.0
Zabbix6.0 monitoring vcenter7.0
2022-07-19 03:17:00 【yleihj】
1 Refer to the official documentation . If you use yum The way of source installation. Don't consider the following , use yum Source installation zabbix6.0 You can refer to .
https://blog.csdn.net/yleihj/article/details/124511679?spm=1001.2014.3001.5501
2: Instructions on configuring document parameters . The following words are given by the official documents . My understanding is only StartVMwareCollectors
Is a must , Others can be written or not . It doesn't matter if you test this with a virtual machine like me , The production environment still needs to be configured , In especial StartVMwareCollectors Value
The following profile options can be used to adjust virtual machine monitoring :
StartVMwareCollectors - Preset vmware collector Number of instances .
This value depends on what you want to monitor VMware The number of services . in the majority of cases , This should be :
servicenum < StartVMwareCollectors < (servicenum * 2)
among servicenum yes VMware The number of services . for example , If there is 1 One to monitor VMware service ,
Please put StartVMwareCollectors Set to 2, If you have 3 individual VMware service , Please set it to 5.
Please note that , in the majority of cases , This value should not be less than 2, Nor should it be greater than the monitored VMware Number of services 2 times . in addition ,
This value also depends on your VMware Environment size and VMwareFrequency and VMwarePerfFrequency
Configuration parameters ( See below ).
VMwareCacheSize
VMwareFrequency
VMwarePerfFrequency
VMwareTimeout3: Now start editing zabbix Server configuration file .
vi /etc/zabbix/zabbix_server.conf4: Add the following information to the configuration file .
StartVMwareCollectors=5
VMwareCacheSize=160M
VMwareFrequency=60
VMwareTimeout=20
5: restart zabbix service . Come here zabbix The end configuration is completed .
systemctl restart zabbix-server
6: Explanation of some problems . Some people say they want to check zabbix Of log File view you VMware monitoring whether yes. There are also commands that take values , To be safe in vCenter Create a read-only user on . I will introduce all these methods , But my virtual machine is always yes, You can get the value every time , It doesn't matter whether you do it or not . Read only users can create one if required by the production environment , After the establishment, you can ensure that this read-only user logs in .(6 To 12 You can take a look without taking steps .)
7: see zabbix Of log journal .
cat /var/log/zabbix/zabbix_server.log

8: stay zabbix The server takes values with commands . ${vCenter IP} Change to yourself vCenter Of IP. return 500 that will do .
curl -i -k --data "" https://${vCenter IP}/sdk
9: Change ESXI host Config.HostAgent.plugins.solo.enableMob The value of is true.

10: establish vCenter Read only users . land vCenter Click menu , stay Single Sign On The selected field in is vsphere.local, A new user zabbix.

11: stay vCenter In Chinese, it means zabbix The user grants read-only permission . Click permissions , spot + No .

13: land zabbix Add host . Host name , Fill in the visible name casually , Templates can be selected vmware, Groups can be created , The most critical step is Interfaces Select client ,IP The address is vCenter Of IP Address port should be selected 10050. I think this port is the biggest hole that many people choose 80 perhaps 443 I don't know how they succeeded . Anyway, I choose 10050 That's how it works .

14: Add macro . To add three parameters {$VMWARE.PASSWORD},{$VMWARE.URL},{$VMWARE.USERNAME} The corresponding value can be filled in according to the actual situation . I don't use read-only users here , Use the management account . Here's one zabbix Tips , You can click T, And then choose Secret text Click Add and no one will see vCenter The password of the administrator account .

15: The waiting time is a little long , Monitoring information will appear . You'll find that vCenter Has been monitored , And automatically put two ESXI The host of is also found . I installed a rooftop ESXI The host , And installed vCenter.

16: Click on The latest data can see the monitoring information .

17: Problem specification
1) stay 15 In step ZBX It's always gray. I don't know the reason , I began to think this was related to monitoring Linux and Windows The host will also turn green , But it has never changed . I haven't seen a green screenshot after looking for it for a long time .
2) The default time for waiting seems to be 1 Hours , But because of my ZBX It's gray. I thought I'd put it here if I didn't succeed , Click the latest data the next day to find the content , So I'm not sure how long to wait .
The friend knows the above two questions , Please let .
18:zabbix Monitoring I think the biggest hole is to fill in the port 10050, I don't know what else to fill in 80 perhaps 443 How to succeed , The default port of the client is 10050,SNMP The default port is 161, Unless you change the default port .
19: summary
Actually monitoring vCenter Just five steps , Change zabbix The configuration file for the server ( Reference resources 3-5 Step ), stay zabbix Add a host to ( Reference resources 13-14 Step ).
边栏推荐
- 04_服务注册Eureka
- Specifications、多表查询基础
- Built in keyboard continuous 444
- Several methods of face detection
- Face key point detection
- [MCU simulation] (V) addressing mode - immediate addressing and register indirect addressing
- Data source object management (third-party object resources) & load properties file
- 【PHP】tp6多表连接查询
- SysTick定时器的基础学习以及手撕代码
- 2002 - Can‘t connect to server on ‘127.0.0.1‘ (36)
猜你喜欢
随机推荐
【单片机仿真】(五)寻址方式 — 立即寻址与寄存器间接寻址
[MCU simulation] (XIX) introduction to assembly, assembly instructions, pseudo instructions
[MCU simulation] (XVII) control transfer instructions - call and return instructions
Thinking for half a year
Ncnn thread
We should increase revenue and reduce expenditure
Tools and methods - Excel plug-in xltools
[single chip microcomputer simulation] (10) instruction system - multiplication instruction and division of arithmetic operation instruction
Obvious things
Go语言 实现发送短信验证码 并登录
Affine transformation implementation
Several methods of face detection
Snapshot: data snapshot (data disclosure method)
多表查询——案例练习
Bisenetv1 face segmentation
Bisenetv2 face segmentation ncnn reasoning
显而易见的事情
Polynomial interpolation fitting (II)
While loop
A Youku VIP member account can be used by several people to log in at the same time. How to share multiple people using Youku member accounts?









