2
0
mirror of https://github.com/garabik/grc.git synced 2024-10-28 17:41:01 +01:00
bash-color-grc/colourfiles/conf.ping
Erik Valdivieso f3f76ad382
Fix packet loss percent with dot number
Works with

0%
0.0%
100%
100.0%
2018-08-29 11:31:01 -05:00

61 lines
1.1 KiB
Plaintext

# IP
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
colours=bright_blue
=======
# ipv6 number
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
colours=magenta
=======
# icmp_seq=##
regexp=icmp_seq=(\d+)
colours=default,yellow
=======
# ttl=#
regexp=ttl=(\d+)
colours=default,magenta
=======
# name
regexp=(?:[fF]rom|PING)\s(\S+)\s
colours=default,blue
=======
# time
regexp=([0-9\.]+)\s?ms
colours=green,bold green
=======
# DUP
regexp=DUP\!
colours=red
=======
# OK
regexp= 0(\.0)?% packet loss
colours=green
=======
# Errors
regexp=(Destination Host Unreachable|100(\.0)?% packet loss)
colours=red
=======
# unknown host
regexp=.+unknown\shost\s(.+)
colours=red,bold red
-
# statistics header
regexp=--- (\S+) ping statistics ---
colours=bold, bold blue
-
# last line min/avg/max/mdev
regexp=rtt (min)/(avg)/(max)/(mdev)
colours=default,bright_yellow,bright_blue,bright_red,bright_magenta
-
# last line values
regexp=\=\s([0-9\.]+)\/([0-9\.]+)\/([0-9\.]+)\/([0-9\.]+)
colours=default,bright_yellow,bright_blue,bright_red,bright_magenta
-
# these are good for nping
regexp=SENT|RCVD
colours=red
-
# nping
regexp=unreachable
colours=red