On Friday 02 October 2009 19:35:42 Randy Rodriguez wrote:
> Hey all. Here's my situation, and my dilemma. I instituted a check of
> the snmpd process on a group of hosts, all of which do snmp-based checks
> of other services. I want to institute a dependency such that the snmp
> checks do not notify if the snmpd check fails. Simple, no? Here's my
> service dependency cfg:
>
> define servicedependency{
> hostgroup_name all_servers
> service_description snmp_svc
> dependent_service_description snmp_*
> execution_failure_criteria n
> notification_failure_criteria c,u
> }
>
> I've also tried it like this:
>
> define servicedependency{
> hostgroup_name all_servers
> service_description snmp_svc
> dependent_servicegroup_name snmp_checks
> execution_failure_criteria n
> notification_failure_criteria c,u
> }
>
> and both fail in the same way. The error is
> Error: Could not expand master services specified in service dependency
> (config file '/usr/local/nagios/etc/objects/service_dependencies.cfg',
> starting on line 1)
>
> Clearly I'm missing something. Any help appreciated.
>
> Nagios 3.0.6, btw.
>
> Thanks,
> -Randy
>From what i can see in your definition , you specified that the dependency is
>for all your servers ,
but in you explanation of the problem you say that you defined it on a group ,
in that group is
called all_servers , that is ok , but if not and you are adding the dependency
to a server that
does not have the snmp checks related to , the load verification will fail .
also in the first example of the definitions , " snmp_*" is not a valid
parameter , "*" is a
standalone all encompassing declaration , you'll need to write each service
name manually to
include all snmp checks in to the dependency tree.
Assaf
--
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE
IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.
We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.
Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK
Limited by
email, you consent to us monitoring and reading any such correspondence.
Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.
Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights,
Brooklands, Weybridge. Surrey. KT13 0NY
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null