Re: [Nagios-devel] HOSTGROUPNAME macro not filled completely

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] HOSTGROUPNAME macro not filled completely

Post by Guest »



> -----Original Message-----
> From: [email protected] [mailto:nagios-devel-
> [email protected]] On Behalf Of Michael Streb
> Sent: Thursday, November 29, 2007 8:50 AM
> To: [email protected]
> Subject: [Nagios-devel] HOSTGROUPNAME macro not filled completely
>=20
> Hi,
>=20
> today i discovered (in my opinion) a bug with the $HOSTGROUPNAME$
macro.
>=20
> The macro is filled with only one hostgroup, so if the host belongs to
> more
> than one hostgroups the information is lost.
>=20
> Is there any reason why this is coded like this ?

Both have their uses. An additional macro has been added with 3.x --

http://nagios.sourceforge.net/docs/3_0/ ... tgroupname

$HOSTGROUPNAME$ The short name of the hostgroup that this host
belongs to. This value is taken from the hostgroup_name directive in the
hostgroup definition. If the host belongs to more than one hostgroup
this macro will contain the name of just one of them.

$HOSTGROUPNAMES$ A comma separated list of the short names of all
the hostgroups that this host belongs to.

--
Marc





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked