zabbix监控 zookeeper

线上zookeeper集群越来多,很有必要对其运行状态进行监控,由于线上监控大多采用的是zabbix,因此,只需要写好采集数据的脚本即可,不用关心web端的展示和监控报警,比较方便。
1.导入zookeeper模板,模板内容在最后,复制粘贴保存为zookeeper.xml即可
点击template/import,选择文件,导入,如果报错,会提示哪一行有问题,删除对应的那一块,再导入即可。


Paste_Image.png

2.导入后,在template页面就可以看到了,然后添加相应的host。

Paste_Image.png

3.模板中item的采集数据方式为zabbix trapper。也就是通过zabbix_sender来发送数据。关于zabbix_trapper,请参考https://www.2goo.info/weblog/detail/233434

4.测试数据的采集
利用zabbix_sender命令,参数介绍:
-z: zabbix_server的IP地址
-s: zabbix_agent的HostName名
-k: 模板里key的名字
-o:key对应的value
-vv: 开启debug模式,输出详细信息

bin/zabbix_sender -z 10.10.64.202 -s "oss-mon-kafka-bjc-001" -k "zookeeper.status[zk_num_alive_connections]" -o 100 -vv
Paste_Image.png

发送成功后,在页面端点击monitor/latest data/,然后筛选对应的HostName和application,就能查看到对应的value


Paste_Image.png

5.采集发送打通后,接下来就要编写采集脚本,然后定时发送。采集脚本采用python,如下:

#!/usr/bin/python  
#coding:utf-8
""" Check Zookeeper Cluster  

zookeeper version should be newer than 3.4.x  

# echo mntr|nc 127.0.0.1 2181  
zk_version  3.4.6-1569965, built on 02/20/2014 09:09 GMT  
zk_avg_latency  0  
zk_max_latency  4  
zk_min_latency  0  
zk_packets_received 84467  
zk_packets_sent 84466  
zk_num_alive_connections    3  
zk_outstanding_requests 0  
zk_server_state follower  
zk_znode_count  17159  
zk_watch_count  2  
zk_ephemerals_count 1  
zk_approximate_data_size    6666471  
zk_open_file_descriptor_count   29  
zk_max_file_descriptor_count    102400  

# echo ruok|nc 127.0.0.1 2181  
imok  

"""  
import sys  
import socket  
import re  
import subprocess  
from StringIO import StringIO  
import os  

#这两个参数依据你安装zabbix目录而定。
zabbix_sender = '/usr/bin/zabbix_sender'  
zabbix_conf = '/etc/zabbix/zabbix_agentd.conf'  
send_to_zabbix = 1  

############# get zookeeper server status  
class ZooKeeperServer(object):  

    def __init__(self, host='localhost', port='2181', timeout=1):  
        self._address = (host, int(port))  
        self._timeout = timeout  
        self._result  = {}  

    def _create_socket(self):  
        return socket.socket()  

    def _send_cmd(self, cmd):  
        """ Send a 4letter word command to the server """  
        s = self._create_socket()  
        s.settimeout(self._timeout)  
        s.connect(self._address)  
        s.send(cmd)  
        data = s.recv(2048)  
        s.close()  
        return data  

    def get_stats(self):  
        """ Get ZooKeeper server stats as a map """  
        data_mntr = self._send_cmd('mntr')  
        data_ruok = self._send_cmd('ruok')  
        if data_mntr:  
            result_mntr = self._parse(data_mntr)  
        if data_ruok:  
            result_ruok = self._parse_ruok(data_ruok)  

        self._result = dict(result_mntr.items() + result_ruok.items())  

        if not self._result.has_key('zk_followers') and not self._result.has_key('zk_synced_followers') and not self._result.has_key('zk_pending_syncs'):  

           ##### the tree metrics only exposed on leader role zookeeper server, we just set the followers' to 0  
           leader_only = {'zk_followers':0,'zk_synced_followers':0,'zk_pending_syncs':0}      
           self._result = dict(result_mntr.items() + result_ruok.items() + leader_only.items() )  

        return self._result    

    def _parse(self, data):  
        """ Parse the output from the 'mntr' 4letter word command """  
        h = StringIO(data)  

        result = {}  
        for line in h.readlines():  
            try:  
                key, value = self._parse_line(line)  
                result[key] = value  
            except ValueError:  
                pass # ignore broken lines  

        return result  

    def _parse_ruok(self, data):  
        """ Parse the output from the 'ruok' 4letter word command """  

        h = StringIO(data)  

        result = {}  

        ruok = h.readline()  
        if ruok:  
           result['zk_server_ruok'] = ruok  

        return result  

    def _parse_line(self, line):  
        try:  
            key, value = map(str.strip, line.split('\t'))  
        except ValueError:  
            raise ValueError('Found invalid line: %s' % line)  

        if not key:  
            raise ValueError('The key is mandatory and should not be empty')  

        try:  
            value = int(value)  
        except (TypeError, ValueError):  
            pass  

        return key, value  

    def get_pid(self):  
