Defnining new host in nagios for monitoring
<p>We have a server running nagios at work. Been there forever I didn't set it up.
I've been trying to add a new server to the monitoring page but when I try to stop and start the nagios service I get an error.</p>

<blockquote>
  <p>ERROR! Start aborted. Check your Nagios configuration.</p>
</blockquote>

<p>I added a line in my <code>nagios.cfg</code> to use my <code>/etc/nagios/objects/servers/servers.cfg</code></p>

<p>Then to test it out I added google with the following code.</p>

<pre><code>define host{
  use linux-server
  host_name google.com
  alias google.com
  address www.google.com
}
define service{
  use generic-service
  host_name google.com
  service description PING
  check_command check_ping!100.0,20%!500.0,60%
}
</code></pre>

<p>This works fine and it shows up in my web interface along the other hosts as OK.</p>

<p>Now when I try to add one of our local windows 2012 test servers I am unable to even start the nagios service.</p>

<pre><code>define host{
  use linux-server
  host_name myhostname
  alias myhostname
  address xxx.xx.xx.xx(has the real ip)
}
define service{
  use generic-service
  host_name myhostname
  service description PING
  check_command check_ping!100.0,20%!500.0,60%
}
</code></pre>

<p>Can anyone help me as to what is going wrong?</p>

<p>If I run <code>/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg</code>
it says that I have no errors. If I run it against my <code>servers.cfg</code> file it says there's an error in line 1 which doesn't make sense to me since it works fine without the windows server added to the code.</p>

<p>If someone more experienced with these systems than me could give me some insight it would be a great help. Thanks.</p>