How to configure service dependencies if assigned to HG

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

How to configure service dependencies if assigned to HG

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to configure service dependencies if assigned to HG

Post 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
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

Re: How to configure service dependencies if assigned to HG

Post by questrad »

I am using Nagios XI 2014R2.0
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to configure service dependencies if assigned to HG

Post 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).
Be sure to check out our Knowledgebase for helpful articles and solutions!
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

Re: How to configure service dependencies if assigned to HG

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How to configure service dependencies if assigned to HG

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked