Page 2 of 3
Re: Setting up Service Dependencies
Posted: Sun Aug 11, 2013 7:03 pm
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
Re: Setting up Service Dependencies
Posted: Mon Aug 12, 2013 12:03 am
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.
Re: Setting up Service Dependencies
Posted: Mon Aug 12, 2013 12:01 pm
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.
Re: Setting up Service Dependencies
Posted: Tue Aug 13, 2013 12:48 am
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
Re: Setting up Service Dependencies
Posted: Tue Aug 13, 2013 9:24 am
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.
Re: Setting up Service Dependencies
Posted: Tue Aug 13, 2013 7:48 pm
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
Re: Setting up Service Dependencies
Posted: Wed Aug 14, 2013 1:20 pm
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..
Re: Setting up Service Dependencies
Posted: Thu Aug 22, 2013 1:59 am
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
Re: Setting up Service Dependencies
Posted: Thu Aug 22, 2013 1:29 pm
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
Re: Setting up Service Dependencies
Posted: Thu Aug 22, 2013 10:11 pm
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