Lame Service definition Warning?
Lame Service definition Warning?
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
}
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
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Lame Service definition Warning?
I believe you are missing the dependent_host_name:
http://nagios.sourceforge.net/docs/3_0/ ... dependency
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?
The only thing you are missing, is a dependent_host_name, which is likely why you are getting a warning.
http://nagios.sourceforge.net/docs/3_0/ ... dependencydependent_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.
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.
Re: Lame Service definition Warning?
Thanks guys. Will look into it in the morning.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Lame Service definition Warning?
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
}
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
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Lame Service definition Warning?
You have the dependent_host_name set the same as the host_name: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 }
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
Re: Lame Service definition Warning?
Does the message still point you to line 69?Still the same lame warning for the above. I already applied the Configurations.
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!
Re: Lame Service definition Warning?
Initially dependent_host_name was left blank and I changed it after you advised it was missing.tmcdonald wrote:You have the dependent_host_name set the same as the host_name: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 }
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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Lame Service definition Warning?
It is pointing to the same line and the definition came from usr/local/nagios/etc/servicedependencies.cfg.lmiltchev wrote:Does the message still point you to line 69?Still the same lame warning for the above. I already applied the Configurations.
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)?
Where is this CCM (View Text Config) located. I just cannot seem to find it.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
RHEL 6 & 7
rrdcached & ramdisk optimisation
Re: Lame Service definition Warning?
Right about here:
You do not have the required permissions to view the files attached to this post.
Former Nagios employee