監(jiān)控主機(jī)配置:redhat linux as4,nagios3
創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供西吉網(wǎng)站建設(shè)、西吉做網(wǎng)站、西吉網(wǎng)站設(shè)計(jì)、西吉網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁(yè)設(shè)計(jì)與制作、西吉企業(yè)網(wǎng)站模板建站服務(wù),十多年西吉做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。
被監(jiān)控主機(jī):Windows Server 2008 R2 Enterprise,nsclient++0.4.4.172
Nagios是一款開源的免費(fèi)網(wǎng)絡(luò)監(jiān)視工具,其功能強(qiáng)大,靈活性強(qiáng)。能有效監(jiān)控Windows、Linux和Unix的主機(jī)狀態(tài),交換機(jī)路由器等網(wǎng)絡(luò)設(shè)置,打印機(jī)等。nagios監(jiān)控windows系統(tǒng)有三種實(shí)現(xiàn)方式:SNMP、NSClient++、NRPE。
下面介紹使用NSClient++方式來監(jiān)控Windows:
首先在windows下安裝nsclient++,運(yùn)行NSCP-0.4.0.172-x64.msi安裝文件,一步一步往下走,其中需要設(shè)置nagios監(jiān)控主機(jī)IP和NSClient密碼(值當(dāng)使用check_nt時(shí)使用),如圖1所示:
Allowed hosts:填寫nagios監(jiān)控主機(jī)IP
NSClient Password:當(dāng)使用命令check_nt時(shí)需要設(shè)置密碼,根據(jù)自己情況設(shè)置
Module to load:根據(jù)自己的需要選擇相應(yīng)的模塊
安裝完畢以后,打開windows服務(wù)管理器,查看nsclient服務(wù)是否啟動(dòng),如圖2所示:
然后在nagios監(jiān)控主機(jī)上面進(jìn)行相關(guān)的配置,主要涉及兩個(gè)配置文件nagios.cfg和windows.cfg
(1) 因?yàn)閚agios是模塊化調(diào)用,先到配置文件打開windows相關(guān)模塊,編輯nagios.cfg文件
[root@localhost etc]# ls
cgi.cfg htpasswd nagios.cfg nrpe.cfg objects objects.bak objects.tar resource.cfg
[root@localhost etc]# pwd
/usr/local/nagios/etc
[root@localhost etc]# vi nagios.cfg
將#cfg_file=/usr/local/nagios/etc/objects/windows.cfg該行前面的#注釋去掉即可.
(1) 修改windows.cfg配置文件,需要修改define host和define service兩部分
# Define a host for the Windows machine we'll be monitoring
# Change the host_name, alias, and address to fit your situation
define host{
use windows-server ; Inherit default values from a template
host_name video4-beijing ; The name we're giving to this host 被監(jiān)控主機(jī)的主機(jī)名
alias video4-beijing ; A longer name associated with the host
contact_groups sa ;
address 10.12.4.169 ; IP address of the host 被監(jiān)控主機(jī)的IP
}
# Create a service for monitoring CPU load
# Change the host_name to match the name of the host you defined above
define service{
use generic-service
host_name video4-beijing
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
contact_groups sa
}
# Create a service for monitoring
# Change the host_name to match the name of the host you defined above
define service{
use generic-service
host_name video4-beijing
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
contact_groups sa
}
# Create a service for monitoring C:\ disk usage
# Change the host_name to match the name of the host you defined above
define service{
use generic-service
host_name video4-beijing
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
contact_groups sa
}
修改完相關(guān)的配置文件以后,執(zhí)行如下命令檢查配置文件是否正確:
[root@localhost objects]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
遇到的問題,在檢查配置文件時(shí)錯(cuò)誤信息如下:
Checking services...
Error: Contact group 'admins' specified in service 'C:\ Drive Space' for host 'video4-beijing' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Explorer' for host 'video4-beijing' is not defined anywhere!
Error: Contact group 'admins' specified in service 'Memory Usage' for host 'video4-beijing' is not defined anywhere!
Checked 14 services.
Checking hosts...
Error: Contact group 'admins' specified in host 'video4-beijing' is not defined anywhere!
Checked 7 hosts.
Checking host groups...
Checked 2 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 25 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 4
*** One or more problems was encountered while running the pre-flight check...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
以上問題的原因是因?yàn)橐婚_始在windows.cfg文件中定義host和service時(shí)沒有增加contact_groups sa這個(gè)字段,host和service默認(rèn)所在的contact_group為admins,而我的nagios監(jiān)控主機(jī)contacts.cfg文件中配置的contactgroup為sa。
今天就給大家介紹下經(jīng)常會(huì)被忽略掉的一個(gè)系統(tǒng)工具。為什么會(huì)給大家介紹這個(gè)工具呢,是因?yàn)槲冶旧淼囊淮谓?jīng)歷讓自己注意到了這個(gè)工具的存在價(jià)值,前幾天電腦經(jīng)常會(huì)反應(yīng)慢,很卡,但是自我感覺不是硬件的問題,而且運(yùn)行的程序不應(yīng)該太占資源,想來想去不知道所以然,就想到了想要看看是什么原因造成了這樣的狀態(tài),用什么方法呢?突然靈光一閃想到了以前用過的一個(gè)工具-Windows7資源監(jiān)視器.
想監(jiān)控Windows7的所有運(yùn)行程序和網(wǎng)絡(luò)使用情況,但找不到比任務(wù)管理器更好用的軟件?在正版Windows7里,無論是Win7旗艦版還是家庭版,都可以找到一個(gè)比任務(wù)管理器功能更強(qiáng)大更專業(yè)的工具——Windows 資源管理器。
Windows7資源監(jiān)視器是一個(gè)功能強(qiáng)大的工具,用于了解進(jìn)程和服務(wù)如何使用系統(tǒng)資源。除了實(shí)時(shí)監(jiān)視資源使用情況外,資源監(jiān)視器還可以幫助分析沒有響應(yīng)的進(jìn)程,確定哪些應(yīng)用程序正在使用文件,以及控制進(jìn)程和服務(wù)。
簡(jiǎn)單地說,用戶可以用Windows7資源監(jiān)視器監(jiān)視軟件程序的一舉一動(dòng),看看哪個(gè)軟件最吃資源,看看哪個(gè)軟件老是在上傳,看看哪個(gè)軟件老是在掃描電腦。(對(duì)于電腦硬件溫度的監(jiān)測(cè),可以使用驅(qū)動(dòng)人生)
打開Windows7資源監(jiān)視器的`方法非常簡(jiǎn)單,在Windows7開始菜單的搜索框上輸入“資源監(jiān)視器”,然后按“Enter”就行。
Windows7資源監(jiān)視器
從上圖可以看到,Windows7資源監(jiān)視器可以監(jiān)控CPU、內(nèi)存、硬盤、網(wǎng)絡(luò)四大資源模塊。
監(jiān)視CPU
在監(jiān)視CPU方面,除了可以很直觀地看到CPU的兩個(gè)內(nèi)核的占有率之外,還能詳細(xì)看到每個(gè)程序占用多少資源。同時(shí),可以查看某個(gè)程序關(guān)聯(lián)的服務(wù)、句柄和模塊。
監(jiān)視內(nèi)存
在監(jiān)視內(nèi)存方面,用戶可以很直觀地看到已經(jīng)被使用的物理內(nèi)存有多少和還剩多少。用戶也可以單獨(dú)查看某個(gè)進(jìn)程的詳細(xì)內(nèi)存使用情況。
監(jiān)視磁盤
系統(tǒng)里面的軟件有沒有不守規(guī)矩隨便查看電腦的里面的隱私文件?用監(jiān)視磁盤功能就可以查看這個(gè)軟件究竟“動(dòng)”過哪些文件。如下圖所示,可以看到QQ.exe進(jìn)程的詳細(xì)操作。
監(jiān)視網(wǎng)絡(luò)
想知道哪個(gè)軟件導(dǎo)致上網(wǎng)變慢,在Windows資源監(jiān)視器里可以看到所有程序占用網(wǎng)絡(luò)資源情況,包括下載和上傳情況。什么黑客軟件都無法逃出這里的監(jiān)視。
關(guān)掉無法正常關(guān)閉的程序或進(jìn)程
當(dāng)某個(gè)程序崩潰無法正常關(guān)閉時(shí),除了可以在Windows7資源監(jiān)視器里分析得出什么問題之外,還能選擇掛起或者結(jié)束這個(gè)崩潰的進(jìn)程。
假如一個(gè)進(jìn)程顯示暫時(shí)無法響應(yīng),在這里點(diǎn)擊“分析等待鏈”,可以看到這個(gè)程序是不是在等待其他程序完成了才能繼續(xù)運(yùn)行。可以減少一些錯(cuò)誤判斷。
如果發(fā)現(xiàn)電腦運(yùn)行緩慢或者上網(wǎng)極慢,可以通過這個(gè)專業(yè)的的Windows7資源監(jiān)視器來找出原因所在,可能是某個(gè)程序正在偷偷運(yùn)行,也可能是某個(gè)軟件在拼命上傳資料。
總之,當(dāng)你想要監(jiān)視電腦程序的一舉一動(dòng)時(shí),想排除沒響應(yīng)的程序故障,可以優(yōu)先考慮這個(gè)專業(yè)的Windows7資源監(jiān)視器軟件。
win10怎么查看自己的電腦有沒被監(jiān)控:
1.按下【Ctrl】+【Shift】+【ESC】,打開任務(wù)管理器。
2.然后點(diǎn)擊下方的【詳細(xì)信息】。
3.然后去詳細(xì)的查看你的【進(jìn)程】,發(fā)現(xiàn)可疑項(xiàng)目,就進(jìn)行排查或者【結(jié)束任務(wù)】。
4.然后從開始菜單中打開【設(shè)置】。
5.選擇【隱私】進(jìn)入。
6.將坐標(biāo)一欄的所有權(quán)限進(jìn)行查詢,建議關(guān)閉權(quán)限,放置隱私被泄露。
7.實(shí)在不行,我們也可進(jìn)行系統(tǒng)的重裝。
網(wǎng)站題目:關(guān)于監(jiān)視windows系統(tǒng)的信息
轉(zhuǎn)載注明:http://www.chinadenli.net/article48/dseochp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供微信公眾號(hào)、定制網(wǎng)站、網(wǎng)站維護(hù)、網(wǎng)頁(yè)設(shè)計(jì)公司、網(wǎng)站導(dǎo)航、建站公司
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)
營(yíng)銷型網(wǎng)站建設(shè)知識(shí)