zabbix 基本键值

简介:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k  agent.hostname 
web02
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k  agent.ping 
1
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k   kernel.maxfiles
99150
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k   kernel.maxproc
32768
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k   log[/var/log/messages] #工作在主动模式下
ZBX_NOTSUPPORTED: Accessible only as active check.
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k   log[/var/log/messages,error]
ZBX_NOTSUPPORTED: Accessible only as active check.
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.if.discovery  #列出网卡 json对象
{ "data" :[{ "{#IFNAME}" : "veth784edd3" },{ "{#IFNAME}" : "veth89d79c6" },{ "{#IFNAME}" : "veth8cef08d" },{ "{#IFNAME}" : "veth2210e5b" },{ "{#IFNAME}" : "eth0" },{ "{#IFNAME}" : "eth1" },{ "{#IFNAME}" : "vethe3109be" },{ "{#IFNAME}" : "vethbb7a759" },{ "{#IFNAME}" : "lo" },{ "{#IFNAME}" : "veth921cc0e" },{ "{#IFNAME}" : "vethf088aea" },{ "{#IFNAME}" : "docker0" }]}
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.if.in[eth0,errors]
0
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.if.in[eth0,dropped]
0
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.if.in[eth0,packets]
276040
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.if.out[eth0,packets]
293504
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.if.total[eth0,packets]
569585
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.tcp.listen[80]
1
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.tcp.listen[70]
0
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.tcp.port[59.110.26.9,70]
0
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.tcp.port[59.110.26.9,80]
1
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.tcp.service[ssh,59.110.26.9,22]
0
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k    net.tcp.service[ssh,59.110.26.9,52222]
1
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k   proc.mem[zabbix_server]
9494224896
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k   proc.mem[zabbix_server,root]
0
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k   proc.mem[zabbix_server,zabbix]
9494224896
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k  system.cpu.load[,avg5]
0.030000
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k  system.cpu.load[,avg15]
0.050000
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k  system.cpu.load[,avg1]
0.060000
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k  system.cpu.num[]   #CPU的个数
1
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k  system.cpu.switches;
2624620152
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k  system.hostname
web02
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k  system.users.num
2
[root@web02 tmp]
[root@web02 tmp] # zabbix_get -s  59.110.26.9  -k  system.run["ls /tmp"]









本文转自 小小三郎1 51CTO博客,原文链接:http://blog.51cto.com/wsxxsl/1903204,如需转载请自行联系原作者
目录
相关文章
|
监控 Shell
Zabbix 添加自定义键值(学习笔记十三)
1、首先编写自定义监控脚本,本文以监控httpd进程是否存在为例   脚本名字:check_httpd.sh   脚本目录(这个目录可以自定义):/usr/local/etc/zabbix_scripts   脚本内容:         #!/bin...
1092 0
|
4天前
|
存储 SQL 监控
修改Zabbix源码实现监控数据双写,满足业务需求!
虽然对接Elasticsearch后有诸多好处,但是它不往数据库写历史数据了,同时还不再计算趋势数据了。有这么一个场景...
修改Zabbix源码实现监控数据双写,满足业务需求!
|
4天前
|
数据采集 监控 数据库
OceanBase社区版可以通过Zabbix监控
OceanBase社区版可以通过Zabbix监控
91 4
|
5月前
|
监控 关系型数据库 机器人
小白带你学习linux的监控平台zabbix
小白带你学习linux的监控平台zabbix
144 0
|
7月前
|
监控 关系型数据库 MySQL
企业实战(8)CentOS 6.8安装Zabbix-agent 5.0监控主机性能与Mysql数据库
企业实战(8)CentOS 6.8安装Zabbix-agent 5.0监控主机性能与Mysql数据库
|
4天前
|
监控 网络协议 Unix
centos7 zabbix安装客户端agent -配置监控远程主机 在需要监控的电脑上安装
centos7 zabbix安装客户端agent -配置监控远程主机 在需要监控的电脑上安装
28 0
|
4天前
|
数据采集 监控 数据库
请问OceanBase社区版能否通过zabbix监控,然后将报错信息展现到grafana?
【2月更文挑战第25天】请问OceanBase社区版能否通过zabbix监控,然后将报错信息展现到grafana?
26 2