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:
|
<<: Use of Linux telnet command
>>: How to modify the MySQL character set
1. Modify the firewall settings and open the corr...
I just finished installing MySQL 5.7.19 in the ea...
XHTML is the basis of CSS layout. jb51.net has al...
Table of contents 1. Demand 2. Database Design 3....
1. Import csv file Use the following command: 1.m...
This article introduces how to install Chrome bro...
1. Download from the official website and unzip h...
This article shares two methods of implementing t...
This article shares the specific code of js to re...
This article describes how to use Docker's mu...
This article example shares the specific code of ...
cause The way to import external files into a min...
Table of contents Preface The relationship betwee...
Table of contents 1. Features 2. Examples 3. Opti...
1) Scope of application: readonly:input[type="...