Skip to content

Commit b7cbeb6

Browse files
authored
新增查询代理管理机器IP导出到csv
1 parent 94ef9c0 commit b7cbeb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

monitor/zabbix/查询代理机器列表.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,7 @@ MySQL [zabbix]> select hostid from hosts where host="zbx_pxy_proxy01";
3131
3232
#根据hostid找出代理管理的机器名
3333
select name from hosts where proxy_hostid="10412";
34+
35+
#查询结果导出到csv
36+
mysql -uroot -p***** -A zabbix -e "select name from hosts where proxy_hostid="11793";" > apps.csv
3437
```

0 commit comments

Comments
 (0)