2
0
Fork 0
mirror of https://github.com/garabik/grc.git synced 2024-11-15 14:48:26 +01:00
bash-color-grc/contrib/mrsmith/conf.mtr
2017-04-21 10:50:47 +02:00

27 lines
473 B
Text

#ip address
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=green
=======
# % 0.0 - 10.9 % loss
regexp=[^\d][0-9]{1}.\d%
colours=green
=======
# % 11.0 - 30.9 % loss
regexp=[123]{1}[0-9]{1}.\d%
colours=yellow
=======
# % 30.0 - 80.9% loss
regexp=[3-8]{1}[0-9]{1}.\d%
colours=bold yellow
=======
# % 80.0 - 95.9% loss
regexp=[8-9]{1}[0-9]{1}.\d%
colours=red
=======
# unknow host
regexp=\?\?\?
colours=red
=======
# Packets/Pings
regexp=(Packets|Pings)
colours=bold green