1. 程式人生 > >zabbix監控windows進程

zabbix監控windows進程

log 管理工具 hist 2-0 linux c 網絡 process 如果 ref

配置相關信息 server: linux centos 6.8

agent: windows server 2008 r2

版本:zabbix 3.0.4 server agnet 3.0.0


# 因客戶端連接服務器服務老是中斷,先判斷是不是由進程產生的問題,

1、比如進程在一分鐘內突然中斷,監控就會顯示內存為空,那麽就能說明是這個進程掛了;

2、網絡可以直接監控服務器連接的交換機端口,如果沒有流量說明機器掛了.


1.配置zabbix agent相關配置

2.安裝zabbix agent服務

3.啟動服務

4.檢查客戶端是否已連接服務

5.查看windows進程項

6.配置zabbix server


1.配置zabbix agent相關配置

找到conf下的配置文件 zabbix_agentd.win.conf ,修改LogFile、Server、Hostname這三個參數。具體配置如下:

LogFile=c:\zabbix_agentd.log # 日誌路徑

Server=192.168.1.224 # 服務器地址

Hostname=f523540 # 本地主機名稱

ServerActive=192.168.1.224 #zabbix server地址


2.安裝zabbix agent服務

windows控制臺下執行以下命令:

D:\zabbix\bin\win32\zabbix_agentd.exe -c D:\zabbix\conf\zabbix_agentd.win.conf -i ,具體如截圖:

技術分享圖片


3.啟動服務

技術分享圖片



4.檢查客戶端是否已連接服務

# 登陸zabbix服務查看機器是否已經連接 這裏說明已經連接上 只是主機沒法查找

技術分享圖片


5.查看windows進程項

管理工具 -- 性能監視器

技術分享圖片

技術分享圖片

技術分享圖片


6.配置zabbix server

技術分享圖片

技術分享圖片

# perf_counter 這個是關鍵字一定不能省,想監控內存之類的 更性後面那一堆值就行

perf_counter[\Process(U8AllAuthServer)\Working Set - Private]


技術分享圖片


技術分享圖片


7. 配置項導入

<?xml version="1.0" encoding="UTF-8"?>

<zabbix_export>

<version>3.0</version>

<date>2018-02-08T03:07:50Z</date>

<groups>

<group>

<name>Linux servers</name>

</group>

</groups>

<hosts>

<host>

<host>U8SERVER</host>

<name>U8SERVER</name>

<description/>

<proxy/>

<status>0</status>

<ipmi_authtype>-1</ipmi_authtype>

<ipmi_privilege>2</ipmi_privilege>

<ipmi_username/>

<ipmi_password/>

<tls_connect>1</tls_connect>

<tls_accept>1</tls_accept>

<tls_issuer/>

<tls_subject/>

<tls_psk_identity/>

<tls_psk/>

<templates/>

<groups>

<group>

<name>Linux servers</name>

</group>

</groups>

<interfaces>

<interface>

<default>1</default>

<type>1</type>

<useip>1</useip>

<ip>192.168.1.1</ip>

<dns/>

<port>10050</port>

<bulk>1</bulk>

<interface_ref>if1</interface_ref>

</interface>

</interfaces>

<applications/>

<items>

<item>

<name>U8_memcache</name>

<type>0</type>

<snmp_community/>

<multiplier>0</multiplier>

<snmp_oid/>

<key>perf_counter[\Process(memcached)\Working Set - Private]</key>

<delay>30</delay>

<history>90</history>

<trends>365</trends>

<status>0</status>

<value_type>0</value_type>

<allowed_hosts/>

<units/>

<delta>0</delta>

<snmpv3_contextname/>

<snmpv3_securityname/>

<snmpv3_securitylevel>0</snmpv3_securitylevel>

<snmpv3_authprotocol>0</snmpv3_authprotocol>

<snmpv3_authpassphrase/>

<snmpv3_privprotocol>0</snmpv3_privprotocol>

<snmpv3_privpassphrase/>

<formula>1</formula>

<delay_flex/>

<params/>

<ipmi_sensor/>

<data_type>0</data_type>

<authtype>0</authtype>

<username/>

<password/>

<publickey/>

<privatekey/>

<port/>

<description/>

<inventory_link>0</inventory_link>

<applications/>

<valuemap/>

<logtimefmt/>

<interface_ref>if1</interface_ref>

</item>

<item>

<name>U8_AllAuthServer</name>

<type>0</type>

<snmp_community/>

<multiplier>0</multiplier>

<snmp_oid/>

<key>perf_counter[\Process(U8AllAuthServer)\Working Set - Private]</key>

<delay>30</delay>

<history>90</history>

<trends>365</trends>

<status>0</status>

<value_type>0</value_type>

<allowed_hosts/>

<units/>

<delta>0</delta>

<snmpv3_contextname/>

<snmpv3_securityname/>

<snmpv3_securitylevel>0</snmpv3_securitylevel>

<snmpv3_authprotocol>0</snmpv3_authprotocol>

<snmpv3_authpassphrase/>

<snmpv3_privprotocol>0</snmpv3_privprotocol>

<snmpv3_privpassphrase/>

<formula>1</formula>

<delay_flex/>

<params/>

<ipmi_sensor/>

<data_type>0</data_type>

<authtype>0</authtype>

<username/>

<password/>

<publickey/>

<privatekey/>

<port/>

<description/>

<inventory_link>0</inventory_link>

<applications/>

<valuemap/>

<logtimefmt/>

<interface_ref>if1</interface_ref>

</item>

<item>

<name>U8_DispatchService</name>

<type>0</type>

<snmp_community/>

<multiplier>0</multiplier>

<snmp_oid/>

<key>perf_counter[\Process(U8DispatchService)\Working Set - Private]</key>

<delay>30</delay>

<history>90</history>

<trends>365</trends>

<status>0</status>

<value_type>0</value_type>

<allowed_hosts/>

<units/>

<delta>0</delta>

<snmpv3_contextname/>

<snmpv3_securityname/>

<snmpv3_securitylevel>0</snmpv3_securitylevel>

<snmpv3_authprotocol>0</snmpv3_authprotocol>

<snmpv3_authpassphrase/>

<snmpv3_privprotocol>0</snmpv3_privprotocol>

<snmpv3_privpassphrase/>

<formula>1</formula>

<delay_flex/>

<params/>

<ipmi_sensor/>

<data_type>0</data_type>

<authtype>0</authtype>

<username/>

<password/>

<publickey/>

<privatekey/>

<port/>

<description/>

<inventory_link>0</inventory_link>

<applications/>

<valuemap/>

<logtimefmt/>

<interface_ref>if1</interface_ref>

</item>

<item>

<name>U8_KeyManagePool</name>

<type>0</type>

<snmp_community/>

<multiplier>0</multiplier>

<snmp_oid/>

<key>perf_counter[\Process(U8KeyManagePool)\Working Set - Private]</key>

<delay>30</delay>

<history>90</history>

<trends>365</trends>

<status>0</status>

<value_type>0</value_type>

<allowed_hosts/>

<units/>

<delta>0</delta>

<snmpv3_contextname/>

<snmpv3_securityname/>

<snmpv3_securitylevel>0</snmpv3_securitylevel>

<snmpv3_authprotocol>0</snmpv3_authprotocol>

<snmpv3_authpassphrase/>

<snmpv3_privprotocol>0</snmpv3_privprotocol>

<snmpv3_privpassphrase/>

<formula>1</formula>

<delay_flex/>

<params/>

<ipmi_sensor/>

<data_type>0</data_type>

<authtype>0</authtype>

<username/>

<password/>

<publickey/>

<privatekey/>

<port/>

<description/>

<inventory_link>0</inventory_link>

<applications/>

<valuemap/>

<logtimefmt/>

<interface_ref>if1</interface_ref>

