nagios與windows客戶端連接問題,及檢查報警時間 小弟在使用nagios時碰到兩個問題,求助版主,及各位高手,幫忙看看 1:nagios連接不了windows的客戶端,telnet客戶端的12489埠是通的 windows客戶端安裝的是:NSClient++-0.3.6-Win32.msi 在監控端運行/usr/lib/nagios/plugins/check_nt -H 192.16 8.1.27 -v CLIENTVERSION 提示:could not fetch information from server 2: 監控端使用的是飛信簡訊報警,每次我關機測試時需要五分鐘左右的時間才能檢測到主機已DOWN機,如果只是重啟,nagios檢測不到。請教各位這是什麼問題啊? windows客戶端設置我是按照下面這個教程安裝的: 下載NSClient++-0.3.6-Win32.msi並安裝。 到安裝目錄打開NSC.ini文件進行修改: 在模塊,將除CheckWMI.dll和RemoteConfiguration.dll外的所有dll文件明前的註釋(;)去掉。 在模塊可以設置一個連接密碼password=PWD,為了簡單,在此不設密碼。設置 allowed_hosts=127.0.0.1/32,192.168.1.29,可以連接的監控伺服器的地址,如果寫成192.168.0.0/24 則表示該子網內的所有機器都可以訪問;如果這個地方是空白則表示所有的主機都可以連接上來(注意在有allowed_hosts的同樣設置,不要設置錯了),最後不要忘記去掉前面的註釋符(;)。 運行nsclient++ NSClient++ /install NSClient++ SysTray install NSClient++ /start 如果有防火牆,請開放相應埠 附件是我的配置文件,我的主機及windows主機的配置如下:請各位高手幫忙看看啊 define host{ name generic-host 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 check_command check-host-alive max_check_attempts 3 notification_interval 0 notification_period 24x7 notification_options d,u,f,r contact_groups admins register 0 } define host{ use generic-host ; Inherit default values from a template host_name fileserver2 ; The name we're giving to this host alias windows-server ; A longer name associated with the host address 192.168.1.27 ; IP address of the host define service{ use generic-service host_name fileserver2 service_description NSClient++ Version check_command check_nt!CLIENTVERSION } define service{ use generic-service host_name fileserver2 service_description Uptime check_command check_nt!UPTIME } define service{ use generic-service host_name fileserver2 service_description CPU Load check_command check_nt!CPULOAD!-l 5,80,90 } define service{ use generic-service host_name fileserver2 service_description Memory Usage check_command check_nt!MEMUSE!-w 80 -c 90 } define service{ use generic-service host_name fileserver2 service_description C:\ Drive Space check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90 } define service{ use generic-service host_name fileserver2 service_description W3SVC check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC } define service{ use generic-service host_name fileserver2 service_description Explorer check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe }
[火星人
]
nagios與windows客戶端連接問題,及檢查報警時間 已經有1152 次圍觀
本文地址: http://coctec.com/docs/service/show-post-3115.html