#  ps -ef|grep java|grep zookeeper|awk '{print $2}'  
         pidarg = '''ps -ef|grep java|grep zookeeper|grep -v grep|awk '{print $2}' '''   
         pidout = subprocess.Popen(pidarg,shell=True,stdout=subprocess.PIPE)  
         pid = pidout.stdout.readline().strip('\n')  
         return pid  


    def send_to_zabbix(self, metric):  
         key = "zookeeper.status[" +  metric + "]"  

         if send_to_zabbix > 0:  
             #print key + ":" + str(self._result[metric])  
             try:  

                subprocess.call([zabbix_sender, "-c", zabbix_conf, "-k", key, "-o", str(self._result[metric]) ], stdout=FNULL, stderr=FNULL, shell=False)  
             except OSError, detail:  
                print "Something went wrong while exectuting zabbix_sender : ", detail  
         else:  
                print "Simulation: the following command would be execucted :\n", zabbix_sender, "-c", zabbix_conf, "-k", key, "-o", self._result[metric], "\n"  

def usage():  
        """Display program usage"""  

        print "\nUsage : ", sys.argv[0], " alive|all"  
        print "Modes : \n\talive : Return pid of running zookeeper\n\tall : Send zookeeper stats as well"  
        sys.exit(1)  

accepted_modes = ['alive', 'all']  

if len(sys.argv) == 2 and sys.argv[1] in accepted_modes:  
        mode = sys.argv[1]  
else:  
        usage()  

zk = ZooKeeperServer()  
#  print zk.get_stats()  
pid = zk.get_pid()  

if pid != "" and  mode == 'all':  
   zk.get_stats()  
   # print zk._result  
   FNULL = open(os.devnull, 'w')  
   for key in zk._result:  
       zk.send_to_zabbix(key)  
   FNULL.close()  
   print pid  

elif pid != "" and mode == "alive":  
    print pid  
else:  
    print 0

执行结果:

#获取zookeeper的所有key的值
[root@oss-mon-kafka-bjc-001 scripts]# python check_zookeeper.py all
{'zk_followers': 0, 'zk_outstanding_requests': 0, 'zk_approximate_data_size': 50747, 'zk_packets_sent': 31693631, 'zk_pending_syncs': 0, 'zk_avg_latency': 0, 'zk_version': '3.4.6-1569965, built on 02/20/2014 09:09 GMT', 'zk_watch_count': 47, 'zk_packets_received': 31693282, 'zk_open_file_descriptor_count': 33, 'zk_server_ruok': 'imok', 'zk_server_state': 'follower', 'zk_synced_followers': 0, 'zk_max_latency': 1643, 'zk_num_alive_connections': 6, 'zk_min_latency': 0, 'zk_ephemerals_count': 83, 'zk_znode_count': 700, 'zk_max_file_descriptor_count': 655350}
2750
#获取zookeeper的pid
[root@oss-mon-kafka-bjc-001 scripts]# python check_zookeeper.py alive
2750

6.配置zabbix的采集配置策略
增加脚本可执行权限
chmod +x /usr/local/zabbix-agent/scripts/check_zookeeper.py
zabbix配置文件
vim /etc/zabbix/zabbix_agentd.d/check_zookeeper.conf
增加以下内容
UserParameter=zookeeper.status[*],/usr/bin/python /usr/local/zabbix-agent/scripts/check_zookeeper.py $1
重新启动zabbix-agent服务
service zabbix-agent restart

7.web端观察采集数据是否正常,如果没有数据,则需调试check_zookeeper.py,看问题在哪。

Paste_Image.png

最后附上zookeeper的监控模板,比较长,简书貌似不支持附件,只能贴上来了。

