Page 1 of 1

How to configure service dependencies if assigned to HG

Posted: Fri Feb 06, 2015 4:06 am
by questrad
Hello,

Can you please give me some advise on how to configure dependencies based on following configuration.

So, we have:

Code: Select all

2 hostgroup HG_A and HG_B
5 hosts H1, H2, H3, H4, H5

HG_A includes H1, H3, H4
HG_B includes H2, H5
And following 3 services, as defined in NagiosXI CCM:

Code: Select all

Service_1:
	Config Name: Serv1
		(this will be file name on server)
	Description: S1 
		(this is the actual service name in CCM configuration or service_description)

Service_2:
	Config Name: Serv1
	Description: S2

Service_3:
	Config Name: Serv2
	Description: S1
Each service has own contact groups, times to check and etc.


And those services are applied to hostgroups, not to servers directly.

Code: Select all

Service_1, Service_2 to HG_A
Service_2, Service_3 to HG_B
In CCM configuration when I want to start making service dependencies, I am confusing, because I see only the service description and I cannot determinate - which one is for HG_A was assigned and which one was assigned to HG_B

For example:
Service_1 and Service_3 has the same description, but they are for different server types.

Here is screen shots
How the services are showing in Service Dependencies CCM config - I think you need to show here as well the config name.
ServiceNames_InServiceDepen.jpg
CCM_ServiceDepen.jpg
And the services itself:
ServiceNames.jpg

Re: How to configure service dependencies if assigned to HG

Posted: Fri Feb 06, 2015 12:30 pm
by lmiltchev
What is the version of Nagios XI that you are currently using? You will be able to see both the host and the service in a format -> "host - service" under the "Service Dependency Management" window in the latest release of XI. See an example below:
example01.PNG

Re: How to configure service dependencies if assigned to HG

Posted: Fri Feb 06, 2015 2:32 pm
by questrad
I am using Nagios XI 2014R2.0

Re: How to configure service dependencies if assigned to HG

Posted: Fri Feb 06, 2015 3:53 pm
by lmiltchev
The hostnames are not shown as these services are added to hostgroups and not added to any hosts. I would recommend using more descriptive names (not using the same name for all of them).

Re: How to configure service dependencies if assigned to HG

Posted: Fri Feb 06, 2015 4:49 pm
by questrad
So, you suggest to use for example:

HG1
HG2

Service
Description: PING

For HG1 naming the description as HG1_Ping and etc.?
What if I have longer host-group naming?

I dont think it is correct.
It is better if the CCM can show the "Config Name" of the service if the service is not assigned to any host directly.

Re: How to configure service dependencies if assigned to HG

Posted: Mon Feb 09, 2015 10:53 am
by lmiltchev
I just spoke to our developers about that. I was told that you should be able to use ANY of the services listed, provided you use the correct name (casing matters - PING is not the same as Ping).
We will be moving away from displaying services under the "Service Dependency Management" in the "host - service" format. Only the service name will be displayed and duplicates will be removed. So for example, if you had 5 services named PING, only 1 PING would be shown.
Hope this helps.