r00igev@@r
Honorary Master
- Joined
- Dec 14, 2009
- Messages
- 15,640
- Reaction score
- 14,157
- Location
- Draadloos Bantha poo doo in 4ways
I have this in a bash variable.
How do I create the logic for an if statement to send a webhooks message when the packet loss is not 0.0% or 100.0%?
It seems to be beyond my talent at this stage.
Code:
Start: Mon Mar 22 10:35:42 2021
HOST: intnl-amastelekthreefourtwo Loss% Snt Last Avg Best Wrst StDev
1.|-- 10.24.24.2 0.0% 20 4.2 4.0 3.5 4.9 0.2
2.|-- nem1-cust.coolideas.co.za (102.132.201.249) 0.0% 20 4.0 4.2 3.4 5.4 0.2
3.|-- ??? 100.0 20 0.0 0.0 0.0 0.0 0.0
4.|-- ??? 100.0 20 0.0 0.0 0.0 0.0 0.0
5.|-- ??? 100.0 20 0.0 0.0 0.0 0.0 0.0
6.|-- cloudflare.ixp.joburg (196.60.8.198) 0.0% 20 6.3 8.5 5.6 32.3 7.3
7.|-- 1.1.1.2 0.0% 20 5.1 5.0 4.3 5.4 0.0
How do I create the logic for an if statement to send a webhooks message when the packet loss is not 0.0% or 100.0%?
It seems to be beyond my talent at this stage.