Hi Nagios Users,<br><br>I have an *extremely* modular configuration.  My template structure is well defined and when it comes to monitoring a host, it's as simple as including it as a Member of a Hostgroup.<br><br>An example Linux server would be:<br>
<br><br># cat ./linux/LINUXSERVER.cfg<br>define host{<br>        use                     PROD-SERVERS<br>        host_name               LINUXSERVER.local.lan<br>        alias                   LINUXSERVER.local.lan<br>        address                 LINUXSERVER.local.lan<br>
        hostgroups              LINUX, HTTP, SMTP<br>        }<br><br><br>And that's it.  It auto inherits all service checks defined against LINUX, HTTP and SMTP.  <br><br>95% of my LINUX servers have a "/apps" mount point.  Therefore it makes sense to include a service check for it inside the LINUX host group and then inside the Host Definition for the remaining 5% 'unregister' that service check.<br>
<br>Is it possible, inside LINUXSERVER2.cfg, to say "Yes I know I'm a member of hostgroup LINUX, but I *don't* want to inherit the service check "Disk /apps"?<br><br>I tried:<br><br>define service{<br>
        use                        GENERIC-SERVICE-TEMPLATE<br>        host_name                  LINUXSERVER2.local.lan<br>        service_description        Disk /apps<br>        check_command              null<br>        }<br>
<br>But obviously this fails with an "Already defined" error.<br><br><br>Appreciate any info.<br><br>Thanks,<br>Matthew.<br>