摘要: #导入模板 configuration->templates->import,选择你需要导入的模板文件 #zabbix_agentd配置 #redis UserParameter=redis_stats[*],redis-cli -h 127.0.0.1 -p $1 info|grep $2|cut 阅读全文
posted @ 2016-02-26 17:12 love19791125 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 导入模板 configuration->templates->import,选择你需要导入的模板文件 #mysq_status #/bin/bash case $1 in Uptime) mysqladmin -u -p status | awk '{print$2}' ;; Com_update) 阅读全文
posted @ 2016-02-26 17:00 love19791125 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 导入模板 configuration->templates->import,选择你需要导入的模板文件 #zabbix_agentd配置 # iostat #磁盘读的次数 UserParameter=custom.vfs.dev.read.ops[*],cat /proc/diskstats | eg 阅读全文
posted @ 2016-02-26 16:48 love19791125 阅读(358) 评论(0) 推荐(0) 编辑
摘要: 编辑nginx的配置文件nging #配置ngx_status location /nginx_status{ stub_status on; access_log off; } #重启nginx # service nginx restart #打开status页面 curl http://127 阅读全文
posted @ 2016-02-26 16:38 love19791125 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 1. 启用php-fpm状态功能 # cat /usr/local/php/etc/php-fpm.conf | grep status_path pm.status_path = /status 2. nginx配置 location ~ ^/(status|ping)$ { include fa 阅读全文
posted @ 2016-02-26 15:40 love19791125 阅读(718) 评论(0) 推荐(0) 编辑