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

CentOS 7.7 yum installation and configuration Zabbix 4.0 LTS details (8)

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

10. Use Zabbix Agent to monitor Windows hosts:

The operating system of the node-130 node is Windows Server 2012 R2

1. The node-130 node downloads the Windows version of the Zabbix Agent: https://www.zabbix.com/download_agents memb ZabixfuagentsMuy4.0.14Maxime amd64.zip.

2. Extract to disk C and rename the folder: C:\ zabbix_agents-4.0.14

3. Modify the zabbix_agentd.conf configuration file: C:\ zabbix_agents-4.0.14\ conf\ zabbix_agentd.conf

Before modification

After modification

# LogType=file

LogType=file

LogFile=c:\ zabbix_agentd.log

LogFile=C:\ zabbix_agents-4.0.14\ zabbix_agentd.log

Server=127.0.0.1

Server=192.168.0.120

# ListenPort=10050

ListenPort=10050

# ListenIP=0.0.0.0

ListenIP=0.0.0.0

ServerActive=127.0.0.1

ServerActive=192.168.0.120

Hostname=Windows host

Hostname=node-130

# HostMetadata=

HostMetadata=node-130

Special note:

During VMware virtual machine testing, do not change the value of parameter # ListenIP=0.0.0.0 to ListenIP=192.168.0.130, otherwise, after restarting Windows Server 2012 R2, zabbix_agentd.log will prompt "listener failed: bind () for [[192.168.0.130]: 10050] failed: [0x00002741] in its context, the requested address is invalid", causing Zabbix Agent to fail to boot.

4. Modify the hostname of node-130 node:

Right-click "this computer"-- > Properties-- > change Settings-- > change-- > enter computer name-- > OK-- > restart.

5. The firewall allows port 10050 to communicate:

Control Panel-- > View method (small icon)-- > Windows Firewall-- > Advanced Settings-- > inbound rules-- > New rules-- > Port-- > TCP, specific local port (10050)-- > allow connections-- > check "Domain", "Private" and "Public"-- > name "Zabbix Agent"-- > finish

6. Register Zabbix Agent as a system service:

Win + R-- > cmd

Cd\

"C:\ zabbix_agents-4.0.14\ bin\ zabbix_agentd.exe"-config "C:\ zabbix_agents-4.0.14\ conf\ zabbix_agentd.conf"-install

7. Node-130 node starts Zabbix Agent:

Win + R-- > services.msc

Check whether port 10050 is listening: netstat-an | find "10050"

View the log: C:\ zabbix_agents-4.0.14\ zabbix_agentd.log

8. Add a node-130 node to Zabbix Web:

Configuration-- > Hosts-- > Create host-- > Add

9. Node-130 node links Windows monitoring template:

Check all the monitoring items and click "Check now":

10. View the latest monitoring data:

11. Node-130 node monitors Windows Update service:

Description:

Service.info [service,] Information about a service. Returns integer with param as state, startup; string-with param as displayname, path, user; text-with param as description; Specifically for state: 0-running, 1-paused, 2-start pending, 3-pause pending, 4-continue pending, 5-stop pending, 6-stopped, 7-unknown, 255-no such service; Specifically for startup: 0-automatic, 1-automatic delayed, 2-manual, 3-disabled, 4-unknown

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