求指教nagios,check_http網頁監控 以及數據監控的問題
commands.cfg中定義的check_http
# 'check_http' command definition
define command{
command_name check_http
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}
services.cfg中定義的服務為
define service{
host_name windows_host
service_description check_http
check_command check_http!-H www.hp.com -u /index.html
max_check_attempts 5
normal_check_interval 1
retry_check_interval 1
check_period 24x7
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
contact_groups sagroup
}
nagios中碰到了如下連接錯誤,網上找了半天,沒解決方法,新手不熟悉,請指教
《解決方案》
另外一個問題,是關於監控linux伺服器上資料庫的疑惑
服務定義如下'
define service{
host_name linux_host
service_description check-ora-login
check_command check_nrpe!check_oracle_login
check_period 24x7
max_check_attempts 5
normal_check_interval 1
retry_check_interval 1
contact_groups sagroup
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
}
在被控節點,也就是linux主機端的nrpe.cfg內用如下
command=/usr/local/nagios/libexec/check_oracle --login test
nagios顯示連接超時,請問這個是什麼問題啊,資料庫已經啟動,應該能夠監測登陸狀態阿?
CHECK_NRPE: Socket timeout after 10 seconds.
《解決方案》
第一個,建議先用命令行測一下看通不通的。可能是dns不行。
第二個,建議看nrpe5666埠通不通。可以telnet一下。
《解決方案》
同意樓上。先用命令測試一下執行成功不。
《解決方案》
先測試一下把 ~~~~~