zabbix--ODBC 监控mysql
zabbix ODBC 数据库监控
ODBC 是 C 语言开发的、用于访问数据库的中间件接口.zabbix 支持查询任何 ODBC 支持的数据库.zabbix 通过调用
ODBC 来获取数据库的数据以及数据库状态等等信息.
1. 安装 unixODBC
官方主页:http://www.unixodbc.org/download.html.安装方法如下
RedHat/Fedora/Cetnos
使用yum安装,也可以去下载rpm包来安装。
[root@localhost ~]# yum install unixODBC.x86_64 unixODBC-devel.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.zju.edu.cn
* extras: mirrors.njupt.edu.cn
* updates: mirrors.njupt.edu.cn
Package unixODBC-2.3.-.el7.x86_64 already installed and latest version
Package unixODBC-devel-2.3.-.el7.x86_64 already installed and latest version
Nothing to do
[root@localhost ~]#
我现在是在zabbix-server端测试,因为安装zabbix-server需要安装依赖包-unixODBC,所以unixODBC是安装好的。
可以看下odbcins.ini配置文件,是已经配置mysql的
[root@localhost ~]# cat /etc/odbcinst.ini
# Example driver definitions # Driver from the postgresql-odbc package
# Setup from the unixODBC package
[PostgreSQL]
Description = ODBC for PostgreSQL
Driver = /usr/lib/psqlodbcw.so
Setup = /usr/lib/libodbcpsqlS.so
Driver64 = /usr/lib64/psqlodbcw.so
Setup64 = /usr/lib64/libodbcpsqlS.so
FileUsage = # Driver from the mysql-connector-odbc package
# Setup from the unixODBC package
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc5.so
Setup = /usr/lib/libodbcmyS.so
Driver64 = /usr/lib64/libmyodbc5.so
Setup64 = /usr/lib64/libodbcmyS.so
FileUsage =
[root@localhost ~]#
参数详解:
属性 | 描述 |
mysql | 数据库驱动名称. |
Description | 数据库驱动描述. |
Driver | 数据库驱动类库具体路 |
通过运行下面的指令验证系统能找到驱动,如果一切都OK,会返回MySQL的标题:
[root@localhost ~]# odbcinst -q -d
[PostgreSQL]
[MySQL]
上面的知识odbc管理器,接下来需要安装具体要使用的数据库驱动
二、安装 unixODBC 驱动
要监控 mysql 等数据库必须先安装基于 c 开发的 unixODBC 数据库驱动.redhat 直接 yum 安装,suse 使用 zypper 安装.
其他系统,源码安装,官方地址: http://www.unixodbc.org/drivers.html.
redhat/centos
这里也可以使用阿里巴巴提供的开源镜像站:https://opsx.alibaba.com/?lang=zh-CN
[root@localhost ~]# wget https://mirrors.aliyun.com/centos/7.6.1810/os/x86_64/Packages/mysql-connector-odbc-5.2.5-8.el7.x86_64.rpm
---- ::-- https://mirrors.aliyun.com/centos/7.6.1810/os/x86_64/Packages/mysql-connector-odbc-5.2.5-8.el7.x86_64.rpm
Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 183.2.199.237, 119.147.156.230, 113.96.109.93, ...
Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|183.2.199.237|:... connected.
HTTP request sent, awaiting response... OK
Length: (142K) [application/x-redhat-package-manager]
Saving to: ‘mysql-connector-odbc-5.2.-.el7.x86_64.rpm’ %[================================================================================================================================================>] , --.-K/s in .04s -- :: (3.44 MB/s) - ‘mysql-connector-odbc-5.2.-.el7.x86_64.rpm’ saved [/] [root@localhost ~]# ls
anaconda-ks.cfg Music original-ks.cfg Videos
Desktop mysql57-community-release-el7-.noarch.rpm Pictures zabbix-get-3.2.-.el7.x86_64.rpm
Documents mysql-connector-odbc-5.2.-.el7.x86_64.rpm Public zabbix-release-3.2-.el7.noarch.rpm
Downloads mysql-data-dir-backup20190618215814 Templates zabbix-server-mysql-3.2.-.el7.x86_64.rpm
[root@localhost ~]# rpm -ivh mysql-connector-odbc-5.2.-.el7.x86_64.rpm
Preparing... ################################# [%]
Updating / installing...
:mysql-connector-odbc-5.2.-.el7 ################################# [%]
[root@localhost ~]# clear
[root@localhost ~]#
可以看到相关的so文件存在了,要注意odbcinst.ini里的so路径要和这个一致。
[root@localhost ~]# rpm -ql mysql-connector-odbc-5.2.-.el7.x86_64
/usr/lib64/libmyodbc5.so
/usr/lib64/libmyodbc5w.so
/usr/share/doc/mysql-connector-odbc-5.2.
/usr/share/doc/mysql-connector-odbc-5.2./COPYING
/usr/share/doc/mysql-connector-odbc-5.2./ChangeLog
/usr/share/doc/mysql-connector-odbc-5.2./README
/usr/share/doc/mysql-connector-odbc-5.2./README.debug
[root@localhost ~]# ll /usr/lib64/libmyodbc5.so
lrwxrwxrwx root root Jun : /usr/lib64/libmyodbc5.so -> libmyodbc5w.so
[root@localhost ~]#
配置数据源:编辑odbc.ini
PS:如果没有odbc.ini就创建一个
[root@localhost ~]# vim /etc/odbc.ini
[test]
Description = MySQL test database
Driver = mysql
Server = 192.168.1.107
User = root
Password =
Port =
Database = learn_scrapy
[test2]
Description = MySQL test database
Driver = mysql
Server = 127.0.0.1
User = root
Password =
Port =
Database = zabbix
参数详解:
属性 | 描述 |
test | 数据源名称 (DSN). |
Description | 数据源描述. |
Driver | 数据库驱动名 – 在 odbcinst.ini 指定 |
Server | 数据库 IP/DNS. |
User | 数据库用户名. |
Password | 数据库密码. |
Port | 数据库端口 |
Database | 数据库名称 |
验证 ODBC 是否可用,使用 isql(命令 unixODBC 包提供)命令,如下:
[root@localhost ~]# isql test
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> quit;
[root@localhost ~]# isql test2
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL>
命令解释
参数 | 描述 |
help | 列出所有表 |
help tablename | 查询表所有数据,类似 select * from tablename |
quit | 退出 |
遇到问题:
1、进入isql后,执行sql语句,会报错:
解决方法,更换mysql驱动版本,yum源默认5.2版本,我改成5.3、8版本,就能执行。
2、创建 Database Monitoring 的item,启动后,zabbix服务会stop,停用item,则恢复正常。
暂未解决
::205038.462 Zabbix agent item "service.info[Dnscache,state]" on host "10.12.45.7" failed: first network error, wait for seconds
::205053.211 resuming Zabbix agent checks on host "10.12.45.7": connection restored
::205424.775 Got signal [signal:(SIGSEGV),reason:,refaddr:(nil)]. Crashing ...
::205424.775 ====== Fatal information: ======
::205424.775 Program counter: 0x7feedc91daa1
::205424.775 === Registers: ===
::205424.775 r8 = = =
::205424.775 r9 = = =
::205424.775 r10 = 7fff9f159340 = =
::205424.775 r11 = 7feedf454f10 = =
::205424.775 r12 = 7fff9f15a9b0 = =
::205424.775 r13 = dc9375a2 = =
::205424.775 r14 = 7feee15589b0 = =
::205424.775 r15 = 7feee1543830 = =
::205424.775 rdi = = =
::205424.775 rsi = 7feedc9375a2 = =
::205424.775 rbp = 7fff9f159570 = =
::205424.775 rbx = = =
::205424.775 rdx = = =
::205424.775 rax = = =
::205424.775 rcx = = =
::205424.775 rsp = 7fff9f159548 = =
::205424.775 rip = 7feedc91daa1 = =
::205424.775 efl = = =
::205424.776 csgsfs = = =
::205424.776 err = = =
::205424.776 trapno = e = =
::205424.776 oldmask = = =
::205424.776 cr2 = = =
::205424.776 === Backtrace: ===
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](print_fatal_info+0x114) [0x7feedfc4cb40]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](+0xccefc) [0x7feedfc4cefc]
::205424.807 : /lib64/libc.so.(+0x35a00) [0x7feedc7f0a00]
::205424.807 : /lib64/libc.so.(+0x162aa1) [0x7feedc91daa1]
::205424.807 : /usr/lib64/mysql/libmysqlclient.so.(my_strdup+0x18) [0x7feedf454f28]
::205424.807 : /usr/lib64/libmyodbc5w.so(myodbc_init+0x95) [0x7fee98312fdf]
::205424.807 : /usr/lib64/libmyodbc5w.so(my_SQLAllocEnv+0x1c) [0x7fee98316766]
::205424.807 : /usr/lib64/libmyodbc5w.so(SQLAllocHandle+0x44) [0x7fee983177a5]
::205424.807 : /lib64/libodbc.so.(+0xd8dc) [0x7feedec158dc]
::205424.807 : /lib64/libodbc.so.(SQLConnect+0x1a7) [0x7feedec17af7]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](odbc_DBconnect+0x24d) [0x7feedfc8ceb1]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](+0x58768) [0x7feedfbd8768]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](get_value_db+0xa9) [0x7feedfbd8a1c]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](+0x4aead) [0x7feedfbcaead]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](+0x4bff5) [0x7feedfbcbff5]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](poller_thread+0x1b2) [0x7feedfbcccae]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](zbx_thread_start+0x37) [0x7feedfc4dbd3]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](MAIN_ZABBIX_ENTRY+0x5b3) [0x7feedfbb9c6d]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](daemon_start+0x32f) [0x7feedfc4c020]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](main+0x2ba) [0x7feedfbb96b8]
::205424.807 : /lib64/libc.so.(__libc_start_main+0xf5) [0x7feedc7dcaf5]
::205424.807 : /usr/sbin/zabbix_server: poller # [got values in 0.030903 sec, getting values](+0x2df49) [0x7feedfbadf49]
::205424.807 === Memory map: ===
::205424.807 7fee98084000-7fee98094000 r-xp fd: /usr/lib64/libodbcinst.so.2.0.
::205424.807 7fee98094000-7fee98294000 ---p fd: /usr/lib64/libodbcinst.so.2.0.
::205424.807 7fee98294000-7fee98295000 r--p fd: /usr/lib64/libodbcinst.so.2.0.
::205424.807 7fee98295000-7fee98296000 rw-p fd: /usr/lib64/libodbcinst.so.2.0.
::205424.807 7fee98296000-7fee986ae000 r-xp fd: /usr/lib64/libmyodbc5w.so
::205424.807 7fee986ae000-7fee988ad000 ---p fd: /usr/lib64/libmyodbc5w.so
::205424.807 7fee988ad000-7fee988b5000 r--p fd: /usr/lib64/libmyodbc5w.so
::205424.807 7fee988b5000-7fee98938000 rw-p 0041f000 fd: /usr/lib64/libmyodbc5w.so
::205424.807 7fee98938000-7fee9893e000 rw-p :
::205424.807 7fee9893e000-7fee98940000 r-xp fd: /usr/lib64/gconv/ISO8859-.so
::205424.807 7fee98940000-7fee98b3f000 ---p fd: /usr/lib64/gconv/ISO8859-.so
::205424.807 7fee98b3f000-7fee98b40000 r--p fd: /usr/lib64/gconv/ISO8859-.so
::205424.807 7fee98b40000-7fee98b41000 rw-p fd: /usr/lib64/gconv/ISO8859-.so
::205424.807 7fee98b41000-7fee9f068000 r--p fd: /usr/lib/locale/locale-archive
::205424.807 7fee9f068000-7feea7068000 rw-s : /SYSV76002b0b (deleted)
::205424.807 7feea7068000-7feeabd35000 rw-s : /SYSV73002b0b (deleted)
::205424.807 7feeabd35000-7feec7069000 rw-s : /SYSV67002b0b (deleted)
::205424.807 7feec7069000-7feecf069000 rw-s : /SYSV74002b0b (deleted)
::205424.808 7feecf069000-7feecf469000 rw-s : /SYSV48002b0b (deleted)
::205424.808 7feecf469000-7feed7469000 rw-s : /SYSV68002b0b (deleted)
::205424.808 7feed7469000-7feed7471000 r-xp fd: /usr/lib64/libnss_sss.so.
::205424.808 7feed7471000-7feed7670000 ---p fd: /usr/lib64/libnss_sss.so.
::205424.808 7feed7670000-7feed7671000 r--p fd: /usr/lib64/libnss_sss.so.
::205424.808 7feed7671000-7feed7672000 rw-p fd: /usr/lib64/libnss_sss.so.
::205424.808 7feed7672000-7feed767d000 r-xp fd: /usr/lib64/libnss_files-2.17.so
::205424.808 7feed767d000-7feed787c000 ---p 0000b000 fd: /usr/lib64/libnss_files-2.17.so
::205424.808 7feed787c000-7feed787d000 r--p 0000a000 fd: /usr/lib64/libnss_files-2.17.so
::205424.808 7feed787d000-7feed787e000 rw-p 0000b000 fd: /usr/lib64/libnss_files-2.17.so
::205424.808 7feed787e000-7feed78dd000 r-xp fd: /usr/lib64/libpcre.so.1.2.
::205424.808 7feed78dd000-7feed7add000 ---p 0005f000 fd: /usr/lib64/libpcre.so.1.2.
::205424.808 7feed7add000-7feed7ade000 r--p 0005f000 fd: /usr/lib64/libpcre.so.1.2.
::205424.808 7feed7ade000-7feed7adf000 rw-p fd: /usr/lib64/libpcre.so.1.2.
::205424.808 7feed7adf000-7feed7b00000 r-xp fd: /usr/lib64/libselinux.so.
::205424.808 7feed7b00000-7feed7d00000 ---p fd: /usr/lib64/libselinux.so.
::205424.808 7feed7d00000-7feed7d01000 r--p fd: /usr/lib64/libselinux.so.
::205424.808 7feed7d01000-7feed7d02000 rw-p fd: /usr/lib64/libselinux.so.
::205424.808 7feed7d02000-7feed7d04000 rw-p :
::205424.808 7feed7d04000-7feed7d7d000 r-xp fd: /usr/lib64/libfreebl3.so
::205424.808 7feed7d7d000-7feed7f7d000 ---p fd: /usr/lib64/libfreebl3.so
::205424.808 7feed7f7d000-7feed7f7e000 r--p fd: /usr/lib64/libfreebl3.so
::205424.808 7feed7f7e000-7feed7f7f000 rw-p 0007a000 fd: /usr/lib64/libfreebl3.so
::205424.808 7feed7f7f000-7feed7f83000 rw-p :
::205424.808 7feed7f83000-7feed7f8b000 r-xp fd: /usr/lib64/libcrypt-2.17.so
::205424.808 7feed7f8b000-7feed818a000 ---p fd: /usr/lib64/libcrypt-2.17.so
::205424.808 7feed818a000-7feed818b000 r--p fd: /usr/lib64/libcrypt-2.17.so
::205424.808 7feed818b000-7feed818c000 rw-p fd: /usr/lib64/libcrypt-2.17.so
::205424.808 7feed818c000-7feed81ba000 rw-p :
::205424.808 7feed81ba000-7feed81bd000 r-xp fd: /usr/lib64/libkeyutils.so.1.5
::205424.808 7feed81bd000-7feed83bc000 ---p fd: /usr/lib64/libkeyutils.so.1.5
::205424.808 7feed83bc000-7feed83bd000 r--p fd: /usr/lib64/libkeyutils.so.1.5
::205424.808 7feed83bd000-7feed83be000 rw-p fd: /usr/lib64/libkeyutils.so.1.5
::205424.808 7feed83be000-7feed83cb000 r-xp fd: /usr/lib64/libkrb5support.so.0.1
::205424.808 7feed83cb000-7feed85ca000 ---p 0000d000 fd: /usr/lib64/libkrb5support.so.0.1
::205424.808 7feed85ca000-7feed85cb000 r--p 0000c000 fd: /usr/lib64/libkrb5support.so.0.1
::205424.808 7feed85cb000-7feed85cc000 rw-p 0000d000 fd: /usr/lib64/libkrb5support.so.0.1
::205424.808 7feed85cc000-7feed8639000 r-xp fd: /usr/lib64/libgmp.so.10.1.
::205424.808 7feed8639000-7feed8839000 ---p 0006d000 fd: /usr/lib64/libgmp.so.10.1.
::205424.808 7feed8839000-7feed883a000 r--p 0006d000 fd: /usr/lib64/libgmp.so.10.1.
::205424.808 7feed883a000-7feed8843000 rw-p 0006e000 fd: /usr/lib64/libgmp.so.10.1.
::205424.808 7feed8843000-7feed8869000 r-xp fd: /usr/lib64/libhogweed.so.2.5
::205424.808 7feed8869000-7feed8a68000 ---p fd: /usr/lib64/libhogweed.so.2.5
::205424.808 7feed8a68000-7feed8a69000 r--p fd: /usr/lib64/libhogweed.so.2.5
::205424.808 7feed8a69000-7feed8a6a000 rw-p fd: /usr/lib64/libhogweed.so.2.5
::205424.808 7feed8a6a000-7feed8a99000 r-xp fd: /usr/lib64/libnettle.so.4.7
::205424.808 7feed8a99000-7feed8c99000 ---p 0002f000 fd: /usr/lib64/libnettle.so.4.7
::205424.808 7feed8c99000-7feed8c9a000 r--p 0002f000 fd: /usr/lib64/libnettle.so.4.7
::205424.808 7feed8c9a000-7feed8c9b000 rw-p fd: /usr/lib64/libnettle.so.4.7
::205424.808 7feed8c9b000-7feed8cad000 r-xp fd: /usr/lib64/libtasn1.so.6.1.
::205424.808 7feed8cad000-7feed8ead000 ---p fd: /usr/lib64/libtasn1.so.6.1.
::205424.808 7feed8ead000-7feed8eae000 r--p fd: /usr/lib64/libtasn1.so.6.1.
::205424.808 7feed8eae000-7feed8eaf000 rw-p fd: /usr/lib64/libtasn1.so.6.1.
::205424.808 7feed8eaf000-7feed8ece000 r-xp fd: /usr/lib64/libp11-kit.so.0.0.
::205424.808 7feed8ece000-7feed90ce000 ---p 0001f000 fd: /usr/lib64/libp11-kit.so.0.0.
::205424.808 7feed90ce000-7feed90d0000 r--p 0001f000 fd: /usr/lib64/libp11-kit.so.0.0.
::205424.808 7feed90d0000-7feed90d1000 rw-p fd: /usr/lib64/libp11-kit.so.0.0.
::205424.808 7feed90d1000-7feed9103000 r-xp fd: /usr/lib64/libidn.so.11.6.
::205424.808 7feed9103000-7feed9302000 ---p fd: /usr/lib64/libidn.so.11.6.
::205424.808 7feed9302000-7feed9303000 r--p fd: /usr/lib64/libidn.so.11.6.
::205424.808 7feed9303000-7feed9304000 rw-p fd: /usr/lib64/libidn.so.11.6.
::205424.808 7feed9304000-7feed933d000 r-xp fd: /usr/lib64/libnspr4.so
::205424.808 7feed933d000-7feed953d000 ---p fd: /usr/lib64/libnspr4.so
::205424.808 7feed953d000-7feed953e000 r--p fd: /usr/lib64/libnspr4.so
::205424.808 7feed953e000-7feed9540000 rw-p 0003a000 fd: /usr/lib64/libnspr4.so
::205424.808 7feed9540000-7feed9542000 rw-p :
::205424.808 7feed9542000-7feed9546000 r-xp fd: /usr/lib64/libplc4.so
::205424.808 7feed9546000-7feed9745000 ---p fd: /usr/lib64/libplc4.so
::205424.808 7feed9745000-7feed9746000 r--p fd: /usr/lib64/libplc4.so
::205424.808 7feed9746000-7feed9747000 rw-p fd: /usr/lib64/libplc4.so
::205424.808 7feed9747000-7feed974a000 r-xp fd: /usr/lib64/libplds4.so
::205424.808 7feed974a000-7feed9949000 ---p fd: /usr/lib64/libplds4.so
::205424.808 7feed9949000-7feed994a000 r--p fd: /usr/lib64/libplds4.so
::205424.808 7feed994a000-7feed994b000 rw-p fd: /usr/lib64/libplds4.so
::205424.808 7feed994b000-7feed9970000 r-xp fd: /usr/lib64/libnssutil3.so
::205424.808 7feed9970000-7feed9b70000 ---p fd: /usr/lib64/libnssutil3.so
::205424.808 7feed9b70000-7feed9b76000 r--p fd: /usr/lib64/libnssutil3.so
::205424.808 7feed9b76000-7feed9b77000 rw-p 0002b000 fd: /usr/lib64/libnssutil3.so
::205424.808 7feed9b77000-7feed9cb5000 r-xp fd: /usr/lib64/libnss3.so
::205424.808 7feed9cb5000-7feed9eb5000 ---p 0013e000 fd: /usr/lib64/libnss3.so
::205424.808 7feed9eb5000-7feed9eb9000 r--p 0013e000 fd: /usr/lib64/libnss3.so
::205424.808 7feed9eb9000-7feed9ebc000 rw-p fd: /usr/lib64/libnss3.so
::205424.808 7feed9ebc000-7feed9ebd000 rw-p :
::205424.809 7feed9ebd000-7feed9ee6000 r-xp fd: /usr/lib64/libsmime3.so
::205424.809 7feed9ee6000-7feeda0e6000 ---p fd: /usr/lib64/libsmime3.so
::205424.809 7feeda0e6000-7feeda0e9000 r--p fd: /usr/lib64/libsmime3.so
::205424.809 7feeda0e9000-7feeda0ea000 rw-p 0002c000 fd: /usr/lib64/libsmime3.so
::205424.809 7feeda0ea000-7feeda124000 r-xp fd: /usr/lib64/libssl3.so
::205424.809 7feeda124000-7feeda324000 ---p 0003a000 fd: /usr/lib64/libssl3.so
::205424.809 7feeda324000-7feeda327000 r--p 0003a000 fd: /usr/lib64/libssl3.so
::205424.809 7feeda327000-7feeda328000 rw-p 0003d000 fd: /usr/lib64/libssl3.so
::205424.809 7feeda328000-7feeda329000 rw-p :
::205424.809 7feeda329000-7feeda345000 r-xp fd: /usr/lib64/libsasl2.so.3.0.
::205424.809 7feeda345000-7feeda544000 ---p 0001c000 fd: /usr/lib64/libsasl2.so.3.0.
::205424.809 7feeda544000-7feeda545000 r--p 0001b000 fd: /usr/lib64/libsasl2.so.3.0.
::205424.809 7feeda545000-7feeda546000 rw-p 0001c000 fd: /usr/lib64/libsasl2.so.3.0.
::205424.809 7feeda546000-7feeda578000 r-xp fd: /usr/lib64/libk5crypto.so.3.1
::205424.809 7feeda578000-7feeda777000 ---p fd: /usr/lib64/libk5crypto.so.3.1
::205424.809 7feeda777000-7feeda779000 r--p fd: /usr/lib64/libk5crypto.so.3.1
::205424.809 7feeda779000-7feeda77a000 rw-p fd: /usr/lib64/libk5crypto.so.3.1
::205424.809 7feeda77a000-7feeda77b000 rw-p :
::205424.809 7feeda77b000-7feeda77e000 r-xp fd: /usr/lib64/libcom_err.so.2.1
::205424.809 7feeda77e000-7feeda97d000 ---p fd: /usr/lib64/libcom_err.so.2.1
::205424.809 7feeda97d000-7feeda97e000 r--p fd: /usr/lib64/libcom_err.so.2.1
::205424.809 7feeda97e000-7feeda97f000 rw-p fd: /usr/lib64/libcom_err.so.2.1
::205424.809 7feeda97f000-7feedaa4f000 r-xp fd: /usr/lib64/libkrb5.so.3.3
::205424.809 7feedaa4f000-7feedac4f000 ---p 000d0000 fd: /usr/lib64/libkrb5.so.3.3
::205424.809 7feedac4f000-7feedac5c000 r--p 000d0000 fd: /usr/lib64/libkrb5.so.3.3
::205424.809 7feedac5c000-7feedac5f000 rw-p 000dd000 fd: /usr/lib64/libkrb5.so.3.3
::205424.809 7feedac5f000-7feedaca6000 r-xp fd: /usr/lib64/libgssapi_krb5.so.2.2
::205424.809 7feedaca6000-7feedaea6000 ---p fd: /usr/lib64/libgssapi_krb5.so.2.2
::205424.809 7feedaea6000-7feedaea7000 r--p fd: /usr/lib64/libgssapi_krb5.so.2.2
::205424.809 7feedaea7000-7feedaea9000 rw-p fd: /usr/lib64/libgssapi_krb5.so.2.2
::205424.809 7feedaea9000-7feedaeb0000 r-xp fd: /usr/lib64/libgdbm.so.4.0.
::205424.809 7feedaeb0000-7feedb0b0000 ---p fd: /usr/lib64/libgdbm.so.4.0.
::205424.809 7feedb0b0000-7feedb0b1000 r--p fd: /usr/lib64/libgdbm.so.4.0.
::205424.809 7feedb0b1000-7feedb0b2000 rw-p fd: /usr/lib64/libgdbm.so.4.0.
::205424.809 7feedb0b2000-7feedb0ba000 r-xp fd: /usr/lib64/libOpenIPMIutils.so.0.0.
::205424.809 7feedb0ba000-7feedb2b9000 ---p fd: /usr/lib64/libOpenIPMIutils.so.0.0.
::205424.809 7feedb2b9000-7feedb2ba000 r--p fd: /usr/lib64/libOpenIPMIutils.so.0.0.
::205424.809 7feedb2ba000-7feedb2bb000 rw-p fd: /usr/lib64/libOpenIPMIutils.so.0.0.
::205424.809 7feedb2bb000-7feedb2c4000 r-xp fd: /usr/lib64/libltdl.so.7.3.
::205424.809 7feedb2c4000-7feedb4c3000 ---p fd: /usr/lib64/libltdl.so.7.3.
::205424.809 7feedb4c3000-7feedb4c4000 r--p fd: /usr/lib64/libltdl.so.7.3.
::205424.809 7feedb4c4000-7feedb4c5000 rw-p fd: /usr/lib64/libltdl.so.7.3.
::205424.809 7feedb4c5000-7feedb4e9000 r-xp fd: /usr/lib64/liblzma.so.5.0.
::205424.809 7feedb4e9000-7feedb6e8000 ---p fd: /usr/lib64/liblzma.so.5.0.
::205424.809 7feedb6e8000-7feedb6e9000 r--p fd: /usr/lib64/liblzma.so.5.0.
::205424.809 7feedb6e9000-7feedb6ea000 rw-p fd: /usr/lib64/liblzma.so.5.0.
::205424.809 7feedb6ea000-7feedb6ff000 r-xp fd: /usr/lib64/libz.so.1.2.
::205424.809 7feedb6ff000-7feedb8fe000 ---p fd: /usr/lib64/libz.so.1.2.
::205424.809 7feedb8fe000-7feedb8ff000 r--p fd: /usr/lib64/libz.so.1.2.
::205424.809 7feedb8ff000-7feedb900000 rw-p fd: /usr/lib64/libz.so.1.2.
::205424.809 7feedb900000-7feedb904000 r-xp fd: /usr/lib64/libgpg-error.so.0.10.
::205424.809 7feedb904000-7feedbb03000 ---p fd: /usr/lib64/libgpg-error.so.0.10.
::205424.809 7feedbb03000-7feedbb04000 r--p fd: /usr/lib64/libgpg-error.so.0.10.
::205424.809 7feedbb04000-7feedbb05000 rw-p fd: /usr/lib64/libgpg-error.so.0.10.
::205424.809 7feedbb05000-7feedbb7c000 r-xp fd: /usr/lib64/libgcrypt.so.11.8.
::205424.809 7feedbb7c000-7feedbd7c000 ---p fd: /usr/lib64/libgcrypt.so.11.8.
::205424.809 7feedbd7c000-7feedbd7d000 r--p fd: /usr/lib64/libgcrypt.so.11.8.
::205424.809 7feedbd7d000-7feedbd80000 rw-p fd: /usr/lib64/libgcrypt.so.11.8.
::205424.809 7feedbd80000-7feedbe85000 r-xp fd: /usr/lib64/libgnutls.so.28.20.
::205424.809 7feedbe85000-7feedc085000 ---p fd: /usr/lib64/libgnutls.so.28.20.
::205424.809 7feedc085000-7feedc08d000 r--p fd: /usr/lib64/libgnutls.so.28.20.
::205424.809 7feedc08d000-7feedc08f000 rw-p 0010d000 fd: /usr/lib64/libgnutls.so.28.20.
::205424.809 7feedc08f000-7feedc090000 rw-p :
::205424.809 7feedc090000-7feedc179000 r-xp fd: /usr/lib64/libstdc++.so.6.0.
::205424.809 7feedc179000-7feedc378000 ---p 000e9000 fd: /usr/lib64/libstdc++.so.6.0.
::205424.809 7feedc378000-7feedc380000 r--p 000e8000 fd: /usr/lib64/libstdc++.so.6.0.
::205424.809 7feedc380000-7feedc382000 rw-p 000f0000 fd: /usr/lib64/libstdc++.so.6.0.
::205424.809 7feedc382000-7feedc397000 rw-p :
::205424.809 7feedc397000-7feedc39e000 r-xp fd: /usr/lib64/librt-2.17.so
::205424.809 7feedc39e000-7feedc59d000 ---p fd: /usr/lib64/librt-2.17.so
::205424.809 7feedc59d000-7feedc59e000 r--p fd: /usr/lib64/librt-2.17.so
::205424.809 7feedc59e000-7feedc59f000 rw-p fd: /usr/lib64/librt-2.17.so
::205424.809 7feedc59f000-7feedc5b5000 r-xp fd: /usr/lib64/libpthread-2.17.so
::205424.809 7feedc5b5000-7feedc7b5000 ---p fd: /usr/lib64/libpthread-2.17.so
::205424.809 7feedc7b5000-7feedc7b6000 r--p fd: /usr/lib64/libpthread-2.17.so
::205424.809 7feedc7b6000-7feedc7b7000 rw-p fd: /usr/lib64/libpthread-2.17.so
::205424.809 7feedc7b7000-7feedc7bb000 rw-p :
::205424.809 7feedc7bb000-7feedc971000 r-xp fd: /usr/lib64/libc-2.17.so
::205424.809 7feedc971000-7feedcb71000 ---p 001b6000 fd: /usr/lib64/libc-2.17.so
::205424.809 7feedcb71000-7feedcb75000 r--p 001b6000 fd: /usr/lib64/libc-2.17.so
::205424.810 7feedcb75000-7feedcb77000 rw-p 001ba000 fd: /usr/lib64/libc-2.17.so
::205424.810 7feedcb77000-7feedcb7c000 rw-p :
::205424.810 7feedcb7c000-7feedcb91000 r-xp fd: /usr/lib64/libgcc_s-4.8.-.so.
::205424.810 7feedcb91000-7feedcd90000 ---p fd: /usr/lib64/libgcc_s-4.8.-.so.
::205424.810 7feedcd90000-7feedcd91000 r--p fd: /usr/lib64/libgcc_s-4.8.-.so.
::205424.810 7feedcd91000-7feedcd92000 rw-p fd: /usr/lib64/libgcc_s-4.8.-.so.
::205424.810 7feedcd92000-7feedcda8000 r-xp fd: /usr/lib64/libresolv-2.17.so
::205424.810 7feedcda8000-7feedcfa8000 ---p fd: /usr/lib64/libresolv-2.17.so
::205424.810 7feedcfa8000-7feedcfa9000 r--p fd: /usr/lib64/libresolv-2.17.so
::205424.810 7feedcfa9000-7feedcfaa000 rw-p fd: /usr/lib64/libresolv-2.17.so
::205424.810 7feedcfaa000-7feedcfac000 rw-p :
::205424.810 7feedcfac000-7feedcfaf000 r-xp fd: /usr/lib64/libdl-2.17.so
::205424.810 7feedcfaf000-7feedd1ae000 ---p fd: /usr/lib64/libdl-2.17.so
::205424.810 7feedd1ae000-7feedd1af000 r--p fd: /usr/lib64/libdl-2.17.so
::205424.810 7feedd1af000-7feedd1b0000 rw-p fd: /usr/lib64/libdl-2.17.so
::205424.810 7feedd1b0000-7feedd2b1000 r-xp fd: /usr/lib64/libm-2.17.so
::205424.810 7feedd2b1000-7feedd4b0000 ---p fd: /usr/lib64/libm-2.17.so
::205424.810 7feedd4b0000-7feedd4b1000 r--p fd: /usr/lib64/libm-2.17.so
::205424.810 7feedd4b1000-7feedd4b2000 rw-p fd: /usr/lib64/libm-2.17.so
::205424.810 7feedd4b2000-7feedd515000 r-xp fd: /usr/lib64/libcurl.so.4.3.
::205424.810 7feedd515000-7feedd714000 ---p fd: /usr/lib64/libcurl.so.4.3.
::205424.810 7feedd714000-7feedd716000 r--p fd: /usr/lib64/libcurl.so.4.3.
::205424.810 7feedd716000-7feedd717000 rw-p fd: /usr/lib64/libcurl.so.4.3.
::205424.810 7feedd717000-7feedd725000 r-xp fd: /usr/lib64/liblber-2.4.so.2.10.
::205424.810 7feedd725000-7feedd924000 ---p 0000e000 fd: /usr/lib64/liblber-2.4.so.2.10.
::205424.810 7feedd924000-7feedd925000 r--p 0000d000 fd: /usr/lib64/liblber-2.4.so.2.10.
::205424.810 7feedd925000-7feedd926000 rw-p 0000e000 fd: /usr/lib64/liblber-2.4.so.2.10.
::205424.810 7feedd926000-7feedd975000 r-xp fd: /usr/lib64/libldap-2.4.so.2.10.
::205424.810 7feedd975000-7feeddb74000 ---p 0004f000 fd: /usr/lib64/libldap-2.4.so.2.10.
::205424.810 7feeddb74000-7feeddb76000 r--p 0004e000 fd: /usr/lib64/libldap-2.4.so.2.10.
::205424.810 7feeddb76000-7feeddb78000 rw-p fd: /usr/lib64/libldap-2.4.so.2.10.
::205424.810 7feeddb78000-7feeddd33000 r-xp fd: /usr/lib64/libcrypto.so.1.0.1e
::205424.810 7feeddd33000-7feeddf33000 ---p 001bb000 fd: /usr/lib64/libcrypto.so.1.0.1e
::205424.810 7feeddf33000-7feeddf4d000 r--p 001bb000 fd: /usr/lib64/libcrypto.so.1.0.1e
::205424.810 7feeddf4d000-7feeddf59000 rw-p 001d5000 fd: /usr/lib64/libcrypto.so.1.0.1e
::205424.810 7feeddf59000-7feeddf5d000 rw-p :
::205424.810 7feeddf5d000-7feeddfbf000 r-xp fd: /usr/lib64/libssl.so.1.0.1e
::205424.810 7feeddfbf000-7feede1be000 ---p fd: /usr/lib64/libssl.so.1.0.1e
::205424.810 7feede1be000-7feede1c2000 r--p fd: /usr/lib64/libssl.so.1.0.1e
::205424.810 7feede1c2000-7feede1c9000 rw-p fd: /usr/lib64/libssl.so.1.0.1e
::205424.810 7feede1c9000-7feede1ce000 r-xp fd: /usr/lib64/libOpenIPMIposix.so.0.0.
::205424.810 7feede1ce000-7feede3cd000 ---p fd: /usr/lib64/libOpenIPMIposix.so.0.0.
::205424.810 7feede3cd000-7feede3ce000 r--p fd: /usr/lib64/libOpenIPMIposix.so.0.0.
::205424.810 7feede3ce000-7feede3cf000 rw-p fd: /usr/lib64/libOpenIPMIposix.so.0.0.
::205424.810 7feede3cf000-7feede4bc000 r-xp fd: /usr/lib64/libOpenIPMI.so.0.0.
::205424.810 7feede4bc000-7feede6bc000 ---p 000ed000 fd: /usr/lib64/libOpenIPMI.so.0.0.
::205424.810 7feede6bc000-7feede6d2000 r--p 000ed000 fd: /usr/lib64/libOpenIPMI.so.0.0.
::205424.810 7feede6d2000-7feede6d8000 rw-p fd: /usr/lib64/libOpenIPMI.so.0.0.
::205424.810 7feede6d8000-7feede6dc000 rw-p :
::205424.810 7feede6dc000-7feede704000 r-xp fd: /usr/lib64/libssh2.so.1.0.
::205424.810 7feede704000-7feede904000 ---p fd: /usr/lib64/libssh2.so.1.0.
::205424.810 7feede904000-7feede905000 r--p fd: /usr/lib64/libssh2.so.1.0.
::205424.810 7feede905000-7feede906000 rw-p fd: /usr/lib64/libssh2.so.1.0.
::205424.810 7feede906000-7feede9ce000 r-xp fd: /usr/lib64/libnetsnmp.so.31.0.
::205424.810 7feede9ce000-7feedebcd000 ---p 000c8000 fd: /usr/lib64/libnetsnmp.so.31.0.
::205424.810 7feedebcd000-7feedebd0000 r--p 000c7000 fd: /usr/lib64/libnetsnmp.so.31.0.
::205424.810 7feedebd0000-7feedebd2000 rw-p 000ca000 fd: /usr/lib64/libnetsnmp.so.31.0.
::205424.810 7feedebd2000-7feedec08000 rw-p :
::205424.810 7feedec08000-7feedec68000 r-xp fd: /usr/lib64/libodbc.so.2.0.
::205424.810 7feedec68000-7feedee67000 ---p fd: /usr/lib64/libodbc.so.2.0.
::205424.810 7feedee67000-7feedee68000 r--p 0005f000 fd: /usr/lib64/libodbc.so.2.0.
::205424.810 7feedee68000-7feedee6f000 rw-p fd: /usr/lib64/libodbc.so.2.0.
::205424.810 7feedee6f000-7feedee70000 rw-p :
::205424.810 7feedee70000-7feedefce000 r-xp fd: /usr/lib64/libxml2.so.2.9.
::205424.810 7feedefce000-7feedf1cd000 ---p 0015e000 fd: /usr/lib64/libxml2.so.2.9.
::205424.811 7feedf1cd000-7feedf1d5000 r--p 0015d000 fd: /usr/lib64/libxml2.so.2.9.
::205424.811 7feedf1d5000-7feedf1d7000 rw-p fd: /usr/lib64/libxml2.so.2.9.
::205424.811 7feedf1d7000-7feedf1d9000 rw-p :
::205424.811 7feedf1d9000-7feedf1e6000 r-xp fd: /usr/lib64/libiksemel.so.3.1.
::205424.811 7feedf1e6000-7feedf3e5000 ---p 0000d000 fd: /usr/lib64/libiksemel.so.3.1.
::205424.811 7feedf3e5000-7feedf3e6000 r--p 0000c000 fd: /usr/lib64/libiksemel.so.3.1.
::205424.811 7feedf3e6000-7feedf3e7000 rw-p 0000d000 fd: /usr/lib64/libiksemel.so.3.1.
::205424.811 7feedf3e7000-7feedf689000 r-xp fd: /usr/lib64/mysql/libmysqlclient_r.so.18.1.
::205424.811 7feedf689000-7feedf888000 ---p 002a2000 fd: /usr/lib64/mysql/libmysqlclient_r.so.18.1.
::205424.811 7feedf888000-7feedf88b000 r--p 002a1000 fd: /usr/lib64/mysql/libmysqlclient_r.so.18.1.
::205424.811 7feedf88b000-7feedf958000 rw-p 002a4000 fd: /usr/lib64/mysql/libmysqlclient_r.so.18.1.
::205424.811 7feedf958000-7feedf95d000 rw-p :
::205424.811 7feedf95d000-7feedf97e000 r-xp fd: /usr/lib64/ld-2.17.so
::205424.811 7feedfb4d000-7feedfb68000 rw-p :
::205424.811 7feedfb71000-7feedfb72000 rw-p :
::205424.811 7feedfb72000-7feedfb79000 r--s fd: /usr/lib64/gconv/gconv-modules.cache
::205424.811 7feedfb79000-7feedfb7b000 rw-s : /SYSV53002b0b (deleted)
::205424.811 7feedfb7b000-7feedfb7c000 rw-p :
::205424.811 7feedfb7c000-7feedfb7d000 rw-p :
::205424.811 7feedfb7d000-7feedfb7e000 r--p fd: /usr/lib64/ld-2.17.so
::205424.811 7feedfb7e000-7feedfb7f000 rw-p fd: /usr/lib64/ld-2.17.so
::205424.811 7feedfb7f000-7feedfb80000 rw-p :
::205424.811 7feedfb80000-7feedfd32000 r-xp fd: /usr/sbin/zabbix_server_mysql
::205424.811 7feedff32000-7feedff90000 r--p 001b2000 fd: /usr/sbin/zabbix_server_mysql
::205424.811 7feedff90000-7feedff98000 rw-p fd: /usr/sbin/zabbix_server_mysql
::205424.811 7feedff98000-7feedff9f000 rw-p :
::205424.811 7feee141c000-7feee143d000 rw-p : [heap]
::205424.811 7feee143d000-7feee147d000 rw-p : [heap]
::205424.811 7feee147d000-7feee155d000 rw-p : [heap]
::205424.811 7fff9f147000-7fff9f3f4000 rw-p : [stack]
::205424.811 7fff9f3fe000-7fff9f400000 r-xp : [vdso]
::205424.811 ffffffffff600000-ffffffffff601000 r-xp : [vsyscall]
::205424.811 ================================
::205424.811 Please consider attaching a disassembly listing to your bug report.
::205424.811 This listing can be produced with, e.g., objdump -DSswx zabbix_server.
::205424.811 ================================
::205424.813 One child process died (PID:,exitcode/signal:). Exiting ...
::205426.814 syncing history data...
::205426.974 syncing history data done
::205426.974 syncing trend data...
::205427.017 syncing trend data done
::205427.017 Zabbix Server stopped. Zabbix 3.2. (revision ).
::205437.035 Starting Zabbix Server. Zabbix 3.2. (revision ).
::205437.035 ****** Enabled features ******
zabbix--ODBC 监控mysql的更多相关文章
- 权限问题导致zabbix无法监控mysql
说说一个困扰自已两天的问题. 首先是用常规的方法安装上了mysql数据库.做了主从. 在监控从库的时候,发现所有的监控数据库的监控项都获取不到key值 . zabbix server端也不报错.获取到 ...
- 带你了解zabbix如何监控mysql主从到报警触发
本章博客我们一起来聊一聊如何监控mysql数据库主从状态? 思路梳理: 1)首先我们都知道,判断Mysql主从是否正常,是通过主从上面的SQL和IO线程都为yes状态判断(通过awk取值,grep过滤 ...
- zabbix之 zabbix模板监控mysql
zabbix中默认有mysql的监控模板.默认已经在zabbix2.2及以上的版本中.模板名称:Template App MySQL.如果没有则要去zabbix官方下载 url:https://zab ...
- zabbix脚本监控mysql
Zabbix监控mysql 1.1 客户端配置 1.1.1 安装客户端包 yum -y install unixODBC rpm -ivh zabbix-agent--.el6.x86_64.rpm ...
- zabbix之监控MySQL
#:先配置MySQL的主从 #:安装Percona Monitoring Plugins (地址:https://www.percona.com/downloads/)#:我安在从库,监控哪个就安哪个 ...
- zabbix添加监控Mysql
起因:zabbix自带的mysql监控模板直接使用会显示“不支持的”因为key的值是通过Mysql用户查看"show global status"信息或者用mysqladmin命令 ...
- zabbix自定义监控mysql
创建用户: use mysql; grant all privileges on *.* to 'zabbix'@'%' identified by 'zabbixpasswd'; grant all ...
- zabbix实时监控mysql业务数据
1. 安装zabbix agent 下载zabbix:过往的软件包都有:https://sourceforge.mirrorservice.org/z/za/zabbix/ZABBIX%20Lates ...
- zabbix全方位监控MySQL +cacti监控mysql
http://www.linuxidc.com/Linux/2015-02/112690.htm http://john88wang.blog.51cto.com/2165294/1596272?ut ...
- zabbix监控mysql主从
最近在公司搭建了zabbix监控系统,现在需要用zabbix来监控mysql的主从同步情况 现在说一下配置的详细步骤: 1.首先给mysql分配一个监控的账号: mysql> grant rep ...
随机推荐
- 不小心执行了 rm -f,先别急着跑路
作者:justmine http://www.cnblogs.com/justmine/p/10359186.html 前言 每当我们在生产环境服务器上执行rm命令时,总是提心吊胆的,因为一不小心执行 ...
- 动画FPS计算
1.chrome的debug 2.PerformanceObserver var observer = new PerformanceObserver(function (list) { var pe ...
- lvm 磁盘扩容
LVM磁盘管理 一.LVM简介 LVM是 Logical Volume Manager(逻辑卷管理)的简写,它由Heinz Mauelshagen在Linux 2.4内核上实现.LVM将一个或多个硬盘 ...
- [心得]編寫Linux kernel modules時惱人的Makefile
在一台機器上寫好這樣的Makefile用以編譯modules obj-m:=hello.o CURRENT_PATH:=$(shell pwd) VERSION_NUM:=$(shell uname ...
- MVC5使用SignalR进行双向通信 (1)
@a604572782 2015-08-10 09:01 字数 2133 阅读 1245 MVC5使用SignalR进行双向通信 (1) 配置SignalR 在NuGet中通过 install-pac ...
- pychrm和linux进行链接上传代码
众享周知:现在在windows文件中我们有pycharm工具帮我们去编辑python脚本,这会省去我们大把的时间让我们进行更多的脚本编辑.有这样的一种方法,我们可以使用pycharm编辑的脚本上传到l ...
- spring整合mybatis后,mybatis一级缓存失效的原因
一般来说,可以在5个方面进行缓存的设计: 最底层可以配置的是数据库自带的query cache, mybatis的一级缓存,默认情况下都处于开启状态,只能使用自带的PerpetualCache,无法配 ...
- NFS 共享存储实战
目录 NFS 共享存储实战 一.NFS概述 二.NFS部署 部署NFS客户端backup和web01 统一web.nfs.backup的用户权限 代码部署步骤 三.NFS配置详解 NFS存储小结 四. ...
- centos 搭建本地YUM源并使用apache共享YUM源
搭建本地YUM源 1.挂载镜像 2.搭建本地YUM源 删除多余repo文件保留一个就行 本地YUM源就搭建好了 yum repolist 查看yum源 3.使用apache共享YUM源 YUM服务器配 ...
- Thinkphp5.0 自定义命令command的使用
在app下的command文件中,定义命令所在的模块以及命名. 然后保存,打开cmd,php think 定义的那个command的名字,完整的命令行为:php think clearInvalidO ...