Multiple "members" lines in hostgroup definiti ons?

Rob King rob.king at wholefoods.com
Thu Oct 3 22:21:19 CEST 2002


Hey Jim,
    Nope, tried that too. The parser accepts it, but only the last 
"members" line is actually accepted - it just overwrites any previous 
entries.

    Thanks,
    Rob

Carroll, Jim P [Contractor] wrote:

>Wild speculation on my part (read: I haven't tried this):
>
>What about multiple instances of the 'members' directive, thusly:
>
>define hostgroup{
>        hostgroup_name  prod
>        alias           Production Hosts
>        contact_groups  unix-admins
>        members         host1,host2,host3,host4
>        members         host5,host6,host7,host8
>        }
>
>Food for thought.
>
>jc
>
>  
>
>>-----Original Message-----
>>From: Rob King [mailto:rob.king at wholefoods.com]
>>Sent: Thursday, October 03, 2002 11:34 AM
>>To: nagios-users at lists.sourceforge.net
>>Subject: [Nagios-users] Multiple "members" lines in hostgroup
>>definitions?
>>
>>
>>Hello everyone,
>>    I was wondering if anyone knew of a way to have the 
>>"members" entry 
>>of a hostrgroup definition span multiple lines? I've tried ending the 
>>line with a comma-newline, but that doesn't work. Ditto for 
>>backslashing it.
>>
>>    The problem is, I'm going to have hostgroups with several dozen 
>>members, and having them  all on one line is going to be unsightly to 
>>say the least, and uneditable to say the worst.
>>
>>    Please let me know if anyone knows of a way around this.
>>
>>    Thanks,
>>    Rob
>>
>>
>>
>>
>>-------------------------------------------------------
>>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
>>
>>    
>>
>
>
>-------------------------------------------------------
>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
>
>
>  
>





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list