Nagios errors !!
Jai Ganesh
r_jai_ganesh at yahoo.com
Wed Jan 5 10:26:43 CET 2005
okay, i now have only these entries in hostgroups.cfg
define hostgroup{
hostgroup_name admin
alias administrator
members example.com
}
now i get this error :
/usr/local/nagios/bin/nagios -v
/usr/local/nagios/etc/nagios.cfg
Error: Invalid host object directive '#'.
Error: Could not add object property in file
'/usr/local/nagios/etc/hosts.cfg' on line 3.
this is my hosts.cfg entry :
# Generic host definition template
define host{
# The name of this host template - referenced i
name generic-host
n other host definitions, used for template
recursion/resolution
# Host notifications are enabled
notifications_enabled 1
# Host event handler is enabled
event_handler_enabled 1
# Flap detection is enabled
flap_detection_enabled 1
# Process performance data
process_perf_data 1
# Retain status information across program restarts
retain_status_information 1
# Retain non-status information across program
restarts
retain_nonstatus_information 1
# DONT REGISTER THIS DEFINITION - ITS NOT A REAL
HOST,
# JUST A TEMPLATE!
register 0
}
# Host Definition
define host{
# Name of host template to use
use generic-host
host_name example.com
alias An Example Domain
address www.example.com
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
}
THanks for ur help.
--- Peter Hicks <peter.hicks at poggs.co.uk> wrote:
>
>
*****************************************************************************
> N.B. Please make sure you cc: the list in, as other
> people can then benefit
> from reading this thread.
>
*****************************************************************************
>
> On Wed, Jan 05, 2005 at 09:01:49AM +0000, Jai Ganesh
> wrote:
>
> > hostgroups.cfg :
> >
> > define hostgroup{
> > hostgroup_name flcd-servers
> > alias The Free Linux CD Project
> Servers
> > contact_groups flcd-admins
> > members example.com
> > members 10.10.22.220
> > }
>
> As the error said:
>
> Error: Invalid hostgroup object directive
> 'contact_groups'.
> Error: Could not add object property in file
> '/usr/local/nagios/etc/hostgroups.cfg' on line
> 4.
>
> 'contact_groups' is not a valid statement inside a
> hostgroup definition -
> see
>
http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#hostgroup.
>
> The behaviour has changed between Nagios 1.x and
> 2.x, documented in the
> changelog:
>
> "Contact group changes - The contact_groups
> directive has been moved from
> hostgroup definitions to host definitions. This
> was done in order to
> maintain consistency with the way service contacts
> are specified. Make
> sure to update your config files!"
>
>
>
> Peter.
>
>
>
-------------------------------------------------------
> The SF.Net email is sponsored by: Beat the
> post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt
> from ThinkGeek.
> It's fun and FREE -- well,
> almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> 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
>
___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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