Lame Service definition Warning?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Lame Service definition Warning?

Post by rajasegar »

Nagios Xi Ent Ed 2014R1.2


Can someone advice me what is this lame definition warning?

Warning: Ignoring lame service dependency (config file '/usr/local/nagios/etc/servicedependencies.cfg', line 69)
Read object config files okay...


define servicedependency {
dependent_service_description MIMIX Repl Group2
host_name MY1PIRR1
service_description MIMIX Repl Group1
inherits_parent 1
execution_failure_criteria n,
notification_failure_criteria n,
dependency_period 24x7

}
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Lame Service definition Warning?

Post by tmcdonald »

I believe you are missing the dependent_host_name:

http://nagios.sourceforge.net/docs/3_0/ ... dependency
Former Nagios employee
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Lame Service definition Warning?

Post by sreinhardt »

The only thing you are missing, is a dependent_host_name, which is likely why you are getting a warning.
dependent_host_name: This directive is used to identify the short name(s) of the host(s) that the dependent service "runs" on or is associated with. Multiple hosts should be separated by commas. Leaving this directive blank can be used to create "same host" dependencies.
http://nagios.sourceforge.net/docs/3_0/ ... dependency
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.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Lame Service definition Warning?

Post by rajasegar »

Thanks guys. Will look into it in the morning.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Lame Service definition Warning?

Post by rajasegar »

Code: Select all

define servicedependency {
       dependent_host_name                      MY1PIRR1
       dependent_service_description            MIMIX Repl Group2
       host_name                                MY1PIRR1
       service_description                      MIMIX Repl Group1
       inherits_parent                          1
       execution_failure_criteria               n,
       notification_failure_criteria            n,
       dependency_period                        24x7

}
Still the same lame warning for the above. I already applied the Configurations.

I have a bunch of dependencies without dependent_host_name and no warning

Code: Select all

define servicedependency {
       dependent_service_description            Thread: ORB.thread.pool
       host_name                                esbwasp01,esbwasp02
       service_description                      Thread: MessageListenerThreadPool
       inherits_parent                          1
       execution_failure_criteria               u,c,
       notification_failure_criteria            u,c,
       dependency_period                        24x7

}
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Lame Service definition Warning?

Post by tmcdonald »

rajasegar wrote:

Code: Select all

define servicedependency {
       dependent_host_name                      MY1PIRR1
       dependent_service_description            MIMIX Repl Group2
       host_name                                MY1PIRR1
       service_description                      MIMIX Repl Group1
       inherits_parent                          1
       execution_failure_criteria               n,
       notification_failure_criteria            n,
       dependency_period                        24x7

}
You have the dependent_host_name set the same as the host_name:

http://nagios.sourceforge.net/docs/3_0/ ... dependency
dependent_host_name: This directive is used to identify the short name(s) of the host(s) that the dependent service "runs" on or is associated with. Multiple hosts should be separated by commas. Leaving this directive blank can be used to create "same host" dependencies.

host_name: This directive is used to identify the short name(s) of the host(s) that the service that is being depended upon (also referred to as the master service) "runs" on or is associated with. Multiple hosts should be separated by commas.
Former Nagios employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Lame Service definition Warning?

Post by lmiltchev »

Still the same lame warning for the above. I already applied the Configurations.
Does the message still point you to line 69?
Is the servicedependency definition that you showed us copied from the CCM (View Text Config) or from the actual config (/usr/local/nagios/etc/servicedependencies.cfg)?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Lame Service definition Warning?

Post by rajasegar »

tmcdonald wrote:
rajasegar wrote:

Code: Select all

define servicedependency {
       dependent_host_name                      MY1PIRR1
       dependent_service_description            MIMIX Repl Group2
       host_name                                MY1PIRR1
       service_description                      MIMIX Repl Group1
       inherits_parent                          1
       execution_failure_criteria               n,
       notification_failure_criteria            n,
       dependency_period                        24x7

}
You have the dependent_host_name set the same as the host_name:

http://nagios.sourceforge.net/docs/3_0/ ... dependency
dependent_host_name: This directive is used to identify the short name(s) of the host(s) that the dependent service "runs" on or is associated with. Multiple hosts should be separated by commas. Leaving this directive blank can be used to create "same host" dependencies.

host_name: This directive is used to identify the short name(s) of the host(s) that the service that is being depended upon (also referred to as the master service) "runs" on or is associated with. Multiple hosts should be separated by commas.
Initially dependent_host_name was left blank and I changed it after you advised it was missing.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Lame Service definition Warning?

Post by rajasegar »

lmiltchev wrote:
Still the same lame warning for the above. I already applied the Configurations.
Does the message still point you to line 69?
Is the servicedependency definition that you showed us copied from the CCM (View Text Config) or from the actual config (/usr/local/nagios/etc/servicedependencies.cfg)?
It is pointing to the same line and the definition came from usr/local/nagios/etc/servicedependencies.cfg.
Where is this CCM (View Text Config) located. I just cannot seem to find it. :shock:
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Lame Service definition Warning?

Post by tmcdonald »

Right about here:
view.png
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Locked