HOSTGROUPNAME macro not filled completely
Marc Powell
marc at ena.com
Thu Nov 29 15:56:33 CET 2007
> -----Original Message-----
> From: nagios-devel-bounces at lists.sourceforge.net [mailto:nagios-devel-
> bounces at lists.sourceforge.net] On Behalf Of Michael Streb
> Sent: Thursday, November 29, 2007 8:50 AM
> To: nagios-devel at lists.sourceforge.net
> Subject: [Nagios-devel] HOSTGROUPNAME macro not filled completely
>
> Hi,
>
> today i discovered (in my opinion) a bug with the $HOSTGROUPNAME$
macro.
>
> The macro is filled with only one hostgroup, so if the host belongs to
> more
> than one hostgroups the information is lost.
>
> 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/macrolist.html#hostgroupname
$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
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
More information about the Developers
mailing list