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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM