Nagios的警報信息CHECK_NRPE: Socket timeout after 10 seconds.

轉載自:http://blog.chinaunix.net/uid-26446098-id-3292730.html


Notification Type: PROBLEM

Service: ora_login_check
Host: 197-oracle-1-1
Address: 192.168.1.197
State: CRITICAL

Date/Time: Mon Jul 30 01:11:13 CST 2012

Additional Info:

CHECK_NRPE: Socket timeout after 10 seconds.

最近一直報這個錯誤,查了一些資料。

CHECK_NRPE: Socket timeout after 10 seconds.

意思就是說,  nrpe 進程執行某些腳本超過了10秒鐘,就會發警報。



解決方法:

修改配置文件,把NRPE的時間調整到30s

define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -t 30   # 加上一個 -t 30 指定時間爲 30 秒
}    

然後需要重新啓動下 nagios 和 apache 的服務


      [root@node2 objects]# /etc/init.d/nagios restart
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.
You have new mail in /var/spool/mail/root
[root@node2 objects]# /etc/init.d/httpd restart
Stopping httpd: [  OK  ]
Starting httpd: [  OK  ]


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章