Nagios每隔一个小时就给我一封这样的邮件:
内容如下:
原因:监控进程数太少导致;
执行 top 命令,发现 task:344
解决方法:
vi /usr/local/nagios/etc/objects/localhost.cfg
定位到:
check_command check_local_procs! 250 ! 400 !RSZDT
分别已 344为基数,加到 544 和 744
check_command check_local_procs! 544 ! 744 !RSZDT
重启nagios
web进入nagios
截图如下:
看到Nagios服务状态正常:
存在问题:无
内容如下:
- 邮件主题:** PROBLEM Service Alert: localhost/Total Processes is WARNING **
- 内容:
- ***** Nagios *****
- Notification Type: PROBLEM
- Service: Total Processes
- Host: localhost
- Address: 127.0.0.1
- State: WARNING
- Date/Time: Thu Jun 14 21:08:13 CST 2012
- Additional Info:
- PROCS WARNING: 307 processes with STATE = RSZDT
原因:监控进程数太少导致;
执行 top 命令,发现 task:344
解决方法:
vi /usr/local/nagios/etc/objects/localhost.cfg
定位到:
- # Define a service to check the number of currently running procs
- # on the local machine. Warning if > 250 processes, critical if
- # > 400 users.
- define service{
- use local-service ; Name of service template to use
- host_name localhost
- service_description Total Processes
- check_command check_local_procs!250!400!RSZDT
- }
check_command check_local_procs! 250 ! 400 !RSZDT
分别已 344为基数,加到 544 和 744
check_command check_local_procs! 544 ! 744 !RSZDT
重启nagios
- /etc/rc.d/init.d/nagios reload
web进入nagios
截图如下:
看到Nagios服务状态正常:
![点击查看原始大小图片](http://dl.iteye.com/upload/attachment/0069/5599/42f3962d-07fb-33f0-9c12-aaa5787721e0.jpg)
存在问题:无
![点击查看原始大小图片](http://dl.iteye.com/upload/attachment/0069/5601/8e179146-8ea3-37c7-b9aa-660565421108.jpg)