In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Zabbix configure Windows monitoring environment zabbix server
Ens192:10.127.0.133
Ens256:172.168.0.2
Windows server2012
Ens192:172.168.0.3
Gateway:172.168.0.2
Configure shared Internet access and port forwarding
The windows server2012 environment here uses an esxi virtual machine. Because there is not enough ip on the public network, I have done nat here, but esxi does not support nat network, so I use iptables to achieve port forwarding and shared Internet access on zabbix server.
Enable the routing forwarding function of zabbix server echo 1 > / proc/sys/net/ipv4/ip_forward
Or
Vim / etc/sysctl.conf net.ipv4.ip_forward = 1sysctl-p configure iptablesiptables-t nat-A POSTROUTING-s 172.168.0 SNAT 24-o ens192-j SNAT-- to-source 10.127.0.133iptables-t nat-A PREROUTING-d 10.127.0.133-p tcp-- dport 3389-I ens192-j DNAT-- to-destination 172.168.0.3:3389iptables-save to test network connectivity
Perform remote connection testing
Since the remote connection service is not enabled in Windows server2012, you need to add roles and functions to the server manager. The steps are relatively simple. I will not repeat them here. If you connect directly to port 3389 of zabbix server, you can connect to the remote desktop of the intranet Windows server.
Download zabbix agent client download address:
Start installation
After the installation is complete, zabbix agent is added to the service and starts running
You can also see that port 10050 is listening.
Add a Windows host on zabbix
The host name can be written as Windows name.
After the creation of the host, there was a problem. The connection agent kept reporting a 104error. After looking at the agent log, it was found that the network was running a private network card. It may be that there were a lot of iptables rules before, and the iptables rules were matched from top to bottom, resulting in that the correct rules did not match to
Get value from agent failed: ZBX_TCP_READ () failed; [104] connection reset by peer
Putting the correct iptables rules at the top of the chain can solve the problem.
Iptables- t nat-I POSTROUTING-d 172.168.0 pound 24-p tcp-m tcp-- dport 10050-j SNAT-- to-source 10.127.0.133iptables-save
Check the log to see that the status of agent becomes available
Zabbix provides a template for Windows monitoring, provides monitoring on many systems, and can automatically discover and monitor service status.
Create a Windows monitoring item example to get the IIS process status
Agent provides a key of proc.num [] to monitor the number of processes.
Trigger alarm can be configured when the number of processes is 0
If you want to monitor the IIS process in detail, you can use Windows's performance Monitor to monitor
Zabbix agent provides the perf_counter [counter,\] key to monitor the value collected by the performance tester. Here, to obtain the available memory of windows, the first step is to add a counter.
After the creation, you only need to add the path of the counter on the zabbix.
Of course, the paths of these counters can also be represented by numbers, and the mapping values of paths and numbers exist in the registry, so you need to run regedit, and then find the registry HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows NT\ CurrentVersion\ Perflib\ 009.
For example, the above monitoring items can also be expressed by the following methods:
If we want to monitor the details of the web process, we can add counters under the process path. Inetinfo is the name of the software running by web.
Get the number of concurrent connections to IIS
You also use performance Monitor to add a counter for the number of IIS connections to monitor it. It exists under the Web Service path. If you want to obtain other information about IIS (such as the number of CGI requests processed), you also add a counter under the Web Service path.
Welcome to Master Chen.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.