Hostgroup based service definitions, unable to load with stable r elease...

Burnson, Richard rburnson at cps.k12.il.us
Tue Feb 11 18:35:40 CET 2003


I am currently running Nagios1b3 with hostgroups with over 600 members and a

total of over 7,000 service checks.  A while ago I implemented the new
feature 
that allows me to define service on the hostgroup level instead of per host.

I am trying to upgrade to the Nagios 1 final release, but when I try to load

the config that works for the beta version, I receive the following error:
=================
Nagios 1.0
Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)
Last Modified: 11-24-2002
License: GPL

Reading configuration data...

Error: Host name '2020-ADM01 2030-ADM01 6290-ADM01 2710-ADM01 2050-ADM01
2090
-ADM01 1210-ADM01 7480-ADM01 4590-ADM01 3640-ADM01 2070-ADM01 1900-ADM01
2100
-ADM01 1220-ADM01 2130-ADM01 2140-ADM01 6880-ADM01 2150-ADM01 2180-ADM01
2190
-ADM01 2240-ADM01 2260-ADM01 2270-ADM01 2280-ADM01 1020-ADM01 7860-ADM01
2300
-ADM01 4990-ADM01 1230-ADM01 5750-ADM01 2430-ADM01 1240-ADM01 2340-ADM01
2370
-ADM01 2380-ADM01 2390-ADM01 7470-ADM01 1500-ADM01 2400-ADM01 5040-ADM01
2550
-ADM01 2432-ADM01 2440-ADM01 2450-ADM01 2460-ADM01 2470-ADM01 2520-ADM01
2560
-ADM01 2580-ADM01 6610-ADM01 1250-ADM01 2610-ADM01 4260-ADM01 2620-ADM01
4320
-ADM01 4321-ADM01 2630-ADM01 2640-ADM01 2650-ADM01 2660-ADM01 2670-ADM01
1850
-ADM01 2700-ADM01 4290-ADM01 1910-ADM01 2720-ADM01 2510-ADM01 2740-ADM01
2750
-ADM01 2760-ADM01 5640-ADM01 564A-ADM01 6670-ADM01 1790-ADM01 6620-ADM01
1840
-ADM01 2800-ADM01 2810-ADM01 5651-ADM01 6170-ADM01 1880-ADM01 2880-ADM01
2890
-ADM01 289A-ADM01 1860-ADM01 1270-ADM01 2940-ADM01 4090-ADM01 1820-ADM01
1010
-ADM01 6560-ADM01 297
Error: Could not register service (config file
'/usr/local/nagios/etc/sites.cfg', line 40914)


***> One or more problems was encountered while processing the config
files...

     Check your configuration file(s) to ensure that they contain valid
     directives and data defintions.  If you are upgrading from a previous
     version of Nagios, you should be aware that some variables/definitions
     may have been removed or modified in this version.  Make sure to read
     the HTML documentation on the main and host config files, as well as
the
     'Whats New' section to find out what has changed.

===========

I tried to increasing the buffer size in xdata/xodtemplate.h and
recompiling, 
but that did not alleviate this issue.  What has changed in the way that
Nagios 
loads the configuration?  I followed the latest documentation in the
configuration 
of the service.  Here is an example:

define service{
        use                             check-service         ; Name of
service template to use
        hostgroup_name                  _Servers
        service_description             PAGING
        contact_groups                  lan
        check_command                   check_nt_pagingfile!80!90
        }

Even if I comment out the lines Nagios errors on of, Nagios errors on the
next 
hostgroup based definition.  Any ideas as to what is causing this issue or
what 
I can do to troubleshoot?  Is there some other input buffer I need to
modify?

TIA,
Richard  

 
 
    



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list