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

Missing configuration file #1

Closed
juliojsb opened this issue Apr 30, 2019 · 2 comments
Closed

Missing configuration file #1

juliojsb opened this issue Apr 30, 2019 · 2 comments

Comments

@juliojsb
Copy link

Hi Kamil,

Maybe I am doing something wrong, but it seems in my case collectd is unable to get the configuration file plugins_config.sh

I am getting the following in daemon.log (using Debian 9 OS):

exec plugin: Unable to parse command, ignoring line: "Missing config file!

If i just add in collectd "cd" in the script collectd_cuda.sh to the path where the config file is located everything works:

cd /home/jota/my-scripts/collectd/

Regards,

@kwilczek
Copy link
Owner

kwilczek commented May 2, 2019

Hi @juliojsb,

you are right, there was a relative path bug in my script which prevented the configuration
file from being sourced. I already pushed the updated version which will also check for the
presence of nvidia-smi tool (I'm currently on vacation and had no access to a machine with
a nVidia card -- I tested this on a Vagrant VM, but it was enough to catch some more small
issues :))

PS. You might consider enabling logfile plugin which redirects collectd logs to a separate
file (for example /var/log/collectd.log. This keeps logs cleaner and allows for much easier
debugging.

Best Regards,
Kamil

@juliojsb
Copy link
Author

juliojsb commented May 2, 2019

Great! Looking forward to the new improvements in the script.

I enabled logfile plugin, nice advice. Much clearer for debugging now.

Keep up the good work! ;)

Regards,

@kwilczek kwilczek closed this as completed May 7, 2019
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