How does Zabbix monitor and obtain network device data through ssh?

How does Zabbix monitor and obtain network device data through ssh?

Scenario simulation:

The operation and maintenance personnel of a certain company wanted to use Zabbix to monitor the status, utilization, voltage and other information of the optical ports of a batch of network devices purchased previously. They found that this network device supported the SNMP protocol, so they wanted to monitor it through the SNMP protocol. However, since the warranty period of this device has expired, customer service cannot provide them with the oid file. This makes it impossible for the company's operation and maintenance personnel to monitor. At this time, they discovered that Zabbix had an SSH monitoring method. So they planned to use this method to obtain data via ssh.

Demand Analysis:

There should be multiple optical modules. If you want to monitor the status and voltage of multiple optical ports, you should make it automatic.

When monitoring via ssh, after executing the statement, the optical port information returned is a string and requires additional processing.

Requirements realization:

Create a monitoring item of type ssh client.

Name: Custom

Type is ssh client

Key value ssh.run[custom (preferably named after the executed command), device IP,,]

Authentication method: Password (log in with account and password)

Username: ssh username (usually it is better to use macros, there may be multiple users)

Password: ssh password (usually it is better to use macros, there may be multiple machines)

Executed script: Commands to be executed


At this time, the automatically discovered monitoring item will prompt an error, saying that this is not in json format. So the data needs to be processed. After zabbix4.X version, javascript can be used to process the value of the monitoring item.

After processing the results of automatic discovery with javascript and converting them into the correct json format, create the monitoring item prototype.

Finally wait for the data to come out

Monitoring success

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Detailed explanation of monitoring Jenkins process based on zabbix
  • Detailed explanation of the process of Zabbix active, passive and web monitoring in distributed monitoring system
  • Distributed monitoring system Zabbix uses SNMP and JMX channels to collect data
  • Detailed explanation of Zabbix monitoring SQL Server service status
  • How to monitor mysql using zabbix
  • How to use filters to implement monitoring in Zabbix
  • Analysis of Linux Zabbix custom monitoring and alarm implementation process
  • Detailed tutorial for upgrading zabbix monitoring 4.4 to 5.0
  • Detailed steps for adding hosts you need to monitor in zabbix
  • Using zabbix to monitor the ogg process (Windows platform)

<<:  Use of Linux telnet command

>>:  How to modify the MySQL character set

Recommend

Zabbix monitoring solution - the latest official version 4.4 [recommended]

Zabbix 2019/10/12 Chenxin refer to https://www.za...

Summary of common MySQL table design errors

Table of contents Mistake 1: Too many columns of ...

A detailed tutorial on how to install Jenkins on Docker for beginners

Jenkins is an open source software project. It is...

Solve the problem that the IP address obtained using nginx is 127.0.0.1

Get ip tool import lombok.extern.slf4j.Slf4j; imp...

Detailed explanation of incompatible changes of components in vue3

Table of contents Functional Components How to wr...

Example of viewing and modifying MySQL transaction isolation level

Check the transaction isolation level In MySQL, y...

Can you do all the web page making test questions?

Web page design related questions, see if you can...

Tomcat+Mysql high concurrency configuration optimization explanation

1.Tomcat Optimization Configuration (1) Change To...

Analysis of MySQL lock mechanism and usage

This article uses examples to illustrate the MySQ...

How to use JS code compiler Monaco

Preface My needs are syntax highlighting, functio...

HTML tags explained

HTML tags explained 1. HTML tags Tag: !DOCTYPE De...

Specific operations of MYSQL scheduled clearing of backup data

1|0 Background Due to project requirements, each ...

Implementation of socket options in Linux network programming

Socket option function Function: Methods used to ...