Setting up Service Dependencies

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Setting up Service Dependencies

Post by Fred Kroeger »

Hmmm... that doesn't sound quite right?
I'll check out why there are so many.
I should have 100 servers with 15 services each checking for one dependency.

regards... Fred
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Setting up Service Dependencies

Post by Fred Kroeger »

Where did you get 25,604 dependencies?
I just checked servicedependencies.cfg and it has 6 entries

This is the last one that started all the delays in the configuration process:

Code: Select all

define servicedependency {
       dependent_hostgroup_name                 CAT-3 UNIX - Global,CAT-4 UNIX - Global,CAT-5 UNIX - Global
       dependent_service_description            / Disk Usage - Cat3-5,CPU Utilisation - Solaris Cat3-5,Disk Usage - UFS - Cat3-5,Disk Usage - ZFS - Cat3-5,Disk Usage - zpools,FMD - Fault Management,Load - Solaris - Cat3-5,Memory Usage - Solaris - Cat3-5,Network - kb/sec,Network - pkt/sec,Network - Utilisation,NTP Time - Solaris,RAID - Hardware,SMF - Services,Swap Usage - Cat3-5,Total Processes - Solaris - Cat3-5,Uptime - Solaris,Users - Cat3-5,ZPOOL Health Check,ZPOOL Status
       hostgroup_name                           CAT-3 UNIX - Global,CAT-4 UNIX - Global,CAT-5 UNIX - Global
       service_description                      Check NRPE Agent - Solaris
       inherits_parent                          1
       execution_failure_criteria               w,u,c,
       notification_failure_criteria            w,u,c,
       dependency_period                        24x7

I have 20 services for each host that are dependent on the NRPE agent being up.
There are a total of 24 hosts in the three Hostgroups.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Setting up Service Dependencies

Post by sreinhardt »

Well according to the reconfig.txt:
Checking services...
Checked 4019 services.
Checking hosts...
Checked 415 hosts.
Checking service dependencies...
Checked 25604 service dependencies.

Do you have any groups that are a part of groups, or any other possible circular or multiple inheritance issues regarding dependencies? The checks don't seem to say this, but it would seem one of the few logical reasons for it to get this large on you.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Setting up Service Dependencies

Post by Fred Kroeger »

Hi Spenser
As you can see I'm not using Service Groups but the Hostgroups are members of other groups which are then members of other groups.
Is it possible to view these 25,000 dependencies somewhere & check what they are and why there are so many?
BTW I have deselected the Inherit Parents in the Service dependency and applied that config. When I run the reconfigure_nagios script I still have
25,000 service dependencies

regards... Fred
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Setting up Service Dependencies

Post by slansing »

One way of doing this I believe, would be to enter the CCM and select Host/Service Dependencies out of the Advanced list on the left hand side. This should show you your "interconnections" in the sense it will show what objects depend on others. Right now there is not a real clear map of object inter-dependencies which one can look at and analyze.
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Setting up Service Dependencies

Post by Fred Kroeger »

Thanks - I've selected the Host Dependencies but not sure where I will see all the interconnections?
If the reconfigure script can determine there are 25,000 service dependencies, then there must be some record somewhere or does it work it out on the fly?

Fred
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Setting up Service Dependencies

Post by slansing »

You should just be able to see the dependencies here, there is no mapping for dependencies currently as this is done when configuration files are verified against the database upon applying configuration. You can check parent-child relationships through the Hypermap but that is the current extent. One way you could try to hunt these dependencies down is after you apply configuration take a look at the output, if you see a single dependency listed over and over again it is likely a service applied to many hosts, or a template designating a service to hosts, etc..
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Setting up Service Dependencies

Post by Fred Kroeger »

I've looked at my Configuration snapshot and there is nothing unusual that would account for 25,000 service dependencies?
Do you know if there is a SQL query that would display these dependencies?

regards... Fred
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Setting up Service Dependencies

Post by scottwilkerson »

These are service dependencies, not host dependencies

You should be able to see them in Configure -> CCM -> Advanced -> Service Dependencies

Remember, each item listed can contain MANY dependencies, especially if you have combinations of many hos/many services or hostgroups/services so you would have to either click the edit button or the disk icon to see the whole list
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Fred Kroeger
Posts: 588
Joined: Wed Oct 19, 2011 11:36 pm
Location: Perth, Western Australia
Contact:

Re: Setting up Service Dependencies

Post by Fred Kroeger »

Hmm.. I think we're going around in circles.
Yes I understand these are Service Dependencies, I set them up using Configure -> CCM -> Advanced -> Service Dependencies

The listing above shows the entry in the servicedepenency file.
There are are total of 24 servers in the 3 x HostGroups listed, there are 20 services dependent on the NRPE Agent monitor.

How do I end up with 25,000 service dependencies?

Fred
Locked