My guess is you don't have a host definition for the host (router) you've 
removed - once the undefined hostname was removed from the service definition, 
it works.

--
Jacob

From: Leonardo Bacha Abrantes [mailto:leona...@lbasolutions.com]
Sent: Wednesday, October 17, 2012 3:39 PM
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] Host exclusion fail more 4 hosts

Hey people,


I created an group called Routers and I inserted my routers on.
I don't want to check uptime of five routers, so, I created the exclusion as: 
host_name  !R1,!R2,!R3,!R4,!R5.

The problem is: nagios only work up to four host, because when I add more one 
host, I received the error below:

Error: Could not expand hostgroups and/or hosts specified in service (config 
file '/etc/nagios/objects/router.cfg', starting on line 13)
   Error processing object config files!

if I remove just one host, it worked. I didn't find anything on manual about 
limitations.


define service{
        use                             generic-service
        hostgroup_name                 Routers
        service_description             Uptime
        max_check_attempts          5
        normal_check_interval         10
        retry_check_interval            3
        contact_groups                  G-Prod
        check_command                   check_snmp!-C Mycommunity -o sysUpTime.0
        notifications_enabled           0
    host_name                       !R1,!R2,!R3,!R4,!R5
        }


Can someone help me please ?

many thanks!
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to