Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不能監控 /etc ? #23

Closed
changchichung opened this issue Oct 22, 2021 · 0 comments
Closed

不能監控 /etc ? #23

changchichung opened this issue Oct 22, 2021 · 0 comments

Comments

@changchichung
Copy link

我把 fileboy 的執行檔和設定檔放在 /usr/local/bin/
想要持續監控 /etc
但是會出現

Dengsgo [[email protected]] Open Source with MIT License
[FileBoy]: 14:12:16 &{Core:{Version:1} Monitor:{Types:[.*] IncludeDirs:[/etc] ExceptDirs:[.idea .git .vscode node_modules vendor] Events:[write rename remove create chmod] TypesMap:map[.*:true] IncludeDirsMap:map[] ExceptDirsMap:map[] DirsMap:map[] IncludeDirsRec:map[]} Command:{Exec:[/usr/local/bin/watcher_notify.sh] DelayMillSecond:2000} Notifier:{CallUrl:} Instruction:[ignore-warn] InstructionMap:map[ignore-warn:true]}
[FileBoy]: 14:12:16 I: collecting directory information...
[FileBoy]: 14:12:16 O: dirs must be relative paths ! err path: /etc

所以我必須要把fileboy , filegirl.yaml 都丟到 /etc 底下,並加入--filegirl 的參數才能正確監控 /etc 目錄

請問有其他方式可以解決嗎?

@dengsgo dengsgo closed this as completed Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants