How to use host_groups in service definitions
nagios at mm.quex.org
nagios at mm.quex.org
Sun Oct 24 06:36:21 CEST 2004
On Sat, Oct 23, 2004 at 06:18:56PM +0200, Felix Buenemann wrote:
>
> I have tried to find information on $subject elsewhere, but to no
> avail.
>
> How can I use hostgroups inside service definitions? I am using Nagios
> 1.2 on a Debian/testing system. Currently I am specifying each host a
> service definition applies to on it's own, which gets awfully
> unreadable long lines and is ugly to maintain.
>
> How can I use my host_group definitions here instead, like eg.
> gateways,servers-sometown,printers I tried several syntaxes but nagios
> -v was always bitching on me if I used host_group names instead of
> plain hosts.
define service {
...
hostgroup_name gateways,servers-sometown,printers
...
}
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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