Page 1 of 2

Lame Service definition Warning?

Posted: Mon Jun 30, 2014 1:37 am
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

}

Re: Lame Service definition Warning?

Posted: Mon Jun 30, 2014 10:35 am
by tmcdonald
I believe you are missing the dependent_host_name:

http://nagios.sourceforge.net/docs/3_0/ ... dependency

Re: Lame Service definition Warning?

Posted: Mon Jun 30, 2014 10:38 am
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

Re: Lame Service definition Warning?

Posted: Mon Jun 30, 2014 11:13 am
by rajasegar
Thanks guys. Will look into it in the morning.

Re: Lame Service definition Warning?

Posted: Mon Jun 30, 2014 8:33 pm
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

}

Re: Lame Service definition Warning?

Posted: Tue Jul 01, 2014 10:45 am
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.

Re: Lame Service definition Warning?

Posted: Tue Jul 01, 2014 10:50 am
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)?

Re: Lame Service definition Warning?

Posted: Tue Jul 01, 2014 6:01 pm
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.

Re: Lame Service definition Warning?

Posted: Tue Jul 01, 2014 6:11 pm
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:

Re: Lame Service definition Warning?

Posted: Wed Jul 02, 2014 8:59 am
by tmcdonald
Right about here:
view.png