Hostgroup has no members

Bishop, Dean dean.bishop at tcdsb.org
Tue Nov 26 15:30:17 CET 2002


Just from curiosity, why are the contacts "paula" and "leo" listed as
"members" of a hostgroup?
 
they are contacts and the "members" directive in a hostgroup definition is
supposed to hold the names of hosts.
 
try adding "proxy" to the "members" directive of "main-proxy" ala:
 
# 'proxy' host group definition

define hostgroup{

        hostgroup_name  main-proxy

        alias                   main proxy

        contact_groups  proxy-admins

        members             proxy

        }

 

later,

dean

-----Original Message-----
From: Andrade, Leonardo F. Buonsanti de (IT - Brasil)
[mailto:leoandrade at deloitte.com.br]
Sent: Tuesday, November 26, 2002 8:40 AM
To: nagios-users
Subject: RE: [Nagios-users] Hostgroup has no members
Importance: High



It does exists, and i´ve double-checked the config and the syntax.

I removed the reference at the nagios.cfg file to the hostgroups.cfg file
and when I run the pre flight check  :

 

Nagios 1.0b6

Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)

Last Modified: 09-15-2002

License: GPL

 

Reading configuration data...

 

Running pre-flight check on configuration data...

 

Checking services...

        Checked 2 services.

Checking hosts...

Warning: Host 'proxy' is not a member of any host groups!

        Checked 1 hosts.

Checking host groups...

Error: There are no host groups defined!

        Checked 0 host groups.

Checking contacts...

        Checked 2 contacts.

Checking contact groups...

        Checked 1 contact groups.

Checking service escalations...

        Checked 0 service escalations.

Checking host group escalations...

        Checked 0 host group escalations.

Checking service dependencies...

        Checked 0 service dependencies.

Checking host escalations...

        Checked 0 host escalations.

Checking host dependencies...

        Checked 0 host dependencies.

Checking commands...

        Checked 22 commands.

Checking time periods...

        Checked 4 time periods.

Checking for circular paths between hosts...

Checking for circular service execution dependencies...

Checking global event handlers...

Checking obsessive compulsive service processor command...

Checking misc settings...

 

Total Warnings: 1

Total Errors:   1

 

Leonardo Francisco Buonsanti de Andrade

Data Security & IT Telecom

Deloitte Touche Tohmatsu

* (5511) 31501877/1931

*leoandrade at deloitte.com.br

-----Original Message-----
From: Rafael Fernandes Suguiura [mailto:rafaelbsb at terra.com.br] 
Sent: terça-feira, 26 de novembro de 2002 11:11
To: leoandrade
Cc: nagios-users
Subject: Re:[Nagios-users] Hostgroup has no members

 

Leonardo,

 

You should verify two things:

- If the file hostgroup.cfg exists, and if exists, verify if there are valid
configuration, i.e. a hostgroup defined with all hosts listed in it.

- If you don´t wanna hostgroups, I believe you can remove it from the main
file, nagios.cfg. In the begging of nagios.cfg there is a reference to
hostgroup.cfg. I believe you can remove it, and nagios will no longer search
for the hostgroup file.

 

Check this and please let us know.


Rafael Fernandes Suguiura

Analista de Redes e Servicos

Brasilia-DF, Brasil

 

Hi everyone,

 

I searched the list for this error, and find some solutions, but I think
none of them applies to me.

I´m using Nagios 1.06b and i´m getting this error...

I´m sending my cfg files and my pre-flight check, so you can take a look and
tell me if there is anything wrong.

Thanks in advance,

 

Leonardo Francisco Buonsanti de Andrade

Data Security & IT Telecom

Deloitte Touche Tohmatsu

* (5511) 31501877/1931

*leoandrade at deloitte.com.br

 

----------------------------------------------------------------------------
----------------------------------------------------------------------------
---

 

Nagios 1.0b6

Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)

Last Modified: 09-15-2002

License: GPL

 

Reading configuration data...

 

Error: Hostgroup has no members (config file
'/usr/local/nagios/etc/hostgroups.cfg', line 21)

 

 

***> 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.

 

HOSTS.CFG

 

# Generic host definition template

define host{

        name                            generic-host    ; The name of this
host template - referenced in other host definitions, used for template
recursion/resolution

        notifications_enabled           1       ; Host notifications are
enabled

        event_handler_enabled           1       ; Host event handler is
enabled

        flap_detection_enabled          1       ; Flap detection is enabled

        process_perf_data               1       ; Process performance data

        retain_status_information       1       ; Retain status information
across program restarts

        retain_nonstatus_information    1       ; Retain non-status
information across program restarts

        register                        0       ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!

        }

 

# 'proxy' host definition

define host{

        use                     generic-host            ; Name of host
template to use

        host_name               proxy

        alias                   proxy server

        address                 10.127.1.80

        check_command           check-host-alive

        max_check_attempts      10

        notification_interval   120

        notification_period     24x7

 

HOSTGROUPS.CFG

 

# 'proxy' host group definition

define hostgroup{

        hostgroup_name  main-proxy

        alias           main proxy

        contact_groups  proxy-admins

        members         leo,paula

        }

 

CONTACTS.CFG

 

# 'leo' contact definition

define contact{

        contact_name                    leo

        alias                           proxy administrator

        service_notification_period     24x7

        host_notification_period        24x7

        service_notification_options    w,u,c,r

        host_notification_options       d,u,r

        service_notification_commands   notify-by-email

        host_notification_commands      host-notify-by-email

        email                           leoandrade at deloitte.com.br

        }

 

 

# 'paula' contact definition

define contact{

        contact_name                    paula

        alias                           proxy administrator1

        service_notification_period     24x7

        host_notification_period        24x7

        service_notification_options    w,u,c,r

        host_notification_options       d,u,r

        service_notification_commands   notify-by-email

        host_notification_commands      host-notify-by-email

        email                           aakemi at deloitte.com.br

        }

 

SERVICES.CFG

 

# explanation, so make sure to read the HTML documentation!

        check_freshness                 0       ; Default is to NOT check
service 'freshness'

        notifications_enabled           1       ; Service notifications are
enabled

        event_handler_enabled           1       ; Service event handler is
enabled

        flap_detection_enabled          1       ; Flap detection is enabled

        process_perf_data               1       ; Process performance data

        retain_status_information       1       ; Retain status information
across program restarts

        retain_nonstatus_information    1       ; Retain non-status
information across program restarts

 

        register                        0       ; DONT REGISTER THIS
DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!

        }

 

# Service definition

define service{

        use                             generic-service         ; Name of
service template to use

 

        host_name                       proxy

        service_description             HTTP

        is_volatile                     0

        check_period                    24x7

        max_check_attempts              3

        normal_check_interval           5

        retry_check_interval            1

        contact_groups                  proxy-admins

        notification_interval           120

        notification_period             24x7

        notification_options            w,u,c,r

        check_command                   check_http

        }

 

 

# Service definition

define service{

        use                             generic-service         ; Name of
service template to use

 

        host_name                       proxy

        service_description             PING

        is_volatile                     0

        check_period                    24x7

        max_check_attempts              3

        normal_check_interval           5

        retry_check_interval            1

        contact_groups                  proxy-admins

 

CONTACTGROUPS.CFG

 

# 'proxy-admins' contact group definition

define contactgroup{

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021126/b0bf4967/attachment.html>


More information about the Users mailing list