Hostgroup has no members
Andrade, Leonardo F. Buonsanti de (IT - Brasil)
leoandrade at deloitte.com.br
Tue Nov 26 13:08:04 CET 2002
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{
contactgroup_name proxy-admins
alias proxy administrators
members leo,paula
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021126/0f0b9533/attachment.html>
More information about the Users
mailing list