Zabbix agentd 命令

#zabbix_agentd -p 查看zabbix所有的内置监控项

[root@nod01 zabbix_agentd.d]# zabbix_agentd -p
agent.hostname [s|Zabbix server]
agent.ping [u|1]
agent.version [s|3.0.20]
system.localtime[utc] [u|1533566990]
system.run[echo test] [m|ZBX_NOTSUPPORTED] [Remote commands are not enabled.]
web.page.get[localhost,,80] [m|ZBX_NOTSUPPORTED] [HTTP get error: cannot connect to [[localhost]:80]: [111] Connection refused]
web.page.perf[localhost,,80] [m|ZBX_NOTSUPPORTED] [HTTP get error: cannot connect to [[localhost]:80]: [111] Connection refused]
web.page.regexp[localhost,,80,OK] [m|ZBX_NOTSUPPORTED] [HTTP get error: cannot connect to [[localhost]:80]: [111] Connection refused]
vfs.file.size[/etc/passwd] [u|1080]

root@nod01 zabbix_agentd.d]# zabbix_agentd -p | grep packages

#环境说明10.0.0.34为server 10.0.0.33为agent

#zabbix服务端安装10.0.0.34

[root@zabbixserver ~]# yum -y install zabbix-get

[root@zabbixserver ~]# zabbix_get -s 10.0.0.33 -k 'system.uptime'
28598

[root@zabbixserver ~]# zabbix_get -s 10.0.0.33 -k 'tps'
0.55

[root@zabbixserver ~]# zabbix_get -s 10.0.0.33 -k 'estab'
3

猜你喜欢

转载自www.cnblogs.com/nodchen/p/9434133.html