hostgroup_name with in the services.cfg file

Carl Schelin cschelin at hq.nasa.gov
Thu Jul 17 18:57:51 CEST 2003


Take out the trailing comma in the hostgroup_name. Since it's using
commas as tokens, the last one will be null because it thinks there are
three groups.

Carl

On Thu, 2003-07-17 at 12:18, Folo, Stuart (ISS Tokyo) wrote:
> Hello,
>  
> This is the service definition that I am using.
>  
> # Service definition
> define service{
>         use                             generic-service         ; Name
> of service template to use
>  
>         hostgroup_name                  web-servers,dns-servers,
>         service_description             eth0 Check
>         is_volatile                     0
>         check_period                    24x7
>         max_check_attempts              3
>         normal_check_interval           3
>         retry_check_interval            1
>         contact_groups                  nagios
>         notification_interval           3
>         notification_period             24x7
>         notification_options            c
>         check_command                   check_nrpe_eth0
>         }
>  
> define service{ <-- is line 202 of the services.cfg.
>  
> Stuart Folo
>         -----Original Message-----
>         From: Hochberg, Keith [mailto:Keith.Hochberg at mtvi.com] 
>         Sent: Friday, July 18, 2003 1:12 AM
>         To: Folo, Stuart (ISS Tokyo);
>         nagios-users at lists.sourceforge.net
>         Subject: RE: [Nagios-users] hostgroup_name with in the
>         services.cfg file
>         
>         
>         Can you include the service definition? more importantly line
>         202 of services.cfg.  The syntax is
>         hostgroup1,hostgroup2,etc... 
>                 -----Original Message-----
>                 From: Folo, Stuart (ISS Tokyo) [mailto:SFolo at iss.net] 
>                 Sent: Thursday, July 17, 2003 11:44 AM
>                 To: nagios-users at lists.sourceforge.net
>                 Subject: [Nagios-users] hostgroup_name with in the
>                 services.cfg file
>                 
>                 
>                 Hello,
>                  
>                 I am currently having issues with the hostgroup_name
>                 definition with in the services.cfg file. I can
>                 successfully add a single hostgroup to a service, but
>                 if I add another hostgroup to the service, I get the
>                 following error:
>                  
>                 Nagios 1.1
>                 Copyright (c) 1999-2003 Ethan Galstad
>                 (nagios at nagios.org)
>                 Last Modified: 06-02-2003
>                 License: GPL
>                  
>                 Reading configuration data...
>                  
>                 Error: Service description, host name, or check
>                 command is NULL
>                  
>                 Error: Could not register service (config file
>                 '/usr/local/nagios/etc/services.cfg', line 202)
>                  
>                 ***> One or more problems was encountered while
>                 processing the config files...
>                  
>                 I have searched the mailing lists without getting a
>                 successful fix for this problem. Any suggestions or
>                 corrections would be greatly appreciated.
>                  
>                 Stuart Folo



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list