PDA

View Full Version : Host exclusion functionality for service relations


jmb
19th January 2009, 23:39
Does Centreon have any implementation of the Nagios 3.0 host exclusion functionality for services? This functionality is discussed on this Nagios documentation page:

http://nagios.sourceforge.net/docs/3_0/objecttricks.html

Specifically, the section here regarding the exclamation point notation:

Excluding Hosts:
If you want to create identical services on numerous hosts or hostgroups, but would like to exclude some hosts from the definition, this can be accomplished by preceding the host or hostgroup with a ! symbol.

define service{
host_name HOST1,HOST2,!HOST3,!HOST4,...,HOSTN
hostgroup_name HOSTGROUP1,HOSTGROUP2,!HOSTGROUP3,!HOSTGROUP4,..., HOSTGROUPN
service_description SOMESERVICE
other service directives ...
}


Let me know and if it doesn't support this, I'll submit it as a suggestion.

Pilo
20th January 2009, 12:25
hi there,

I'm looking for exactly the same functionnality !

All I can do for now is to modify the config files once created/moved by centreon interface and reload the nagios process...

But I know it'll be crashed by the next config files generation... :(

So, did u submit the suggestion ?

jmb
22nd January 2009, 01:05
No, I was waiting to hear from the developers on whether it was supported and I just didn't know how. I don't see how one would do that with the current interface. What they probably need to add are "exclude hosts" and "exclude host groups" multi-selection boxes under the relations tab of a service. I'll go ahead and submit it as a suggestion since I think I know what the answer will be.

Pilo
22nd January 2009, 06:15
that would be exactly what I (we) need.

Just one multiselect box to exclude some hosts from selected hostgroups when linking a "service on hostgroups".

remifalcon
3rd August 2009, 14:23
Hi,
i didnt find the otpion, can you give me some details?
Thanks !