mysql begin operations_zabbix基本监控各指标简解

监控项目及使用模板

监控http和https:

template app http service

template app https service

监控cpu,内存,网络等:

template os linux (template app zabbix agent)

监控端口:

template ports discovery(自定义模板)

监控mysql:

template db mysql

template percona mysql server(percona插件模板)

监控docker状态:

template app docker - www.monitoringartist.com(外部模板)

各模板下监控项详解

template os linux:

cpu

context switches per second

每秒上下文切换

cpu idle time

cpu空闲时间

cpu interrupt time

cpu中断时间

cpu iowait time

cpu花费在等待i/o操作上的时间

cpu nice time

系统花费在调整进程优先级上的时间

cpu softirq time

系统在处理软中断时候所花费的cpu时间

cpu steal time

cpu被强制等待另外虚拟的cpu处理完毕花费的时间

cpu system time

cpu在内核运行的时间

cpu user time

cpu在用户态执行进程的时间

interrupts per second

每秒中断

processor load (1 min average per core)

处理器负载(每个核心平均1分钟)

processor load (5 min average per core)

处理器负载(每个核心平均5分钟)

processor load (15 min average per core)

处理器负载(每个核心平均15分钟)

filesystems(文件系统)

free disk space on /

/可用磁盘空间

free disk space on / (percentage)

/可用磁盘空间/(百分比)

free disk space on /boot

/boot上的可用磁盘空间

free disk space on /boot (percentage)

/boot上的可用磁盘空间(百分比)

free inodes on / (percentage)

/上的剩余inode(百分比)

free inodes on /boot (percentage)

/boot上的剩余inode(百分比)

total disk space on /

/上的总磁盘空间

total disk space on /boot

/boot上的总磁盘空间

used disk space on /

/使用的磁盘空间

used disk space on /boot

/ boot上使用的磁盘空间

general(一般)

host boot time

主机启动时间

host local time

主机本地时间

host name

主机名

system information

系统信息

system uptime

系统正常运行时间

network interfaces(网络)

incoming network traffic on ens32

ens32的传入网络流量

outgoing network traffic on ens32

ens32的传出网络流量

memory(内存)

available memory

可用内存

free swap space

剩余swap空间

free swap space in %

剩余swap空间百分比

total memory

总内存

total swap space

总swap空间

processes(进程)

number of processes

进程数

number of running processes

正在运行的进程数

security(安全)

checksum of /etc/passwd

/ etc / passwd的校验和

number of logged in users

登录用户数

zabbix agent

agent ping

代理ping

host name of zabbix_agentd running

运行zabbix_agentd的主机名

version of zabbix_agent(d) running

zabbix_agent(d)版本正在运行

template db mysql:

mysql

mysql begin operations per second

mysql每秒开始运算

mysql bytes received per second

每秒接收的mysql字节数

mysql bytes sent per second

每秒发送的mysql字节数

mysql commit operations per second

每秒mysql提交操作

mysql delete operations per second

mysql每秒删除操作数

mysql insert operations per second

mysql每秒插入操作数

mysql queries per second

每秒mysql查询

mysql rollback operations per second

每秒mysql回滚操作

mysql select operations per second

mysql每秒选择操作

mysql slow queries

mysql慢查询

mysql status

mysql状态

mysql update operations per second

每秒mysql更新操作

mysql uptime

mysql正常运行时间

mysql version

mysql版本

template app docker - www.monitoringartist.com

docker(jms为docker容器名)

container jms is running

container jms正在运行

cpu utilization jms

cpu利用率jms

used cache memory jms

使用的缓存内存jms

used swap jms

使用交换jms

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在 Zabbix监控 MySQL 数据库,需要进行以下步骤: 1. 安装 Zabbix Agent 在要监控MySQL 服务器上安装 Zabbix Agent。你可以从 Zabbix 官网下载适合你系统的安装包,或使用包管理器进行安装。 2. 安装 MySQL 监控插件 在 Zabbix Server 上安装 MySQL 监控插件。你可以从 Zabbix 官网下载适合你版本的插件。 3. 配置 MySQL 监控插件 在 Zabbix Server 上编辑插件配置文件(mysql.conf),配置 MySQL 数据库的连接信息和监控项。 例如: ``` UserParameter=mysql.ping, mysqladmin -uroot ping | grep -c alive UserParameter=mysql.version, mysql -V UserParameter=mysql.status[*], mysqladmin -uroot -p$1 status $2 | awk '{print $$NF}' UserParameter=mysql.size[*], mysql -uroot -p$1 -e 'SELECT table_schema "$2", Round(Sum(data_length + index_length) / 1024 / 1024, 2) "Size (MB)" FROM information_schema.tables WHERE table_schema="$2";' | grep -v Size UserParameter=mysql.qps, mysqladmin -uroot -p$1 status | cut -f9 -d':' | awk '{print $$1}' ``` 这些配置项允许 Zabbix Agent 在远程 MySQL 服务器上执行命令并获取数据。 4. 添加 MySQL 监控项 在 Zabbix Server 上添加 MySQL 数据库监控项。你可以通过 Zabbix Web 界面添加监控项,包括: - MySQL 数据库版本 - MySQL 数据库状态 - MySQL 数据库大小 - MySQL 数据库 QPS(每秒查询数) 5. 创建 MySQL 监控模板 在 Zabbix Web 界面上创建 MySQL 监控模板,并将监控项添加到模板中。 6. 将 MySQL 主机关联到监控模板 将要监控MySQL 主机关联到 MySQL 监控模板。 完成以上步骤后,你就可以在 Zabbix Web 界面上查看 MySQL 数据库的监控数据了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值