Skip to content

Instantly share code, notes, and snippets.

@kennethgillen
Created February 14, 2017 16:32
Show Gist options
  • Save kennethgillen/6be290326e52da4855326d7ce1ea17a4 to your computer and use it in GitHub Desktop.
Save kennethgillen/6be290326e52da4855326d7ce1ea17a4 to your computer and use it in GitHub Desktop.
snippet from OMERO server check_mk logwatch.cfg
# Replacing this with a regex to catch all the current logfiles: (note: may want to split _brokenrequest.log as the format is very different)
/opt/omero/omero/OMERO-CURRENT/var/log/*.* regex=.*(\.log|\.err)$
# ignore up to 10-70% of servants used
I .*[1234567]0 of servants.*
# Ignore OMEROweb.log 404s
I Not Found
I .*Already locked.*
I .*Reverse for '{}' not found.*
# Ignore Django _brokenrequest 404s
I 404
# though the 'I HTTP 404' doesn't seem to work for this.
W django\.request
# Append django trace format to the first line of a django.request for the _brokenrequest.log
# Append matcher
A ^[\sMCPGp']
I handler404
# Format issue
I Unknown target class for LSID
I Servant already removed
I Reaping all remaining servants
# Ignore long-running up to 9000ms
I invocation took \d{1,4}
I Django 1.6.11 does not support AppConfig
I SessionTimeoutException on close
I robots\.txt
# Bio-Formats can set OMERO experimenter names from image metadata. This is common for many file formats.
I Unsupported in OMERO
# Normal after a format reader change
I deleting invalid memo
# the below follows an invalied memo file
I ThumbnailBean.errorIfInvalidState
# For the OMEROweb.log, forgotten_password with no matching user account is currently an ERROR:
I forgotten_password
# Note: when the 'I Not Found' and 'I 404' are above the 'W django\.request' 'A ...' lines, it does seem
# to not pick up the whole Django stacktrace: but sadly the other regexes will still match individual lines
# i.e. - it ignores the whole-string (appended, as one-line), but .. still treats the individual lines
# as individuals, by the look of it. So still need to overide the individual lines which match e.g. \berr
I wsgi\.errors
# cf #13275 https://trac.openmicroscopy.org/ome/ticket/13275
I ome\.services\.sessions\.SessionContextImpl
# Some OMERO 'Info:' log level entries have the word 'Error', so completely ignore these:
I .*INFO.*
# A reader issue?
I ^.*Unknown\s*target\s*class.*$
# format/reader issue
I .*Could not parse.*
# Another OMERO 'bug' / idiosyncrasy
I Forced to reload permissions
# And a reader issue:
I ^.*will be stored as "Other".*$
# Not sure why, but loads of these
I Password provider returned null
I Logins left
I failed logins
# issue with source file
I .*positive_float_check.*
# crit at 100% servants
C .*100 of servants.*
C .*java\.lang\.OutOfMemoryError.*
# Match SQL, unless experimenter_omename_key appears in the line, nor Add callback
C (SQL)(?!.*experimenter_omename_key.*)(?!.*Add callback.*)
# Regex for case insensitive err or error
C (?i).*\berr(or)?.*
W (?i).*warn(ing)?.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment