Scenario Requirements 1. We can use the script function of the 2,. We can start, shut down and restart a service through the script function of the Experimental configuration process 1. Create a script Open the [External link image transfer failed. The source site may have an anti-hotlink mechanism. It is recommended to save the image and upload it directly (img-NkHO93RH-1584329271250) Script name: Custom Type: If it is a window or Linux host type, select script. IPMI type (not discussed yet) There are three types of execution: (1) Zabbix client, indicating that the created script will be run on the host where the Zabbix client is installed. Command: You can fill in the system command or the absolute path of a script Required host permissions: Select the default Create a script to display the host ip Important: After the script is created, you must enable the zabbix client to execute remote commands in the zabbix_agent configuration file Change the default Restart the zabbix client to make the configuration take effect After the script is created, we go to the monitoring in the web interface of zabbix_server, then find the latest data in the blue navigation bar, and find a window host that has already installed the zabbix client to execute it. Because ifconfig is a system command of the Linux host, the test can only be performed on a Linux host with the Zabbix client installed. Then in the host column, left-click the host name, and some of our custom and built-in scripts will appear. The script that displays the IP is the one we just created. Execution Results Normally displays the IP address of the Linux host where the Zabbix client is installed Summarize This is the end of this article about Zabbix executing remote host scripts or instructions. For more relevant Zabbix execution remote host content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Vue realizes the logistics timeline effect
>>: Examples of using MySQL pessimistic locking and optimistic locking
The blogger said : I have been writing a series o...
We will install phpMyAdmin to work with Apache on...
The semantics, writing style, and best practices ...
Use nginx to configure the separation of PC site ...
animation Define an animation: /*Set a keyframe t...
Software Version Windows: Windows 10 MySQL: mysql...
1. Download the installation package Download add...
Table of contents Vue this.$store.state.xx.xx Get...
Table of contents DOMContentLoaded and load What ...
Preface Although the holiday is over, it shows up...
Logo optimization: 1.The logo image should be as ...
Copy code The code is as follows: <span style=...
When using the idea development tool to debug cod...
If you directly set the width attribute to the sty...
01. Command Overview The locate command is actual...