客戶端配置:
目前創(chuàng)新互聯(lián)建站已為1000+的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)頁空間、網(wǎng)站托管、服務(wù)器租用、企業(yè)網(wǎng)站設(shè)計(jì)、瀘溪網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。
客戶端下載安裝NSclient
下載地址:http://nsclient.org/nscp/downloads
安裝NSCP-0.4.1.090-Win32 .msi (本人windows系統(tǒng)為32位,如果是64位系統(tǒng)下載64位安裝即可)
安裝完成后運(yùn)行nscp.exe會自動打開12489端口,用于nagios采集數(shù)據(jù)
使用netstat -an |more 查看端口是否開啟
安裝完成后如果要修改Nagios alias zrer-windows ; A longer name associated with the host address 192.168.0.9 ; IP address of the host 被監(jiān)控主機(jī)ip } define hostgroup{ hostgroup_name windows-servers ; The name of the hostgroup alias Windows Servers ; Long name of the group } define service{ use generic-service host_name zrer-win service_description NSClient++ Version check_command check_nt!CLIENTVERSION } define service{ use generic-service host_name zrer-win service_description Uptime check_command check_nt!UPTIME } define service{ use generic-service host_name zrer-win service_description CPU Load check_command check_nt!CPULOAD!-l 5,80,90 } define service{ use generic-service host_name zrer-win service_description Memory Usage check_command check_nt!MEMUSE!-w 80 -c 90 } define service{ use generic-service host_name zrer-win service_description C:\ Drive Space check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90 } define service{ use generic-service host_name zrer-win service_description Explorer check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe } 3. 重啟nagios服務(wù) [root@localhost /]# service nagios restart 打開Nagios web界面查看監(jiān)控信息
文章標(biāo)題:Nagios配置監(jiān)控windows客戶端
文章地址:http://weahome.cn/article/psdoej.html