-
Notifications
You must be signed in to change notification settings - Fork 134
api_alter
遇见王斌 edited this page Jul 20, 2017
·
1 revision
zabbix_api 默认连接[zabbixserver]的机器信息 --profile 不加参数时,会输出可支持的后选项
[root@Linux ~]# zabbix_api --profile
1.2.2
['zabbixserver', 'bendi', 'server31', 'server128', 'server156']
默认连接zabbixserver的机器信息,如果想连接[bendi]的机器,无需频繁修改配置文件,只需要在命令后加上--profile bendi,指定新的配置就可以了
[root@meetbill ~]#zabbix_api host_get --profile bendi
1.2.3
[HostID] [HostName] [ip] [Status] [Available] [templates]
[10084] [Zabbix server] [127.0.0.1] [Disabled] [Unknown] [Template App Zabbix Server,Template OS Linux,]
sum: 1
遇到问题可以加入 Zabbix 开源社区群进行讨论 加入微信群方法如下
- (1) 微信添加 zabbix_china(Zabbix_Z小秘)备注说明:(王斌 zabbix_manager)
- (2) 然后让
Zabbix_Z小秘
拉入Zabbix 开源社区群
即可