docs: Document benign scripts.d directory-watcher error - #23400
Draft
nedi-app[bot] wants to merge 1 commit into
Draft
docs: Document benign scripts.d directory-watcher error#23400nedi-app[bot] wants to merge 1 commit into
nedi-app[bot] wants to merge 1 commit into
Conversation
…pts.d/README.md documenting the benign 'start watching '/etc/netdata/scripts.d': no such file or directory' error emitted by the file watcher when the optional user job directory is absent. Verified against source that the error is non-fatal (watch.go watchDirs() logs at error level but does not return/exit), that scripts.d.plugin runs only Nagios-style checks (main.go imports solely the nagios collector), and that no default jobs ship (stock nagios.conf is fully commented out). Clarifies the message cannot cause general 'no metrics reported' and gives an optional mkdir -p resolution.
|
Member
|
I think this watch functionality should just be removed. If we decide to support it, it should be implemented consistently across all go plugins in the agent, not just one. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Document benign scripts.d directory-watcher error. Files changed: src/go/plugin/scripts.d/README.md.
User Request
No metrics are reported by the nodes and an error "start watching '/etc/netdata/scripts.d': no such file or directory" is reported on the node
Prompt (English)
Diagnose why no metrics are reported by nodes and resolve the 'start watching /etc/netdata/scripts.d: no such file or directory' error logged on the node.
Reason for Change
This change applies the specific user request using repository-truth evidence from the audit execution workspace.
Summary by cubic
Document the non-fatal "start watching '/etc/netdata/scripts.d': no such file or directory" message in
scripts.d.pluginand clarify it doesn't cause missing metrics. Add a quick way to silence it by creating the directory and note thatscripts.d.pluginonly runs optional Nagios-style checks; investigatego.dor other collectors for "no metrics" issues.Written for commit 4f5da83. Summary will update on new commits.