title: Telegraf test input and output plugins error multiple conf files
body: <p>Telegraf version: <strong>Telegraf v1.0.1</strong></p>
  
  <p>I have the following files:</p>
  
  <pre><code>/etc/telegraf/telegraf.conf 
  </code></pre>
  
  <p>main config file (which you create/get for free while installing telegraf). This file doesn't have any <code>[[output.&lt;plugin&gt;]]</code> stanza in it but does have valid default <code>inputs.xx</code> plugins enabled.</p>
  
  <pre><code>/etc/telegraf/telegraf.d/1-company-output-plugin.conf 
  </code></pre>
  
  <p>(This file has valid <code>outputs.&lt;pluginname&gt;</code> plugin).</p>
  
  <pre><code>/etc/telegraf/telegraf.d/telegraf-additional-inputs-plugins.conf 
  </code></pre>
  
  <p>(this file has additional <code>inputs.&lt;pluginname&gt;</code> plugins that I want to keep separate from the main conf file).</p>
  
  <p><br/>
  Running <code>sudo service telegraf status</code> shows Telegraf is running [OK]! and log file /var/log/telegrag/telegraf.log (looks good too without showing any errors).</p>
  
  <p>If I make any changes to one of the above configuration files, I want to test those changes made (before I restart telegraf), so I'm running the following commands with <code>-test</code> or <code>--test</code> option but I'm getting the following error:</p>
  
  <pre><code>ubuntu@jenkins:~/test_aks_dir$ telegraf --config /etc/telegraf/telegraf.conf -test
  2017/01/10 22:45:48 E! Error: no outputs found, did you provide a valid config file?
  ubuntu@jenkins:~/test_aks_dir$ telegraf --config /etc/telegraf/telegraf.conf --test
  2017/01/10 22:45:51 E! Error: no outputs found, did you provide a valid config file?
  </code></pre>
  
  <p>As you see above, both optons <code>-test</code> or <code>--test</code> worked but also gave a <strong>valid</strong> error message above.</p>
  
  <p>As the above error was for not providing any configuration stanza for <code>[[outputs.&lt;plugin&gt;]]</code>, I provided another --config file paramter for the file which contains the outputs plugin stanza, but now it gave an error for the missing inputs. file:</p>
  
  <pre><code>ubuntu@jenkins:~/test_aks_dir$ telegraf --config /etc/telegraf/telegraf.conf --config /etc/telegraf/telegraf.d/1-company-output-plugin.conf  --test
  2017/01/10 22:48:30 E! Error: no inputs found, did you provide a valid config file?
  ubuntu@jenkins:~/test_aks_dir$ 
  </code></pre>
  
  <p><strong>Note:</strong> The above command <strong>didn't</strong> error for providing multiple <code>--config &lt;someConfigFile&gt;</code> parameter values. </p>
  
  <p>The same error comes if I want to test any change in the 3rd file : (<em>/etc/telegraf/telegraf.d/telegraf-additional-inputs-plugins.conf</em>)</p>
  
  <p>How can I test an <strong>individual</strong> or <strong>selective</strong> configuration file changes using <code>telegraf</code> <strong>assuming I have multiple files</strong> here: <em>/etc/telegraf/telegraf.d/*.conf</em> ?</p>