<div dir="ltr"><div>Hi, all,</div><div><br></div><div>I have recently encountered an issue related to collectd configuration generated via automation script, where some plugin (generic_jmx and others) have failed to start up due to the following similar message:</div><div><br></div><div><br></div><div>Jun 17 17:58:45 pi6 collectd[2773]: Starting statistics collection and monitoring </div><div>daemon: collectdParse error in file `/etc/collectd/collectd.conf.d/jmx.conf', line 2414 near `': <b>syntax error, unexpected $end, expecting EOL</b></div><div>Jun 17 17:58:45 pi6 collectd[2773]: yyparse returned error #1</div><div><div>Jun 17 17:58:45 pi6 collectd[2773]: configfile: Cannot read file `/etc/collectd/collectd.conf.d/jmx.conf'.</div></div><div><br></div><div>After some research on the internet, and I came across <a href="https://stackoverflow.com/questions/31753775/config-file-finding-unexpected-end-not-sure-why">this thread on stackoveflow</a>, indicating that the root cause is that a line feed character '\n' is needed for each configuration file (collectd.conf and plugins.conf). </div><div><br></div><div>I have tested on my local env, and it seemly works just fine. However, I am wondering if this is the root cause or I have been mislead by error message. If there is indeed a requirement on the format - line feed character,  to collectd configuration, is it documented somewhere to reference to?</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Sincerely,</div><div><br></div><div>Michael Fong</div><div><br></div></div>