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 ...
随机推荐
- CF 304B——Calendar——————【年月日计算】
B - Calendar Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submi ...
- 深入理解JavaScript系列(3):全面解析Module模式
简介 Module模式是JavaScript编程中一个非常通用的模式,一般情况下,大家都知道基本用法,本文尝试着给大家更多该模式的高级使用方式. 首先我们来看看Module模式的基本特征: 模块化,可 ...
- SQL中CASE 的用法 转载
sql语言中有没有类似C语言中的switch case的语句?? 没有,用case when 来代替就行了. 例如,下面的语句显示中文年月 select getdat ...
- UML建模—EA创建Class(类图)
1.新建类图 2.添加类或接口 在类图可以捕获系统-类-和模型组件的逻辑结构.它是一个静态模型,描述存在什么,有哪些属性和行为,而不管如何去做. 说明关系之间的类和接口; 泛化. 聚合和关联是在分别反 ...
- 基于RBAC模式的权限管理系统设计概要
很多人都知道以角色为基础的权限管理设计(RBAC),但是大部分人似懂非懂,不知道完整的权限管理系统都包括哪些内容. 在此以权限管理的使用场景来说明一下完整的权限管理内容. 一是鉴权管理,即权 ...
- PLC通信网络
PLC通信网络的分层 PLC通信网络大致可分为3层,管理层,单元层以及现场执行(AS-I)层.如下图所示. 在PLC通信网络的三层架构中,管理层,通信方式包括MPI,工业以太网(Profinet)以及 ...
- jdbc封装DBUtil
1.编写实体类User public class User { private Integer id; private String username; private Integer age; pr ...
- linux下快速安装python3.xx
安装python3之前的准备工作: 当前环境是centos操作系统[已经安装了gcc++],在安装前需要安装zlib-devel包: yum install zlib-devel yum instal ...
- vue的一些特殊特性
一.使用$ref特性获取DOM元素 代码示例如下所示: <!DOCTYPE html> <html lang="en"> <head> < ...
- unity导出apk错误出错解决方法
CommandInvokationFailure: Failed to re-package resources. See the Console for details. F:\adt-bundle ...