Skip to content

关于丢包的推送 #25

Answered by zdz
StephenSSR asked this question in Q&A
Apr 26, 2022 · 5 comments · 1 reply
Discussion options

You must be logged in to vote

你可以在 custom_tpl 模板后面追加以下内容实现

{% if host.ping_10086 > 20  %}
<pre>❗{{ host.name }} 主机中移动丢包率超20%, 当前{{ host.ping_10086 }}% </pre>
{% endif %}

电信是 ping_189
联通是 ping_10010

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@StephenSSR
Comment options

Answer selected by zdz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants