近日为了满足客户做性能测试,我与同事沟通,并配置nrpe client后,发现监控状态异常,漫长的排查后,我们发现nrpe.cfg command 路径存在异常,然后进行修改并添加后恢复正常,详细信息如下:
command[check_appserver]=/usr/local/nagios/libexec/check_http -Hlocalhost -p9000 -u /health/check -s ok
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 15 -c 10
command[check_clamav]=/usr/local/nagios/libexec/check_clamd -Hlocalhost -p 3310 -w 2 -c 5
command[check_dns]=/usr/local/nagios/libexec/check_dns -H mh.nokia.com -w 0.5 -c 1 -t 7
command[check_intrusion]=/usr/local/nagios/libexec/check_http -Hlocalhost -p9000 -u‘/health/attack?threshold=30‘ -s ok
command[check_load]=/usr/local/nagios/libexec/check_cpu_usage.sh
command[check_local_mysql]=/usr/local/nagios/libexec/check_mysql -umediahub -p mediahub
command[check_local_mysql_hit_buffer_size]=/usr/local/nagios/libexec/check_mysql_query -q "select count(*) fromhit" -d mediahub -u mediahub -p mediahub -w 30000 -c 100000
command[check_memory]=/usr/local/nagios/libexec/check_mem.pl -w 90 -c 100
command[check_netacuity]=/usr/local/nagios/check_netacuity localhost
command[check_ntp]=/usr/local/nagios/libexec/check_ntp -H localhost -w 0.0005 -c 1.0
command[check_openfiles]=/usr/local/nagios/libexec/check_open_files.pl -w 800 -c 1000
command[check_ping]=/usr/local/nagios/libexec/check_ping -H localhost -w 3 10 -c 5 20
command[check_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 10 - c 5
command[check_users]=/usr/local/nagios/libexec/check_users -w 15 -c 20
command[check_varnish_http]=/usr/local/nagios/libexec/check_http -Hlocalhost -p80 -u /health/check -s ok
command[check_varnish_https]=/usr/local/nagios/libexec/check_http -Hlocalhost -p81 -u /health/check -s ok
本文出自 “实用笔记” 博客,请务必保留此出处http://qiuyt.blog.51cto.com/1229789/1602478
原文地址:http://qiuyt.blog.51cto.com/1229789/1602478