Nagios XI - Wizard & Host/Service Groups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Hulkster
Posts: 5
Joined: Thu Jul 12, 2012 8:50 am

Nagios XI - Wizard & Host/Service Groups

Post by Hulkster »

Hi,

I am currently using the 60 day demo of Nagios XI.

One issue I am finding is, when I add a host via Configure > Wizard, and add them to a host and/or service group, if i then go to Core Config Manager, I do not see the hosts or services I have added to these groups

However by using Hostgroup Overview or Servicegroup Overview from the Home page, the hosts/services I have added are clearly visible in those groups.

I am a fairly savvy Nagios Core user, so my first port of call was the following files:

/usr/local/nagios/etc/hostgroups.cfg
/usr/local/nagios/etc/servicegroups.cfg

I presume that it is these files that are read by the core config manager, which makes sense. I can see all the host groups, but when I have added hosts to groups via a Wizard, those groups have no "members"

For Example I have Group A with host A and host B

In /usr/local/nagios/etc/hosts/hosta.cfg, I can see that it is a member of host group A....but this is not reflected in hostgroups.cfg

Doing a recursive grep for HostA produces way too much output

What am I doing wrong?

Thanks!

As an aside, I have some custom scripts which I made for Nagios Core - if I put this in libexec and add the host/service/command definitions and reference this in nagios.cfg, will it work in the same manner as it did in Nagios Core and is this something which is supported on XI? Part of the reason to move to XI from Core is for support and a nice GUI for non nix guys so don't want to go under the covers too much if it voids support.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI - Wizard & Host/Service Groups

Post by scottwilkerson »

hostgroups /servicegroups can be added in 2 ways. The first would place them in the locations you have been looking.

The second adds a hostgroup/service group to the host/service config.

So if you look from the CCM at
CCM -> Hosts -> Modify (a host you have in a hostgroup)
click the notepad next to hostgroup and you will see the hostgroup it is in.

You can add the hosts to a hostgroup either way, but the current CCM doesn't show it either way, it will only show the way it was added.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Hulkster
Posts: 5
Joined: Thu Jul 12, 2012 8:50 am

Re: Nagios XI - Wizard & Host/Service Groups

Post by Hulkster »

Scott,

Thankyou for the reply. Though I do find it a little strange, as I had rather hoped the CCM would show everthing you see in the regular views plus more advanced config options and data...it may get confusing if we have a team of guys adding hosts and i cant see the members of these groups within the CCM.

What actually made me notice this was that I added a new service to an existing host and added it to the wrong service group when using the wizard. I went to remove it from this group via CCM..but it is not shown as a member, in this case, how do I remove it?

Also i like to keep backups of the key directories - where abouts in the file system shows hostgroup and servicegroup members that are added by a Wizard?

Many thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI - Wizard & Host/Service Groups

Post by scottwilkerson »

I went to remove it from this group via CCM..but it is not shown as a member, in this case, how do I remove it?
CCM -> Hosts -> Modify (a host you have in a hostgroup)
click the notepad next to hostgroup and you will see the hostgroup it is in.
Hulkster wrote:Also i like to keep backups of the key directories - where abouts in the file system shows hostgroup and servicegroup members that are added by a Wizard?
They are in the individual service definition in
/usr/local/nagios/etc/hosts
/usr/local/nagios/etc/services
Hulkster wrote:Though I do find it a little strange, as I had rather hoped the CCM would show everthing you see in the regular views plus more advanced config options and data...it may get confusing if we have a team of guys adding hosts and i cant see the members of these groups within the CCM.
The new CCM that will be included in the 2012 release due out in a couple month does some additional stuff to make it clear if the hosts were added to hostgroups various ways.

The new CCM is available in beta as a component and can be downloaded from this post
http://support.nagios.com/forum/viewtop ... 843#p28816
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Hulkster
Posts: 5
Joined: Thu Jul 12, 2012 8:50 am

Re: Nagios XI - Wizard & Host/Service Groups

Post by Hulkster »

Thanks again Scott, that is clearer now, and I can indeed see the info via CCM -> Hosts -> Modify, and I will take a look at the new CCM as it sounds good :)
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Nagios XI - Wizard & Host/Service Groups

Post by mguthrie »

The newest Beta is actually available from this link. The one from the post above is an older version.
http://assets.nagios.com/downloads/exch ... cm/ccm.zip
Locked