当前位置:网站首页>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 ).
边栏推荐
- 数据源对象管理(第三方对象资源) & 加载properties文件
- 【单片机仿真】(十三)指令系统逻辑运算指令 — 移位指令
- RESNET learning notes
- 无法访问此网站无法找到DNS地址DNS_PROBE_STARTED怎么办?
- mysqldump: [Warning] Using a password on the command line interface can be insecure.
- [MCU simulation] (VII) addressing mode - bit addressing
- [single chip microcomputer simulation] (XI) instruction system logic operation instruction - logic and instruction anl, logic or instruction ORL
- 2002 - Can‘t connect to server on ‘127.0.0.1‘ (36)
- 我最高产的EasyPyPI又双叒叕更新了!v1.4.0发布
- 2022-07-16:以下go语言代码输出什么?A:[];B:[5];C:[5 0 0 0 0];D:[0 0 0 0 0]。 package main import ( “fmt“ )
猜你喜欢

2002 - Can‘t connect to server on ‘127.0.0.1‘ (36)

【回归预测】基于粒子滤波实现锂离子电池寿命预测附matlab代码

After 4 years of developing two-sided meituan, we finally lost: the interview question of volatile keyword function and principle

Ubuntu clear CUDA cache

MySQL optimized index
![[PHP] tp6 multi table connection query](/img/f8/a3803f01820082792901bff98bb96c.png)
[PHP] tp6 multi table connection query

自动装配 & 集合注入

JDBC connection to MySQL database
![[template record] string hash to judge palindrome string](/img/90/43109c6bd008990fa5b8147e629685.png)
[template record] string hash to judge palindrome string

数据源对象管理(第三方对象资源) & 加载properties文件
随机推荐
Fiddler抓包
[NoSQL] redis configuration and optimization of NoSQL (simple operation)
RTX3090安装pytorch3D
【回归预测】基于粒子滤波实现锂离子电池寿命预测附matlab代码
Common MySQL commands you can use
【人脸识别】基于直方图Histogram实现人脸识别附matlab代码
In depth understanding of machine learning - unbalanced learning: sample sampling technology - [smote sampling method and borderline smote sampling method of manual sampling technology]
[MCU simulation] (XIII) instruction system logic operation instruction shift instruction
【单片机仿真】(十二)指令系统逻辑运算指令 — 逻辑异或指令XRL、累加器清0和取反指令
SysTick定时器的基础学习以及手撕代码
D. Permutation Restoration(贪心/双指针/set)
【单片机仿真】(九)指令系统 — 算术运算指令 之 ADD、ADDC、SUBB、INC、DEC、DA
Several methods of face detection
多锻炼身体有好处
[MCU simulation] (VII) addressing mode - bit addressing
数据源对象管理(第三方对象资源) & 加载properties文件
【模板记录】字符串哈希判断回文串
The place where the dream begins ---- first knowing C language
[MCU simulation] (XIX) introduction to assembly, assembly instructions, pseudo instructions
要开源节流