Nagios連載四:監控windows主機

火星人 @ 2014-03-03 , reply:0


Nagios連載四:監控windows主機

首先我們需要下載一個客戶端,下載地址http://down.51cto.com/data/99098
clip_image001



clip_image002



clip_image003


clip_image004


clip_image005


clip_image006

編輯監控主機文件
vi /usr/local/nagios/etc/objects/win2003.cfg
define host{
use linux-server
host_name win2003
alias win2003
address 192.168.0.13
}
define hostgroup{
hostgroup_name win2003-servers
alias win2003
members win2003
}
define service{
use generic-service
host_name win2003
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}
define service{
use generic-service
host_name win2003
service_description HTTP
check_command check_http
notifications_enabled 0
}
define service{
use generic-service
host_name win2003
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}
define service{
use generic-service
host_name win2003
service_description Uptime
check_command check_nt!UPTIME
}
define service{
use generic-service
host_name win2003
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
}
define service{
use generic-service
host_name win2003
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
}
define service{
use generic-service
host_name win2003
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}
define service{
use generic-service
host_name win2003
service_description Explorer
check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
}

編輯 Nagios配置文件,添加所要監控的主機
vi /usr/local/nagios/etc/nagios.cfg
clip_image007

檢查配置文件
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

確定配置文件無誤后重新啟動Nagios
service nagios restart

測試
http://localhost/nagios
clip_image009
http://luwenju.blog.51cto.com/620835/342722
《解決方案》

本帖最後由 zqkwll 於 2010-07-11 20:58 編輯

clip_image001 這是什麼?是不是圖片。怎麼看不到。

原來你的博客上有圖




[火星人 via ] Nagios連載四:監控windows主機已經有242次圍觀

http://www.coctec.com/docs/service/show-post-2753.html