{"id":657,"date":"2020-03-17T10:11:27","date_gmt":"2020-03-17T02:11:27","guid":{"rendered":"https:\/\/www.linuxdevops.cn\/?p=657"},"modified":"2020-03-17T10:11:28","modified_gmt":"2020-03-17T02:11:28","slug":"zabbix-monitors-alicloud-rds-mysql-database","status":"publish","type":"post","link":"https:\/\/www.linuxdevops.cn\/2020\/03\/zabbix-monitors-alicloud-rds-mysql-database\/","title":{"rendered":"Zabbix\u76d1\u63a7\u963f\u91cc\u4e91RDS MySQL\u6570\u636e\u5e93"},"content":{"rendered":"\n
zabbix\u901a\u8fc7\u963f\u91cc\u4e91api \u81ea\u52a8\u53d1\u73b0\u3001\u76d1\u63a7\u963f\u91cc\u4e91RDS-Mysql\u6570\u636e\u5e93 python = 2.7<\/p>\n\n\n\n 4. \u4fee\u6539zabbix-agentd.conf\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<\/p>\n\n\n\n 5. \u91cd\u542fzabbix-agent<\/p>\n\n\n\n 6. zabbix\u63a7\u5236\u53f0\u5bfc\u5165\u6a21\u677f\uff0c\u5e76\u5173\u8054\u4e3b\u673a<\/p>\n\n\n\n
\u672c\u7248\u672c\u6570\u636e\u7684\u56fe\u8868\u5c55\u793a\uff0c\u662f\u4ee5\u76d1\u63a7\u9879\u8fdb\u884c\u5206\u7ec4<\/strong>\uff0c\u540e\u671f\u4f1a\u518d\u53d1\u5e03\u4ee5rds\u5b9e\u4f8b\u5206\u7ec4<\/strong>\u7684\u7248\u672c\u3002<\/p>\n\n\n\n<\/a>\u4f7f\u7528\u65b9\u6cd5<\/h2>\n\n\n\n
<\/a>\u6ce8\u610f\u4e8b\u9879<\/h3>\n\n\n\n
<\/a>\u73af\u5883\u8981\u6c42<\/h3>\n\n\n\n
<\/a>\u6a21\u5757\u5b89\u88c5<\/h3>\n\n\n\n
\/usr\/bin\/env pip2.7 install aliyun-python-sdk-core==2.3.5 aliyun-python-sdk-rds==2.1.4 datetime<\/pre>\n\n\n\n
<\/a>\u4f7f\u7528\u65b9\u6cd5<\/h3>\n\n\n\n
\/etc\/zabbix\/script\nchmod +x \/etc\/zabbix\/script\/*<\/code><\/pre>\n\n\n\n
#rds\nUserParameter=rds.discovery,\/usr\/bin\/env python2.7 \/etc\/zabbix\/script\/discovery_rds.py\nUserParameter=check.rds[*],\/usr\/bin\/env python2.7 \/etc\/zabbix\/script\/check_rds.py $1 $2 $3\n<\/code><\/pre>\n\n\n\n