Zabbix monitoring MySQL Custom scripts how to get rid of annoying warning feedback

Source: Internet
Author: User


Shell statements that connect data in a script

Mysql_user= ' Zabbix ' mysql_pwd= ' 123456 ' mysql_host= ' 127.0.0.1 "mysql_port= ' 3306 ' mysql_conn= '/usr/local/mysql/bin/ Mysqladmin-u${mysql_user}-p${mysql_pwd}-h${mysql_host} "-p${mysql_port}"


It was written in this way, but it will appear warning:using a password on the command line interface can be insecure. This hint, and there is no way to remove it, which causes the Zabbix to show this when the data is received A question:

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/8E/77/wKiom1jBIJuTo2Y3AAAYDJhf63w347.png-wh_500x0-wm_ 3-wmp_4-s_1332020890.png "title=" QQ browser screenshot is not named. png "alt=" wkiom1jbijuto2y3aaaydjhf63w347.png-wh_50 "/>

And then I checked the information and found a solution:

Vim/etc/my.cnf


Add to

[mysqladmin]user=zabbixpassword= ' 123456 ' port=3306host=localhost

Modify the script:

#MYSQL_USER = ' Zabbix ' #MYSQL_PWD = ' 123456 ' #MYSQL_HOST = ' 127.0.0.1 ' #MYSQL_PORT = ' 3306 ' mysql_conn= '/usr/local/mysql/ Bin/mysqladmin "

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/8E/76/wKioL1jBIZ-Q1Yv5AAARb5DRXsU533.png-wh_500x0-wm_ 3-wmp_4-s_3899972116.png "title=" QQ browser screenshot is not named. png "alt=" wkiol1jbiz-q1yv5aaarb5drxsu533.png-wh_50 "/>

And then it's ready.

650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0028.gif "alt=" J_0028.gif "/>

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M01/8E/76/wKioL1jBIi2wE3g7AAHXXqYNe6c750.png-wh_500x0-wm_ 3-wmp_4-s_3716302279.png "title=" QQ browser screenshot is not named. png "alt=" wkiol1jbii2we3g7aahxxqyne6c750.png-wh_50 "/>

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/8E/7C/wKiom1jB-4DzDHXbAAEN-MqaDk4514.png-wh_500x0-wm_ 3-wmp_4-s_2066943607.png "title=" QQ browser screenshot is not named. png "alt=" wkiom1jb-4dzdhxbaaen-mqadk4514.png-wh_50 "/>

This article is from the "LINUX" blog, so be sure to keep this source http://wangpengtai.blog.51cto.com/3882831/1904868

Zabbix monitoring MySQL Custom scripts how to get rid of annoying warning feedback

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.