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 system port monitoring statu

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

Share

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

1. Monitoring system Zabbix-add port monitoring

For the monitoring of processes and ports, you can use the key that comes with zabbix to monitor, which only needs to be maintained on the server, which is easier than using plug-ins in nagios to monitor. The following is a brief description of the configuration:

1. Monitoring port

The zabbix monitoring port uses the following key:

Key:net.tcp.listen [port]

Checks if this port is in LISTEN state. 0-it is not, 1-it is inLISTEN state.

2. Explanation:

If you listen for the status of the port, the returned result is 1, which means the status is normal. If the returned result is 0, the status is abnormal. For example, the port of monitoring ssh, net.tcp.listen [22].

In the following example, the ssh port is custom 22222.

You need to define the items of this port first, which can be added to the template (create items) or defined separately on the host (the following example is the monitoring item defined on the host)

3. Configure monitoring items

[configuration]-[Host]-[Monitoring item]

[create monitoring item]

[name]: it is better to be consistent with the name of the trigger

[key]: Port to be monitored [application set]: Processes

4. Configure triggers

[create trigger]

Then add the trigger for the monitoring item. For port monitoring, the return value is 1; for process monitoring, the return value is > = 1; if the returned result is 0, the process is down. If the result of the last two times is equal to 0, call the police. (the trigger configuration for the process is the same)

Select the host, click "trigger", and "create trigger"

[name]: event name of SMS changed to alarm. Specification: XXX port of XXX service.

5. Configure the graphic

[create drawing]

Finally, you can see the ssh port status added above in the monitoring graph of the host: 1 indicates that the port is running normally, and 0 indicates that the port is closed.

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

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