孤独是一种态度
Monitor
nagios 配置详解
四 7th
1、定义服务的配置文件
services.cfg
define service {
host_name test//主机名字 hosts.cfg配置,多写以“,”号分割。
service_description check_http//监控服务的描述
contact_groups gjw_apparitor//联系组 contacts.cfg配置
check_period 24x7//检查时间 timeperiods.cfg配置
max_check_attempts 3//最大尝试次数2~3次
normal_check_interval 5//正常检查的间隔/分
retry_check_interval 2//重试检查的间隔/分
notification_interval 10//报警的间和时间/分
active_checks_enabled 1 //启用活动监测服务
passive_checks_enabled 1 //启用被动监测服务
parallelize_check 1 //启用并发活动监测服务
obsess_over_service 1 //启用服务防停滞
check_freshness 0 //关闭更新监测
notifications_enabled 1 //启用事件通知
event_handler_enabled 1 //启用事件处理程序
flap_detection_enabled 1 //启用状态抖动监测
failure_prediction_enabled 1 //启用故障预测
process_perf_data 1 //启用进程性能数据记录
retain_status_information 1 //启用状态信息保存功能
retain_nonstatus_information 1 //启用非状态信息保存功能
is_volatile 0 //设定服务非易失
notification_period 24x7//报警的时间 timeperiods.cfg配置
notification_options w,u,c,r//报警的状态:w—报警(warning),u—未知(unkown),c—严重(critical),或者r—从异常情况恢复正常
check_command check_tcp!80//检查的命令 commands.cfg 配置
更多 >
原创文章,转载请注明: 转载自gjw_apparitor 博客
本文链接地址: nagios 配置详解
cacti 监控nginx
四 7th
一、修改nginx配置
1、nginx编译时允许http_stub_status_module
2、修改nginx配置文件
0 1 2 3 4 5 6 7 8 9 | # vi nginx.conf
server {
……
……
location /NginxStatus {
stub_status on;
allow 192.168.8.8;#允许cacti IP 访问
access_log off;
}
} |
3、nginx配置文件生效
# kill -HUP `cat /usr/local/nginx/logs/nginx.pid`
原创文章,转载请注明: 转载自gjw_apparitor 博客
本文链接地址: cacti 监控nginx
CACTI 安装
四 7th
一、环境MAP安装
安装MYSQL
# cd /software/map # wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.34.tar.gz/from/ftp://ftp.stu.edu.tw/pub/Unix/Database/Mysql/ # tar zxvf mysql-5.1.34.tar.gz # cd mysql-5.1.34 # useradd mysql # ./configure –prefix=/data_server/map/mysql # make # make install # cp support-files/my-medium.cnf /etc/my.cnf
原创文章,转载请注明: 转载自gjw_apparitor 博客
本文链接地址: CACTI 安装
snmp 抓取超过100M的bond
四 2nd
snmp 抓取超过100M的bond
cacti的默认模板里 bond最大数为10000000 再网卡超过80M的时候图就会乱。
同事告诉我在snmp.conf的配置文件里添加
0 | interface bond0 6 1000000000 |
原创文章,转载请注明: 转载自gjw_apparitor 博客
本文链接地址: snmp 抓取超过100M的bond
cacti画图Squid命中率
三 24th
cacti画图Squid命中率
1、编译squid
编译Squid加上 –enable-snmp 支持snmp
2、# vi squid.conf 在配置文件加上。
acl CactiHost src 10.168.1.215
acl SNMP snmp_community Squid_snmp
snmp_port 3401
snmp_access allow SNMP CactiHost
snmp_access deny all
—————————-
更多 >
原创文章,转载请注明: 转载自gjw_apparitor 博客
本文链接地址: cacti画图Squid命中率