diff --git a/src/modules/collector/sys/plugins/scheduler.go b/src/modules/collector/sys/plugins/scheduler.go index 8fd84ca4..22e68a01 100644 --- a/src/modules/collector/sys/plugins/scheduler.go +++ b/src/modules/collector/sys/plugins/scheduler.go @@ -50,7 +50,7 @@ func PluginRun(plugin *Plugin) { timeout := plugin.Cycle*1000 - 500 //比运行周期少500毫秒 - fpath := filepath.Join(plugin.FilePath) + fpath := filepath.Join(file.SelfDir(), plugin.FilePath) if !file.IsExist(fpath) { logger.Error("no such plugin:", fpath)