</item>

<item>

<name>U8_MPool</name>

<type>0</type>

<snmp_community/>

<multiplier>0</multiplier>

<snmp_oid/>

<key>perf_counter[\Process(U8MPool)\Working Set - Private]</key>

<delay>30</delay>

<history>90</history>

<trends>365</trends>

<status>0</status>

<value_type>0</value_type>

<allowed_hosts/>

<units/>

<delta>0</delta>

<snmpv3_contextname/>

<snmpv3_securityname/>

<snmpv3_securitylevel>0</snmpv3_securitylevel>

<snmpv3_authprotocol>0</snmpv3_authprotocol>

<snmpv3_authpassphrase/>

<snmpv3_privprotocol>0</snmpv3_privprotocol>

<snmpv3_privpassphrase/>

<formula>1</formula>

<delay_flex/>

<params/>

<ipmi_sensor/>

<data_type>0</data_type>

<authtype>0</authtype>

<username/>

<password/>

<publickey/>

<privatekey/>

<port/>

<description/>

<inventory_link>0</inventory_link>

<applications/>

<valuemap/>

<logtimefmt/>

<interface_ref>if1</interface_ref>

</item>

<item>

<name>U8_SCMPool</name>

<type>0</type>

<snmp_community/>

<multiplier>0</multiplier>

<snmp_oid/>

<key>perf_counter[\Process(U8SCMPool)\Working Set - Private]</key>

<delay>30</delay>

<history>90</history>

<trends>365</trends>

<status>0</status>

<value_type>0</value_type>

<allowed_hosts/>

<units/>

<delta>0</delta>

<snmpv3_contextname/>

<snmpv3_securityname/>

<snmpv3_securitylevel>0</snmpv3_securitylevel>

<snmpv3_authprotocol>0</snmpv3_authprotocol>

<snmpv3_authpassphrase/>

<snmpv3_privprotocol>0</snmpv3_privprotocol>

<snmpv3_privpassphrase/>

<formula>1</formula>

<delay_flex/>

<params/>

<ipmi_sensor/>

<data_type>0</data_type>

<authtype>0</authtype>

<username/>

<password/>

<publickey/>

<privatekey/>

<port/>

<description/>

<inventory_link>0</inventory_link>

<applications/>

<valuemap/>

<logtimefmt/>

<interface_ref>if1</interface_ref>

</item>

<item>

<name>U8_TaskService</name>

<type>0</type>

<snmp_community/>

<multiplier>0</multiplier>

<snmp_oid/>

<key>perf_counter[\Process(U8TaskService)\Working Set - Private]</key>

<delay>30</delay>

<history>90</history>

<trends>365</trends>

<status>0</status>

<value_type>0</value_type>

<allowed_hosts/>

<units/>

<delta>0</delta>

<snmpv3_contextname/>

<snmpv3_securityname/>

<snmpv3_securitylevel>0</snmpv3_securitylevel>

<snmpv3_authprotocol>0</snmpv3_authprotocol>

<snmpv3_authpassphrase/>

<snmpv3_privprotocol>0</snmpv3_privprotocol>

<snmpv3_privpassphrase/>

<formula>1</formula>

<delay_flex/>

<params/>

<ipmi_sensor/>

<data_type>0</data_type>

<authtype>0</authtype>

<username/>

<password/>

<publickey/>

<privatekey/>

<port/>

<description/>

<inventory_link>0</inventory_link>

<applications/>

<valuemap/>

<logtimefmt/>

<interface_ref>if1</interface_ref>

</item>

<item>

<name>U8_WebPool</name>

<type>0</type>

<snmp_community/>

<multiplier>0</multiplier>

<snmp_oid/>

<key>perf_counter[\Process(U8WebPool)\Working Set - Private]</key>

<delay>30</delay>

<history>90</history>

<trends>365</trends>

<status>0</status>

<value_type>0</value_type>

<allowed_hosts/>

<units/>

<delta>0</delta>

<snmpv3_contextname/>

<snmpv3_securityname/>

<snmpv3_securitylevel>0</snmpv3_securitylevel>

<snmpv3_authprotocol>0</snmpv3_authprotocol>

<snmpv3_authpassphrase/>

<snmpv3_privprotocol>0</snmpv3_privprotocol>

<snmpv3_privpassphrase/>

<formula>1</formula>

<delay_flex/>

<params/>

<ipmi_sensor/>

<data_type>0</data_type>

<authtype>0</authtype>

<username/>

<password/>

<publickey/>

<privatekey/>

<port/>

<description/>

<inventory_link>0</inventory_link>

<applications/>

<valuemap/>

<logtimefmt/>

<interface_ref>if1</interface_ref>

</item>

<item>

<name>U8_UTU.Services</name>

<type>0</type>

<snmp_community/>

<multiplier>0</multiplier>

<snmp_oid/>

<key>perf_counter[\Process(UFIDA.U8.ECE.UTU.Services)\Working Set - Private]</key>

<delay>30</delay>

<history>90</history>

<trends>365</trends>

<status>0</status>

<value_type>0</value_type>

<allowed_hosts/>

<units/>

<delta>0</delta>

<snmpv3_contextname/>

<snmpv3_securityname/>

<snmpv3_securitylevel>0</snmpv3_securitylevel>

<snmpv3_authprotocol>0</snmpv3_authprotocol>

<snmpv3_authpassphrase/>

<snmpv3_privprotocol>0</snmpv3_privprotocol>

<snmpv3_privpassphrase/>

<formula>1</formula>

<delay_flex/>

<params/>

<ipmi_sensor/>

<data_type>0</data_type>

<authtype>0</authtype>

<username/>

<password/>

<publickey/>

<privatekey/>

<port/>

<description/>

<inventory_link>0</inventory_link>

<applications/>

<valuemap/>

<logtimefmt/>

<interface_ref>if1</interface_ref>

</item>

<item>

<name>Ub_Report.SLReportService</name>

<type>0</type>

<snmp_community/>

<multiplier>0</multiplier>

<snmp_oid/>

<key>perf_counter[\Process(UFIDA.U8.Report.SLReportService)\Working Set - Private]</key>

<delay>30</delay>

<history>90</history>

<trends>365</trends>

<status>0</status>

<value_type>0</value_type>

<allowed_hosts/>

<units/>

<delta>0</delta>

<snmpv3_contextname/>

<snmpv3_securityname/>

<snmpv3_securitylevel>0</snmpv3_securitylevel>

<snmpv3_authprotocol>0</snmpv3_authprotocol>

<snmpv3_authpassphrase/>

<snmpv3_privprotocol>0</snmpv3_privprotocol>

<snmpv3_privpassphrase/>

<formula>1</formula>

<delay_flex/>

<params/>

<ipmi_sensor/>

<data_type>0</data_type>

<authtype>0</authtype>

<username/>

<password/>

<publickey/>

<privatekey/>

<port/>

<description/>

<inventory_link>0</inventory_link>

<applications/>

<valuemap/>

<logtimefmt/>

<interface_ref>if1</interface_ref>

</item>

</items>

<discovery_rules/>

<macros/>

<inventory/>

</host>

</hosts>

<graphs>

<graph>

<name>U8_process</name>

<width>900</width>

<height>200</height>

<yaxismin>0.0000</yaxismin>

<yaxismax>100.0000</yaxismax>

<show_work_period>1</show_work_period>

<show_triggers>1</show_triggers>

<type>0</type>

<show_legend>1</show_legend>

<show_3d>0</show_3d>

<percent_left>0.0000</percent_left>

<percent_right>0.0000</percent_right>

<ymin_type_1>0</ymin_type_1>

<ymax_type_1>0</ymax_type_1>

<ymin_item_1>0</ymin_item_1>

<ymax_item_1>0</ymax_item_1>

<graph_items>

