Skip to content

Instantly share code, notes, and snippets.

@andyxning
Created December 22, 2016 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyxning/f628cf2960438e5070784ccfc1e2bf85 to your computer and use it in GitHub Desktop.
Save andyxning/f628cf2960438e5070784ccfc1e2bf85 to your computer and use it in GitHub Desktop.
npd_kernel_monitor
{
"logPath": "/var/log/kern.log",
"lookback": "10m",
"startPattern": "Initializing cgroup subsys cpuset",
"bufferSize": 10,
"source": "npd",
"conditions": [
{
"type": "KernelDeadlock",
"reason": "KernelHasNoDeadlock",
"message": "kernel has no deadlock"
}
],
"rules": [
{
"type": "temporary",
"reason": "OOMKilling",
"pattern": "Task in [0-9A-Za-z_/]+ killed as a result of limit of [0-9A-Za-z_/]+"
},
{
"type": "temporary",
"reason": "TaskHung",
"pattern": "task \\S+:\\w+ blocked for more than \\w+ seconds\\."
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment