zabbix3.0 自定义模板

来源:互联网 发布:php工作内容 编辑:程序博客网 时间:2024/06/09 23:01

被监控的服务器

[root@openstack-computer2 zabbix]# uptime | awk -F ' ' '{print $4}'
2

[root@openstack-computer2 zabbix]# grep -n '^[a-Z]' /etc/zabbix/zabbix_agentd.conf 
13:PidFile=/var/run/zabbix/zabbix_agentd.pid
32:LogFile=/var/log/zabbix/zabbix_agentd.log
43:LogFileSize=0
95:Server=10.0.8.252
136:ServerActive=127.0.0.1
147:Hostname=Zabbix server
265:Include=/etc/zabbix/zabbix_agentd.d/
293:UserParameter=login-user,uptime | awk -F ' ' '{print $4}'

zabbix服务器

[root@zabbix-server ~]# zabbix_get -s 10.0.8.22 -k login-user
2








0 0
原创粉丝点击