title: Nagios: Error in config file - First line (NULL Value)
body: <p>I'm running Nagios 3.5.1 and I'm getting an error saying there's an error in my config file. </p>
  
  <p>When I run <code>nagios -v /etc/nagios3/conf.d/hosts.cfg</code>, I get this error</p>
  
  <blockquote>
    <p>Reading configuration data... Error in configuration file
    '/etc/nagios3/conf.d/hosts.cfg' - Line 5 (NULL value)</p>
  </blockquote>
  
  <p>Line 5 is the first like with content. Lines 1-4 are comments.
  When I remove 1-4, the error moves to the first line still. And commenting out the first host just moves the same error lower. </p>
  
  <p>My hosts.cfg is not complicated</p>
  
  <pre><code> define host {
     use server
     address 10.203.130.187
     host_name production-mgmt-nagios-server-20140325-10-203-130-187
     hostgroups all,linux,nagios-server
   }
  </code></pre>
  
  <p>and so on. </p>
  
  <p>Simplifying with one host or even the example host gives the same error.</p>
  
  <p>Creating a new file and typing a basic version gives the same error. </p>
  
  <p>Running out of ideas and anything will be appreciated. Thank you!</p>