mirror of
https://github.com/garabik/grc.git
synced 2024-11-15 14:48:26 +01:00
42 lines
592 B
Text
42 lines
592 B
Text
# hostname
|
|
regexp=\s\w+[\w\-\.]+\w+
|
|
colours=bright_yellow
|
|
count=once
|
|
-
|
|
# ip number
|
|
regexp=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
|
|
colours=magenta
|
|
-
|
|
# ipv6 number
|
|
regexp=(([0-9a-fA-F]{1,4})?\:\:?[0-9a-fA-F]{1,4})+
|
|
colours=magenta
|
|
-
|
|
# time
|
|
regexp=\d+\.?\d*(?=\sms)
|
|
colours=green
|
|
-
|
|
# ms
|
|
regexp=\bms\b
|
|
colours=yellow
|
|
-
|
|
# DUP
|
|
regexp=\bDUP
|
|
colours=red
|
|
-
|
|
# !S, !A, !H (host unreachable), etc.
|
|
regexp=\b\![AFGNPSTU]
|
|
colours=red
|
|
# just an example:
|
|
#command=echo 'Network is down'| mail root
|
|
-
|
|
# ttl=...!
|
|
regexp=ttl=\d+\!
|
|
colours=cyan
|
|
-
|
|
# *
|
|
regexp=\*
|
|
colours=red
|
|
-
|
|
# parenthesis
|
|
regexp=\(|\)
|
|
colours=yellow
|