Services per hostgroups

jeff vier jeff.vier at tradingtechnologies.com
Tue Sep 23 02:30:05 CEST 2003


hostgroup_name

and either host_name or hostgroup_name can have many (comma-separated)
entries.

like:

define service{
        use                             generic-service
        host_name                       host1,host2,host3
        hostgroup_name       		grp1,grp2,grp3
        service_description             Current Users
        is_volatile                     0
        parallelize_check               1
        check_period                    24x7
        max_check_attempts              3
        normal_check_interval           10
        retry_check_interval            2
        contact_groups                  admins
        notification_interval           240
        notification_period             24x7
        notification_options            w,u,c,r
        check_command                   check_local_users!75!150
        }

On Mon, 2003-09-22 at 18:35, Mark Arnold wrote:
> Hi,
> 
> I just installed Nagios for the first ime and I am impressed!
> 
> But I am missing one thing:
> A service can be defined per host - the sample file shows about 20 or even more different hosts (servers, printers, routers, etc).
> Now for each of these hosts, there is the same ping service defined over and over again...
> This seems like a huge pain to maintain... Even if it is possible to use only one with a list of hostnames like
> 
>     hostname linux_box1,linuxbox2
> 
> (I dont know if this works or not) it would still be rather complex to maintain this for a big number of servers.
> 
> Isn't it possible to use hostgroups instead? What else are the hostgroups for, if not for this?
> So there would be one ping service setup for
> 
>     hostgroup all_nodes
> 
> and a hostgroup "all_nodes" would be configured accordingly. SMTP and POP could be configured for "all_mailservers", etc...
> 
> I tried to just use a hostgroup name instead of the hostname, but Nagios didn't like that, it said the groupname was not a valid
> host name...
> 
> Is there anything like this already there that I don't know of?
> 
> Thanks,
> 
> MARK
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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