|
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k agent.hostname
web02
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k agent.ping
1
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k kernel.maxfiles
99150
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k kernel.maxproc
32768
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k log[/var/log/messages] #工作在主动模式下
ZBX_NOTSUPPORTED: Accessible only as active check.
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k log[/var/log/messages,error]
ZBX_NOTSUPPORTED: Accessible only as active check.
[iyunv@web02 tmp]#
[iyunv@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"}]}
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k net.if.in[eth0,errors]
0
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k net.if.in[eth0,dropped]
0
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k net.if.in[eth0,packets]
276040
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k net.if.out[eth0,packets]
293504
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k net.if.total[eth0,packets]
569585
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k net.tcp.listen[80]
1
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k net.tcp.listen[70]
0
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k net.tcp.port[59.110.26.9,70]
0
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k net.tcp.port[59.110.26.9,80]
1
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k net.tcp.service[ssh,59.110.26.9,22]
0
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k net.tcp.service[ssh,59.110.26.9,52222]
1
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k proc.mem[zabbix_server]
9494224896
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k proc.mem[zabbix_server,root]
0
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k proc.mem[zabbix_server,zabbix]
9494224896
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k system.cpu.load[,avg5]
0.030000
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k system.cpu.load[,avg15]
0.050000
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k system.cpu.load[,avg1]
0.060000
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k system.cpu.num[] #CPU的个数
1
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k system.cpu.switches;
2624620152
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k system.hostname
web02
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k system.users.num
2
[iyunv@web02 tmp]#
[iyunv@web02 tmp]# zabbix_get -s 59.110.26.9 -k system.run["ls /tmp"]
|
|
|