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

How to set up a deployment project under Linux system

1. Modify the firewall settings and open the corr...

HTML Tutorial: title attribute and alt attribute

XHTML is the basis of CSS layout. jb51.net has al...

Tips for importing csv, excel or sql files into MySQL

1. Import csv file Use the following command: 1.m...

How to install Chrome browser on CentOS 7

This article introduces how to install Chrome bro...

JavaScript to achieve fancy carousel effect

This article shares two methods of implementing t...

js implements the pop-up login box by clicking the pop-up window

This article shares the specific code of js to re...

How to reduce image size using Docker multi-stage build

This article describes how to use Docker's mu...

Vue implements zoom in, zoom out and drag function

This article example shares the specific code of ...

How to reference external CSS files and iconfont in WeChat applet wxss

cause The way to import external files into a min...

How much do you know about JavaScript inheritance?

Table of contents Preface The relationship betwee...

Vue 2.0 Basics in Detail

Table of contents 1. Features 2. Examples 3. Opti...

Comparison of the use of form element attributes readonly and disabled

1) Scope of application: readonly:input[type="...