Service Dependencies

Janet Post janetpost at gmail.com
Wed Jul 16 12:30:36 CEST 2008


Hello,

I'm pretty sure you just use a ! (bang) to filter out your ping test:

define servicedependency{
       host_name                       Mickeymouse
       service_description             PING
       dependent_host_name             Mickeymouse
       dependent_service_description   *, !PING
       execution_failure_criteria      c,p,u
       notification_failure_criteria   c,u,p
       }

It might need to be on another line.  I haven't used the bang in this
context before,  but it should work.

Janet


On Wed, Jul 16, 2008 at 5:33 AM, Assaf Flatto <assaf.flatto at ssp.uk.com>
wrote:

> Hello
>
> I'm tweaking around with service dependencies and wanted to ask something
> that when i think about it
> will fail , but i  still keep the hope that nagios inner logic will not see
> mt setup so literally
> and work as i hope it will.
>
> I have a host with 23 services checked on it (i have several of those and
> i'm being lazy hence this
> question) :
> i want to define all the services on the server as being dependent on the
> ping ( connectivity comes
> first , after all) , but instead of type all the other services names , i
> want to do the "catch
> all" and be done with is .
> My question is - will nagios be smart enough to understand that the ping is
> not included in the * ?
> seems logical that it will be excluded since it is the Master service , but
> i am don't want to
> assume anything.
>
> define servicedependency{
>        host_name                       Mickeymouse
>        service_description             PING
>        dependent_host_name             Mickeymouse
>        dependent_service_description   *
>        execution_failure_criteria      c,p,u
>        notification_failure_criteria   c,u,p
>        }
>
>  Assaf
>
>
>
>
>
> 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
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080716/5c3989d5/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list