2020-09-26 16:53:10 +08:00
|
|
|
|
# 用来做心跳,给服务端上报本机ip
|
|
|
|
|
ip:
|
|
|
|
|
specify: ""
|
2020-12-29 12:00:17 +08:00
|
|
|
|
shell: ifconfig `route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|head -n 1|awk -F':' '{print $NF}'
|
2020-09-26 16:53:10 +08:00
|
|
|
|
|
|
|
|
|
# MON、JOB的客户端拿来做本机标识
|
|
|
|
|
ident:
|
|
|
|
|
specify: ""
|
2020-12-29 12:00:17 +08:00
|
|
|
|
shell: ifconfig `route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|head -n 1|awk -F':' '{print $NF}'
|