Hello!<br><br>I'm trying to modify how my configuration files are written, and have choosed to make one CFG file per host monitored. The file contain the host itself and all the services monitored on that host. Using this configuration makes nagios3 return a bunch of WARNING messages about "Duplicate definition", but works just fine. Are there any problems in using this kind of design?<br>
<br>Nagios version 3.0.3<br><br>Configuration Example:<br><br>define host{<br>        use                     servers<br>        host_name               SERVER_1<br>        alias                   SERVER 1<br>        address                 192.168.0.1<br>
        _IF_INDEX       123<br>}<br><br>define service{<br>        use                             generic-service-3min<br>        host_name                       SERVER_1<br>        service_description             CHECK_4CPUs_20_50<br>
        check_command                   check-cpu-snmp-hostmib-4cpu!25%!50%<br>        contact_groups                  cg-Discos<br>}<br>define service{<br>        use                             generic-service-3min<br>        host_name                       SERVER_1<br>
        service_description             CHECK_VIRMEM_WIN<br>        check_command                   check-virmem-snmp-win!100!500<br>}<br>define service{<br>        use                             generic-service-3min<br>
        host_name                       SERVER_1<br>        service_description             CHECK_RAMMEM_HOSTMIB<br>        check_command                   check-rammem-snmp-hostmib!1!2<br>}<br>define service{<br>        use                             generic-service-3min<br>
        host_name                       SERVER_1<br>        service_description             IFDATAS_INDEX<br>        check_command                   check-ifs-snmp-index!$_HOSTIF_INDEX$<br>        contact_groups                  cg-Discos<br>
}<br>define service{<br>        use                             generic-service-3min<br>        host_name                       SERVER_1<br>        service_description             CHECK_VIRMEM_WIN<br>        check_command                   check-virmem-snmp-win!100!500<br>
}<br>define service{<br>        use                             generic-service-3min<br>        host_name                       SERVER_1<br>        service_description             CHECK_RAMMEM_HOSTMIB<br>        check_command                   check-rammem-snmp-hostmib!1!2<br>
}<br>define service{<br>        use                             generic-service-3min<br>        host_name                       SERVER_1<br>        service_description             IFDATAS_INDEX<br>        check_command                   check-ifs-snmp-index!$_HOSTIF_INDEX$<br>
        contact_groups                  cg-Discos<br>}<br><br><br><br><br>WARNING MESSAGE:<br>Warning: Duplicate definition found for service 'IFDATAS_INDEX' on host 'SERVER_1' (config file '/etc/nagios3/SERVER_1.cfg', starting on line 30)<br>
Warning: Duplicate definition found for service 'CHECK_RAMMEM_HOSTMIB' on host 'SERVER_1' (config file '/etc/nagios3/SERVER_1.cfg', starting on line 23)<br>Warning: Duplicate definition found for service 'CHECK_VIRMEM_WIN' on host 'SERVER_1' (config file '/etc/nagios3/SERVER_1.cfg', starting on line 17)<br>
Running pre-flight check on configuration data...<br><br><br clear="all"><br>-- <br>[]'s<br><br>Lívio Zanol Puppim<br>