Zabbix: Database Monitor Installation
- 1. Install ODBC MS SQL Connector On Zabbix Server
https://support.zabbix.com/browse/ZBX-6839 comment1 --> mysql comment2 --> PostgreSQL comment3 --> MSSQL
Install necessary packages FreeTDS:
yum -y install freetds unixODBC unixODBC-devel
- Check if the installation is successful or not:
tsql -S 10.1.9.59 –P 1433 -U loginname –P password
1> select top 1 id from
jobsdb_hk.dbo.jobad;
2> go
- Update ODBC
driver configuration file:
$ vi /etc/odbcinst.ini
- Update ODBC
configuration file:
$ vi /etc/odbc.ini
2. Create Host
- 3. Create Item
User name: [Adloader Database Login ID]
Password: [Adloader Database Login Password]
SQL Query:
Select (Select L.CreatedTime, ErrorLogXml
From [Dev_DM_DB01]..SCM_Gateway_Log L With(NoLock)
Where Convert(Nvarchar(max), ErrorLogXml) <> ''
And DATEDIFF(D, CreatedTime, GETUTCDATE()) = 0
For XML RAW,TYPE) As ErrorLogFromAdloader,
(Select B.BatchID, B.CreateDate, BRJ.PostToJobsDB_ErrorInfo, BRJ.JobTitle
From [Dev_DM_DB01]..SCM_ImportJob_Batch B With(NoLock)
Inner Join [Dev_DM_DB01]..SCM_ImportJob_BatchRecord_JobsDB BRJ With(NoLock)
On B.AccountID=BRJ.AccountID And B.EntityID=BRJ.EntityID And B.BatchID=BRJ.BatchID
Where BRJ.PostToJobsDB_ErrorInfo Is Not Null
And DATEDIFF(MI, B.LastProcessTime, GETUTCDATE()) < 60
For XML RAW, Type) As ErrorLogFromJobsDB
For XML RAW
- 4. Create Trigger
- 5. Create Action
Set action Condition: Matching by trigger name
Set action Operations:
Send email to indicated user
Zabbix: Database Monitor Installation的更多相关文章
- zabbix自带database monitor
1. 在zabbix服务器上安装一下两个包: # yum -y install unixODBC mysql-connector-odbc 2. 修改zabbix服务器上ODBC配置: 2.1 Vim ...
- Kernel parameters for Db2 database server installation (Linux and UNIX)
Db2 11.1 For root installations, the database manager uses a formula to automatically adjust kernel ...
- P6 Professional Installation and Configuration Guide (Microsoft SQL Server Database) 16 R1
P6 Professional Installation and Configuration Guide (Microsoft SQL Server Database) 16 R1 May ...
- Quick and Easy Installation of Oracle Database 12c on Oracle Linux in Oracle VM VirtualBox
发贴人 Sergio-Oracle 于2018-4-18 23:10:15在Oracle Linux Introduction How Does This Work? Requirements Bef ...
- zabbix源码安装实例
环境 系统 Centos7 zabbix版本 Zabbix 3.4.15 (revision 86739) zabbix源码安装 .tar.gz cd zab ...
- 源码编译配置lnmp部署zabbix
环境说明: [root@wcy ~]# cat /etc/redhat-release CentOS release 6.9 (Final) [root@wcy ~]# uname -a Linux ...
- CentOS 7上安装Zabbix(高速安装监控工具Zabbix)
前提要求(optional) 安装Zabbix监控工具前,先安装必要的执行工具包 yum install gcc gcc-c++ make openssl-devel curl wget net-sn ...
- Zabbix Documentation 4.0
Zabbix Documentation 4.0 1 Create user account For all of the Zabbix daemon processes, an unprivileg ...
- 转 zabbix 优化方法 以及数据库查询方法 两则
###########sample 1 https://www.cnblogs.com/hanshanxiaoheshang/p/10304672.html (不错) 如何从zabbix server ...
随机推荐
- 【卷土重来之C#学习笔记】(三) 类型 存储和变量
.c#程序是一组类型声明 ※C#程序或DLL的源代码是一组一种或多种类型声明 ※对于可执行程序,类型声明必须有一个包含Main方法类 ※命名空间是一种把相关的类型声明分组并命名的方法.既然程序是一组相 ...
- mysql用户操作
一, 创建用户: 命令:CREATE USER 'username'@'host' IDENTIFIED BY 'password'; 说明:username - 你将创建的用户名, host - 指 ...
- Java学习第二十二天
1:登录注册IO版本案例(掌握) 要求,对着写一遍. cn.itcast.pojo User cn.itcast.dao UserDao cn.itcast.dao.impl UserDaoImpl( ...
- CTPN_论文阅读总结
论文全名:Detecting Text in Natural Image with Connectionist Text Proposal Network 1.摘要 (1)本文提出新型网络CTPN,用 ...
- C# 使用cookie实现登录
首先,我们需要做的是什么? 我们成功登录之后,跳转到主界面,然后主界面的登录按钮变成头像啥的.下一次打开网页就要判断有没有登录过,有cookie就不需要登录,直接显示头像 1.成功登录后,客户端请求服 ...
- Java原生隐藏字符-工具类
package com.seesun2012.common.util; /** 隐藏字符-工具类 @author seesun2012@163.com */ public class HiddenCh ...
- android aidl通信 RemoteCallbackList客户端注册回调
RemoteCallbackList 声明 public class RemoteCallbackList<E extends IInterface> 情况 在AIDL中客户端向服务端注册 ...
- PhoneGap API介绍:Events
事件类型: backbutton deviceready menubutton pause resume searchbutton online offline backbutton 当用户在Andr ...
- 在linux环境下搭建java web测试环境(非常详细!)
一.项目必备软件及基本思路 项目必备:虚拟机:VMware Workstation (已安装linux的 CentOS6.5版本) 项目:java web项目 (必须在本地部署编译后选择项目的webR ...
- dl +rec
AutoEncoder http://blog.csdn.net/studyless/article/details/70880829