define service{<br> hostgroup_name <hostgroup_name><br> host_name !<server1><br>...<br>}<br><br>Will work and is how Im currently doing exclusions on my Nagios2 instance.<br><br><br><br><div><span class="gmail_quote">
On 1/30/06, <b class="gmail_sendername">Kai Reese</b> <<a href="mailto:foranor@gmail.com">foranor@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I suppose you could then do something like<br><br>define service{<br> host_name <hostgroup_name>, !<server1>, !<server2><br>..<br>}<br><br>That might check all the hosts except the 2 you exclused by !
<br><br>Kai<br><br>PS: untested, I don't check services on hostgroups.<br><br><br><br>On 1/27/06, Toto Capuccino <<a href="mailto:shoktai@gmail.com">shoktai@gmail.com</a>> wrote:<br>> but that's another story mate ;)
<br>><br>> 2006/1/27, Don Lewis <<a href="mailto:donnell.lewis@icoretechnology.com">donnell.lewis@icoretechnology.com</a>>:<br>> > Of course then if you wanted a certain host not to have that service<br>
> > monitored you would have to remove it from the group which in turn would<br>> > remove it from anything else that is being monitored on it..;)<br>> ><br>> > -Don<br>> ><br>> > On Fri, 2006-01-27 at 11:33 +0100, Toto Capuccino wrote:
<br>> > > yes there is you create a houstgroup in hostgroups.cfg and then put<br>> > > the hostgroup name in services.cfg<br>> > ><br>> > > define service{<br>> > > ....<br>> > > hostgroup_name v240_servers
<br>> > > ..<br>> > > }<br>> > ><br>> > ><br>> > > 2006/1/27, Alberto <<a href="mailto:xagonzalezm@gmail.com">xagonzalezm@gmail.com</a>>:<br>> > > Is there any way to define services for a hostgroup something
<br>> > > like...<br>> > ><br>> > > define service{<br>> > > ....<br>> > > host_name v240_servers<br>> > > ..<br>
> > > }<br>> > ><br>> > > and not having to specify all hosts everytime I define a new<br>> > > service<br>> > ><br>> > > define service{
<br>> > > host_name node1,node2,node4,...<br>> > > }<br>> > ><br>> > ><br>> ><br>> ><br>><br>><br><br><br>-------------------------------------------------------
<br>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files<br>for problems? Stop! Download the new AJAX search engine that makes<br>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
<br><a href="http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642">http://sel.as-us.falkag.net/sel?cmdlnk&kid3432&bid#0486&dat1642</a><br>_______________________________________________
<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users
</a><br>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br>