2
0
mirror of https://github.com/garabik/grc.git synced 2024-11-10 21:26:52 +01:00
bash-color-grc/contrib/mrsmith/conf.mtr

28 lines
473 B
Plaintext
Raw Normal View History

2015-01-25 18:36:02 +01:00
#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