<br>Hello everyone,<br><br>The first question is, what is the meaning of directive  <b>name</b>  in host definition? The document says there is no such thing, only <b>host_name</b> but if put name there nagios (both 2 and 3 does not complain)<br>
<br>Longer explanation follows.<br><br>When using nagios config version 2 in nagios3 I have some errors. Looking at the config of version 2 I see:<br><br>define host{<br>  name      standard-host<br>  use     generic-host    ; Name of host template to use<br>
  register    0       ; Template - don't register<br>  host_name   not-defined<br>  alias     not-defined<br>  check_command   check-host-alive<br>  contact_groups pager<br>  notification_period 24x7<br>  }<br><br><br>
define host{<br>        name                    virtual-host<br>        use                     generic-host            ; Name of host template<br>to use<br>        register                0                       ; Template - don't regis<br>
ter<br>        host_name               not-defined<br>        alias                   not-defined<br>        check_command           check-host-alive<br>        contact_groups          pager<br>        notification_period     workhours<br>
}<br><br><br>It worked with nagios2 ; nagios3 Warning: Duplicate definition found for host 'not-defined'<br>and then error  Could not add object property at line point to host_name not-defined.<br><br>I changed the value of host_name to be uniques such as not-defined0, not-defined1 and it stop complaining. But I do not know what nagios3 understand that in case name  and host_name are both defined in host definition?<br>
<br><br>Many thanks in advance<br><br><br clear="all"><br>-- <br>Steve Kieu<br><br>