Page 1 of 1

Can't relate hosts/services to service groups

Posted: Tue Mar 10, 2015 5:37 pm
by quaig7Ix
Hi,

Had a brief search of the forum but didn't have any luck.

First I apologise if I'm fundamentally 'doing it wrong'.

Before we bought XI I stood up Nagios Core as we didn't have a great deal of confidence in our previous solution. In addition to Nagios Core, I added NagiosQL as I wanted it to be easily maintainable by staffers that may be afraid of text based configuration files.

Using NagiosQL I was able to relate services to host groups and then populate those host groups with hosts so we could have a good baseline of monitors quickly and easily. I could then cherry-pick whatever hosts/services I wished into service groups to provide a decent 'at-a-glance' overview of the 'important bits' that provided a particular functionality to the business.

As exporting this config to XI results in a huge mess, I'm basically starting over from scratch using the above methodology. I've found however that I can't relate hosts/services to a service group where those hosts/services already have a relationship.

Service group from Core:
Image

Service group config from NagiosQL:
Image

Service group config from NagiosXI - only host services that have been explicitly created (i.e not inherited via a host group) appear:
Image

We're running the latest update of the software but this is also in the previous iteration. Is there any way around this issue, or is this working as intended?

Re: Can't relate hosts/services to service groups

Posted: Wed Mar 11, 2015 9:21 am
by cmerchant
Under Core, you had the proper relationship of the services tied to hostgroups and then assigned hosts to the appropriate hostgroups. It is important that when you exported from core/ imported into XI, that you followed the correct order for the different object types. The document I hope you followed is here:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

Re: Can't relate hosts/services to service groups

Posted: Wed Mar 11, 2015 5:06 pm
by quaig7Ix
Thanks,

As mentioned in my post I opted to not go with exporting/importing data from Core and have instead created my current configuration from scratch.

I created services as required and associated them to host groups, and then added in hosts. I just don't get the option of associating either host group members or their inherited services to service groups via the GUI.

Re: Can't relate hosts/services to service groups

Posted: Thu Mar 12, 2015 9:27 am
by lmiltchev
I just don't get the option of associating either host group members or their inherited services to service groups via the GUI.
What you can do from the GUI in XI is:
1. CCM->Service Groups-><your service group>->Edit->Manage Services->add services to your service group
or
2. CCM->Services-><your service>->Manage Service Groups->add a service group to your service

If this is not providing you with the functionality you need, you can define your configs manually (as in Nagios Core) and place them in the "/usr/local/nagios/etc/static/" directory. To learn more about how to manually maintain external object configuration files, please read the document below:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

Re: Can't relate hosts/services to service groups

Posted: Thu Mar 12, 2015 4:04 pm
by quaig7Ix
Thanks lmiltchev,
lmiltchev wrote: 1. CCM->Service Groups-><your service group>->Edit->Manage Services->add services to your service group
This only allows me to add host services that have been explicitly defined, not services that hosts have inherited through being members of a host group.

My problem is this.
Services -> Host Group(s) <- Hosts/Host Templates

With QL I could then add any inherited services (from the host group) into a service group without a problem.

With XI no inherited services (by which I mean, services that have been related to a host group) are presented in the GUI to be able to relate to a service group. Only service checks that have been explicitly related to hosts can be added.
lmiltchev wrote: 2. CCM->Services-><your service>->Manage Service Groups->add a service group to your service
Unfortunately this doesn't give me the desired result either. If I was relying on auto-discovery or didn't mind creating/relating individual services for each and every host, this would work fine - but for the most part I want my colleagues to be able to manage hosts by just using a host template or similar to add them into the relevant host group that has all the required service checks 'baked-in', so to speak.
lmiltchev wrote: If this is not providing you with the functionality you need, you can define your configs manually (as in Nagios Core) and place them in the "/usr/local/nagios/etc/static/" directory. To learn more about how to manually maintain external object configuration files, please read the document below:
Yep, I suspected this could be done via the raw config but I was really hoping that this would not be required given that the functionality to add inherited host services to service groups is present in QL. Sadly implementing/maintaining this isn't the entirety of my job and I want to ensure that we have a system that can be easily maintained by others without needing exposure to the actual OS or forcing them to use nano.

Re: Can't relate hosts/services to service groups

Posted: Thu Mar 12, 2015 10:34 pm
by Box293
quaig7Ix wrote: lmiltchev wrote:If this is not providing you with the functionality you need, you can define your configs manually (as in Nagios Core) and place them in the "/usr/local/nagios/etc/static/" directory. To learn more about how to manually maintain external object configuration files, please read the document below:



Yep, I suspected this could be done via the raw config but I was really hoping that this would not be required given that the functionality to add inherited host services to service groups is present in QL. Sadly implementing/maintaining this isn't the entirety of my job and I want to ensure that we have a system that can be easily maintained by others without needing exposure to the actual OS or forcing them to use nano.

I suggest you log this as a feature request at http://tracker.nagios.com

Re: Can't relate hosts/services to service groups

Posted: Sun Mar 15, 2015 4:24 pm
by quaig7Ix
No worries, thanks all.

Re: Can't relate hosts/services to service groups

Posted: Mon Mar 16, 2015 10:17 am
by ssax
quaig7Ix, can we mark this as resolved and lock the topic? If you have any further issues/questions you can create a new topic.