<?xml version="1.0" encoding="UTF-8"?>  
<zabbix_export>  
    <version>2.0</version>  
    <date>2016-02-27T15:15:09Z</date>  
    <groups>  
        <group>  
            <name>Templates</name>  
        </group>  
    </groups>  
    <templates>  
        <template>  
            <template>Template ZooKeeper</template>  
            <name>Template ZooKeeper</name>  
            <description/>  
            <groups>  
                <group>  
                    <name>Templates</name>  
                </group>  
            </groups>  
            <applications>  
                <application>  
                    <name>ZooKeeper Status</name>  
                </application>  
            </applications>  
            <items>  
                <item>  
                    <name>zookeeper alive connections</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_num_alive_connections]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper approximate data size</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_approximate_data_size]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</value_type>  
                    <allowed_hosts/>  
                    <units>B</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper average latency</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_avg_latency]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</value_type>  
                    <allowed_hosts/>  
                    <units>tick</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper ephemerals count</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_ephemerals_count]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper leader's followers</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_followers]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper leader's pending syncs</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_pending_syncs]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper leader's synced followers</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_synced_followers]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper max file descriptor count</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_max_file_descriptor_count]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper max latency</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_max_latency]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</value_type>  
                    <allowed_hosts/>  
                    <units>tick</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper min latency</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_min_latency]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</value_type>  
                    <allowed_hosts/>  
                    <units>tick</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper opened file descriptor count</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_open_file_descriptor_count]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper outstanding requests</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_outstanding_requests]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper packages received</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_packets_received]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper packages sent</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_packets_sent]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper pid</name>  
                    <type>0</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[all]</key>  
                    <delay>30</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper response checking</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_server_ruok]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>1</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper state role</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_server_state]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>1</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper version</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_version]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>1</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper watches count</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_watch_count]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
                <item>  
                    <name>zookeeper znodes count</name>  
                    <type>2</type>  
                    <snmp_community/>  
                    <multiplier>0</multiplier>  
                    <snmp_oid/>  
                    <key>zookeeper.status[zk_znode_count]</key>  
                    <delay>0</delay>  
                    <history>90</history>  
                    <trends>365</trends>  
                    <status>0</status>  
                    <value_type>3</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>  
                        <application>  
                            <name>ZooKeeper Status</name>  
                        </application>  
                    </applications>  
                    <valuemap/>  
                    <logtimefmt/>  
                </item>  
            </items>  
            <discovery_rules/>  
            <macros/>  
            <templates/>  
            <screens/>  
        </template>  
    </templates>  
    <triggers>  
        <trigger>  
            <expression>{Template ZooKeeper:zookeeper.status[zk_outstanding_requests].last()}>10</expression>  
            <name>big outstanding requests number</name>  
            <url/>  
            <status>0</status>  
            <priority>4</priority>  
            <description/>  
            <type>0</type>  
            <dependencies/>  
        </trigger>  
        <trigger>  
            <expression>{Template ZooKeeper:zookeeper.status[zk_pending_syncs].last()}>10</expression>  
            <name>big pending syncs</name>  
            <url/>  
            <status>0</status>  
            <priority>4</priority>  
            <description/>  
            <type>0</type>  
            <dependencies/>  
        </trigger>  
        <trigger>  
            <expression>{Template ZooKeeper:zookeeper.status[zk_avg_latency].last()}>10</expression>  
            <name>large average latency</name>  
            <url/>  
            <status>0</status>  
            <priority>4</priority>  
            <description/>  
            <type>0</type>  
            <dependencies/>  
        </trigger>  
        <trigger>  
            <expression>{Template ZooKeeper:zookeeper.status[zk_open_file_descriptor_count].last()} > {Template ZooKeeper:zookeeper.status[zk_max_file_descriptor_count].last()}*0.85</expression>  
            <name>large file descriptor used</name>  
            <url/>  
            <status>0</status>  
            <priority>4</priority>  
            <description/>  
            <type>0</type>  
            <dependencies/>  
        </trigger>   
        <trigger>  
            <expression>{Template ZooKeeper:zookeeper.status[all].last()}=0</expression>  
            <name>zookeeper is not running</name>  
            <url/>  
            <status>0</status>  
            <priority>4</priority>  
            <description/>  
            <type>0</type>  
            <dependencies/>  
        </trigger>  
        <trigger>  
            <expression>{Template ZooKeeper:zookeeper.status[zk_server_state].abschange()}>0</expression>  
            <name>zookeeper state role has been changed</name>  
            <url/>  
            <status>0</status>  
            <priority>2</priority>  
            <description/>  
            <type>0</type>  
            <dependencies/>  
        </trigger>  
    </triggers>  
    <graphs>  
        <graph>  
            <name>ZooKeeper Alive Connections</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>1</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>0</drawtype>  
                    <color>00DDDD</color>  
                    <yaxisside>0</yaxisside>  
                    <calc_fnc>2</calc_fnc>  
                    <type>0</type>  
                    <item>  
                        <host>Template ZooKeeper</host>  
                        <key>zookeeper.status[zk_num_alive_connections]</key>  
                    </item>  
                </graph_item>  
            </graph_items>  
        </graph>  
        <graph>  
            <name>ZooKeeper Data Size</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>1</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>0</drawtype>  
                    <color>00C800</color>  
                    <yaxisside>0</yaxisside>  
                    <calc_fnc>2</calc_fnc>  
                    <type>0</type>  
                    <item>  
                        <host>Template ZooKeeper</host>  
                        <key>zookeeper.status[zk_approximate_data_size]</key>  
                    </item>  
                </graph_item>  
            </graph_items>  
        </graph>  
        <graph>  
            <name>ZooKeeper Latency</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>00C800</color>  
                    <yaxisside>0</yaxisside>  
                    <calc_fnc>2</calc_fnc>  
                    <type>0</type>  
                    <item>  
                        <host>Template ZooKeeper</host>  
                        <key>zookeeper.status[zk_avg_latency]</key>  
                    </item>  
                </graph_item>  
                <graph_item>  
                    <sortorder>1</sortorder>  
                    <drawtype>2</drawtype>  
                    <color>C80000</color>  
                    <yaxisside>0</yaxisside>  
                    <calc_fnc>2</calc_fnc>  
                    <type>0</type>  
                    <item>  
                        <host>Template ZooKeeper</host>  
                        <key>zookeeper.status[zk_min_latency]</key>  
                    </item>  
                </graph_item>  
                <graph_item>  
                    <sortorder>2</sortorder>  
                    <drawtype>2</drawtype>  
                    <color>0000C8</color>  
                    <yaxisside>0</yaxisside>  
                    <calc_fnc>2</calc_fnc>  
                    <type>0</type>  
                    <item>  
                        <host>Template ZooKeeper</host>  
                        <key>zookeeper.status[zk_max_latency]</key>  
                    </item>  
                </graph_item>  
            </graph_items>  
        </graph>  
        <graph>  
            <name>ZooKeeper Packages Received/Sent</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>1</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>1</sortorder>  
                    <drawtype>0</drawtype>  
                    <color>00C800</color>  
                    <yaxisside>0</yaxisside>  
                    <calc_fnc>2</calc_fnc>  
                    <type>0</type>  
                    <item>  
                        <host>Template ZooKeeper</host>  
                        <key>zookeeper.status[zk_packets_received]</key>  
                    </item>  
                </graph_item>  
                <graph_item>  
                    <sortorder>0</sortorder>  
                    <drawtype>0</drawtype>  
                    <color>FF3333</color>  
                    <yaxisside>0</yaxisside>  
                    <calc_fnc>2</calc_fnc>  
                    <type>0</type>  
                    <item>  
                        <host>Template ZooKeeper</host>  
                        <key>zookeeper.status[zk_packets_sent]</key>  
                    </item>  
                </graph_item>  
            </graph_items>  
        </graph>  
        <graph>  
            <name>ZooKeeper Watches Count</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>1</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>0</drawtype>  
                    <color>660066</color>  
                    <yaxisside>0</yaxisside>  
                    <calc_fnc>2</calc_fnc>  
                    <type>0</type>  
                    <item>  
                        <host>Template ZooKeeper</host>  
                        <key>zookeeper.status[zk_watch_count]</key>  
                    </item>  
                </graph_item>  
            </graph_items>  
        </graph>  
        <graph>  
            <name>ZooKeeper Znodes Count</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>1</drawtype>  
                    <color>FFCCFF</color>  
                    <yaxisside>0</yaxisside>  
                    <calc_fnc>2</calc_fnc>  
                    <type>0</type>  
                    <item>  
                        <host>Template ZooKeeper</host>  
                        <key>zookeeper.status[zk_znode_count]</key>  
                    </item>  
                </graph_item>  
            </graph_items>  
        </graph>  
    </graphs>  
