mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-05-11 11:48:36 +00:00
* Change `unregister_netdevice` to be an event to fix #47. * Change `KernelPanic` to `KernelOops` because we can't handle kernel panic currently. * Use system boot time instead of "StartPattern" to fix #48.
29 lines
844 B
Go
29 lines
844 B
Go
/*
|
|
Copyright 2016 The Kubernetes Authors All rights reserved.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package logwatchers
|
|
|
|
import (
|
|
"k8s.io/node-problem-detector/pkg/kernelmonitor/logwatchers/syslog"
|
|
)
|
|
|
|
const syslogPluginName = "syslog"
|
|
|
|
func init() {
|
|
// Register the syslog plugin.
|
|
registerLogWatcher(syslogPluginName, syslog.NewSyslogWatcherOrDie)
|
|
}
|