在[/usr/local/zabbix327/bin] 目录下新建python文件,并增加执行权限,如下: #!/usr/bin/env /usr/bin/python # _*_ coding:utf-8 _*_ import subprocess import json import re import ConfigParser def main(): # mysqld is started with mysqld_safe ,and with the configfile,or use 3…