</zabbix_export>  

参考文章
http://blog.csdn.net/reblue520/article/details/52352689

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 204,293评论 6 478
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,604评论 2 381
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 150,958评论 0 337
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,729评论 1 277
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,719评论 5 366
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,630评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 38,000评论 3 397
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,665评论 0 258
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,909评论 1 299
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,646评论 2 321
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,726评论 1 330
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,400评论 4 321
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,986评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,959评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,197评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 44,996评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,481评论 2 342

推荐阅读更多精彩内容

  • Zabbix简介 Zabbix官方网站Zabbix中文文档 本文系统环境是CentOS7x86_64, Zabbi...
    Zhang21阅读 7,955评论 0 37
  • 添加配置文件/usr/local/zabbix/etc/zabbix_agentd.conf.d/check_zo...
    秋幻旎苏阅读 808评论 0 0
  • 1.写在前面 本文主要介绍的是zabbix的编译安装过程,包含它的基础环境LNMP,虽然zabbix官方一般推荐的...
    天之蓝色阅读 2,522评论 0 16
  • zabbix server: 负责接收agent发送的报告信息的核心组件,所有配置、统计数据及操作数据均由其组织进...
    uangianlap阅读 3,165评论 2 3
  • (1) 又到了周末,我已经搬出我原来的家有一周时间了。我自然而然,又情不自禁,或许鬼使神差地又回到了那个埋葬了我三...
    李锵锵阅读 299评论 2 4