摘要: 被监控机的Mysql监控创建专用数据库、专用数据库账户mysql -uroot -pcreate database nagios_monitor;grant select on nagios_monitor.* to nagios@'%' identified by 'nagiosMonitor';... 阅读全文
posted @ 2015-06-18 14:43 Mr黄瑞 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 监控本机内存cd /usr/lib64/nagios/pluginstouch check_mem.sh#!/bin/bashif [ "$1" = "-w" ] && [ "$2" -gt "0" ] && [ "$3" = "-c" ] && [ "$4" -gt "0" ]; then ... 阅读全文
posted @ 2015-06-18 13:19 Mr黄瑞 阅读(345) 评论(0) 推荐(0) 编辑