RE: [Nagios-devel] Error: Invalid hostgroup object directive

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

RE: [Nagios-devel] Error: Invalid hostgroup object directive

Post by Guest »


> -----Original Message-----
> From: twebster@daksoft.com [mailto:twebster@daksoft.com]
> Sent: Thursday, December 04, 2003 4:21 PM
> To: nagios-devel@lists.sourceforge.net
> Subject: [Nagios-devel] Error: Invalid hostgroup object directive
>=20
> I am receiving the same error that Oliver Haake reported receiving on
> 11-18, when trying to start nagios.
>=20
> I downloaded the latest nagios-cvs file on Dec 4. Is this a bug?
>=20
>=20
> Reading configuration data...
>=20
> Error: Invalid hostgroup object directive 'contact_groups'.
>=20
> Error: Could not add object property in file
'/etc/nagios/hostgroups.cfg'
> on line 5.
>=20
>=20
> my hostgroup entry looks like
>=20
> # 'INTERNET' host group definition
> define hostgroup{
> hostgroup_name INTERNET
> alias Internet
> contact_groups network-admins
> members WEST,EAST
> }
>=20
> my contactgroups.cfg file looks like
> # 'network-admins' contact group definition
> define contactgroup{
> contactgroup_name network-admins
> alias Network Administrators
> members username1, username2
> =20

According to the somewhat updated documentation for 2.0, you can not
define contact_groups in a hostgroup block. The other sections on that
page appear to be fully up to date so I have no reason to suspect that
this section isn't as well --

http://cvs.sourceforge.net/viewcvs.py/* ... /html/docs
/xodtemplate.html?content-type=3Dtext%2Fplain&rev=3D1.14#hostgroup

Host Group Definition=20

Description:

A host group definition is used to group one or more hosts together for
display purposes in the CGIs.=20

Definition Format:

Note: Directives in red are required, while those in black are optional.


define hostgroup{=20
hostgroup_name hostgroup_name=20
alias alias=20
members members=20
}=20

Example Definition:

define hostgroup{
hostgroup_name novell-servers
alias Novell Servers
members netware1,netware2,netware3,netware4
}

Directive Descriptions:

hostgroup_name: This directive is used to define a short name used to
identify the host group. =20
alias: This directive is used to define is a longer name or description
used to identify the host group. It is provided in order to allow you to
more easily identify a particular host group. =20
members: This is a list of the short names of hosts that should be
included in this group. Multiple host names should be separated by
commas. This directive may be used as an alternative to the hostgroups
directive in host definitions. =20






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: marc@ena.com
Locked