Specifying hostgroup in the host?
Christian Schneemann
cschneemann at suse.de
Tue Feb 24 11:56:14 CET 2009
On Tuesday February 24 2009 11:35:57 am Kevin Keane wrote:
> I am running nagios 3.0.6, and would like to find a better way to manage
> my hostgroups.
>
> In Nagios, you usually create a hostgroup by specifying all the relevant
> hosts in the hostgroup object. What I would like to do is instead tell
> each host object which hostgroup it belongs to. This is so that I don't
> have to touch the hostgroup definition when I add new hosts.
>
> Is this possible? Or is there some other way to accomplish the same goal?
Hi,
both is possible and documented in the docs
http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host
"hostgroups: This directive is used to identify the short name(s) of the
hostgroup(s) that the host belongs to. Multiple hostgroups should be
separated by commas. This directive may be used as an alternative to (or in
addition to) using the members directive in hostgroup definitions. "
Greetings,
Christian
--
Christian Schneemann
-------------------------------------
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 Nürnberg
Phone: +49 (0)911 - 740 53 0
e-mail: cschneemann at suse.de
-------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex
HRB 16746 (AG Nürnberg)
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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