2
0
Fork 0
mirror of https://github.com/garabik/grc.git synced 2024-11-15 14:48:26 +01:00
bash-color-grc/mrsmith/conf.mtr

28 lines
473 B
Text
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