Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Zabbix monitors windows hosts and Huawei switches

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

# Monitoring windows server 2003

# windows can only install zabbix-agent

# download address: http://www.zabbix.com/downloads/3.0.4/zabbix_agents_3.0.4.win.zip

# download and decompress to win server 2003 as shown in the figure

# modify the configuration file zabbix_agent.win.conf (if you open it with notepad, there will be a typesetting problem, so I upload it to the linux server and modify it with vim. Of course, you can also open it with notepad)

# modify it as follows

[root@zabbix_1 ~] # cat zabbix_agentd.win.conf | grep-v "#" | grep-v "^ $"

LogFile=c:\ zabbix_agentd.log

Server=192.168.174.136 # IP address of the zabbix server

ServerActive=192.168.174.136

Hostname=Windows host

# install zabbix-agent in windows

# install zabbix-agent (you can use-- help for specific parameters)

# installed successfully

# start the zabbix-agent service

# View listening port 10050

# add a monitoring host

# configure related attributes

# add windows template

# added successfully

# View data

# use SNMP to monitor Huawei switch (due to limited experimental conditions, eNSP is used to simulate the switch)

# SNMP introduction: http://blog.sina.com.cn/s/blog_4502d59c0101fcy2.html

# SNMP commonly used Oid: http://linux.chinaunix.net/techdoc/net/2008/08/21/1026818.shtml

# Linux setting Oid: http://www.2cto.com/os/201211/170730.html

# SNMP group name explanation: https://wenku.baidu.com/view/2ab94b0203d8ce2f00662335.html

# switch enables SNMP function: http://www.iyunv.com/thread-5515-1-1.html

# enable SNMP function of the switch

System-view

[S5700] interface vlanif 1

[S5700-vlanif1] ip address 192.168.174.11 255.255.255.0

[S5700-vlanif] quit

[S5700] snmp-agent sys-info version all

[S5700] snmp-agent community read 123456

[S5700] snmp-agent trap enable

[S5700] snmp-agent target-host trap address udp-domain 192.168.174.136 udp-port 161 params securityname 123456 v2c

[S5700] quit

Save save

# the topology diagram is shown below (cloud is too simple to be set up, so I won't introduce it here)

# create a monitoring host

# enter relevant attributes (Note: SNMP API is used here)

# add template (Note: the template here cannot be selected wrong)

# enter the group name SNMP

# View the data traffic of the G0 zabbix 1 interface (you need to ping the server several times from the switch to generate data traffic)

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report