hostgroups in servicegroup definition

Lori Adams ladams at cloudmark.com
Tue Sep 11 23:53:39 CEST 2007


This doesn't work.

 

I get the error:

Error: Could not find a service matching host name '<hostgroup>' and
description '<service>'.

 

It appears to only want hosts.

 

-Lori

 

-----Original Message-----



 

I don't use hostgroups in this way but I'm pretty sure it is possible 

because I added this to my servicegroup-generator.py (find it on 

nagiosexchange.org) at the request of another guy who emailed me.

 

Basically, the "hostgroup, service" bit goes on the Members line the 

same way the "host, service" bit does. You're welcome to give the 

servicegroup-generator a try as well since it will generate a file full 

of servicegroups following the names of the services you have defined in


services.cfg or equivalent. I use it to not bother writing my 

servicegroup file by hand...

 

Let me know how you get on...

 

Hope that helps.

 

-h

 

Hari Sekhon

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070911/bba7dbe1/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
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