<graph_item>

<sortorder>0</sortorder>

<drawtype>2</drawtype>

<color>A54F10</color>

<yaxisside>0</yaxisside>

<calc_fnc>2</calc_fnc>

<type>0</type>

<item>

<host>U8SERVER</host>

<key>perf_counter[\Process(U8AllAuthServer)\Working Set - Private]</key>

</item>

</graph_item>

<graph_item>

<sortorder>1</sortorder>

<drawtype>2</drawtype>

<color>FC6EA3</color>

<yaxisside>0</yaxisside>

<calc_fnc>2</calc_fnc>

<type>0</type>

<item>

<host>U8SERVER</host>

<key>perf_counter[\Process(U8DispatchService)\Working Set - Private]</key>

</item>

</graph_item>

<graph_item>

<sortorder>2</sortorder>

<drawtype>2</drawtype>

<color>6C59DC</color>

<yaxisside>0</yaxisside>

<calc_fnc>2</calc_fnc>

<type>0</type>

<item>

<host>U8SERVER</host>

<key>perf_counter[\Process(U8KeyManagePool)\Working Set - Private]</key>

</item>

</graph_item>

<graph_item>

<sortorder>3</sortorder>

<drawtype>2</drawtype>

<color>AC8C14</color>

<yaxisside>0</yaxisside>

<calc_fnc>2</calc_fnc>

<type>0</type>

<item>

<host>U8SERVER</host>

<key>perf_counter[\Process(memcached)\Working Set - Private]</key>

</item>

</graph_item>

<graph_item>

<sortorder>4</sortorder>

<drawtype>2</drawtype>

<color>611F27</color>

<yaxisside>0</yaxisside>

<calc_fnc>2</calc_fnc>

<type>0</type>

<item>

<host>U8SERVER</host>

<key>perf_counter[\Process(U8MPool)\Working Set - Private]</key>

</item>

</graph_item>

<graph_item>

<sortorder>5</sortorder>

<drawtype>2</drawtype>

<color>F230E0</color>

<yaxisside>0</yaxisside>

<calc_fnc>2</calc_fnc>

<type>0</type>

<item>

<host>U8SERVER</host>

<key>perf_counter[\Process(U8SCMPool)\Working Set - Private]</key>

</item>

</graph_item>

<graph_item>

<sortorder>6</sortorder>

<drawtype>2</drawtype>

<color>5CCD18</color>

<yaxisside>0</yaxisside>

<calc_fnc>2</calc_fnc>

<type>0</type>

<item>

<host>U8SERVER</host>

<key>perf_counter[\Process(U8TaskService)\Working Set - Private]</key>

</item>

</graph_item>

<graph_item>

<sortorder>7</sortorder>

<drawtype>2</drawtype>

<color>BB2A02</color>

<yaxisside>0</yaxisside>

<calc_fnc>2</calc_fnc>

<type>0</type>

<item>

<host>U8SERVER</host>

<key>perf_counter[\Process(UFIDA.U8.ECE.UTU.Services)\Working Set - Private]</key>

</item>

</graph_item>

<graph_item>

<sortorder>8</sortorder>

<drawtype>2</drawtype>

<color>5A2B57</color>

<yaxisside>0</yaxisside>

<calc_fnc>2</calc_fnc>

<type>0</type>

<item>

<host>U8SERVER</host>

<key>perf_counter[\Process(U8WebPool)\Working Set - Private]</key>

</item>

</graph_item>

<graph_item>

<sortorder>9</sortorder>

<drawtype>2</drawtype>

<color>89ABF8</color>

<yaxisside>0</yaxisside>

<calc_fnc>2</calc_fnc>

<type>0</type>

<item>

<host>U8SERVER</host>

<key>perf_counter[\Process(UFIDA.U8.Report.SLReportService)\Working Set - Private]</key>

</item>

</graph_item>

</graph_items>

</graph>

</graphs>

</zabbix_export>


















zabbix監控windows進程