-
Notifications
You must be signed in to change notification settings - Fork 1.2k
collectd -t should test config #3216
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
Comments
I just wanted to report a similar issue: collectd 5.9.1 isn't starting here with errors like
or
However, configtest reports no problem. |
I am not sure if this is the same problem. Sure: Once the mentioned bug is fixed, the reported plugins are working. However, isn't the problem that the plugins will report an error for whatever reason and the configtest doesn't notice? I.e. see #3236 (comment) ... even with the patch applied, |
you're absolutely right, thanks for clarifying this |
Using bisect and totally not valid config
found that this behavior has changed probably with 386ecab
one earlier 6b64979 have build issue on Ubuntu16.04 and next one 6cde759 was working as following:
I'm not fully familiar with daemon yet, so just sharing this find here for now and hope to get back later to investigate logic that was affected. Starting point most probably will be src/daemon/collectd.c#L402-L403 and verifying if code responsible for testing config is being executed somewhere before. |
This seems to have been already fixed by #3793? If yes, please close. |
Expected behavior
Collectd should test config and report if it is broken/has errors.
Actual behavior
Daemon exits without config test.
Steps to reproduce
run
collectd -t
on broken config.It exits immediately w/o any output.
The text was updated successfully, but these errors were encountered: