Host Check Dependency..

Jim McNamara jim at packetalk.net
Thu Aug 6 18:46:55 CEST 2009


On Thu, 2009-08-06 at 09:08 -0700, Mirza Dedic wrote:

> Hello,
> 
> I plan to use Host Check Dependency on my services... can someone please confirm that the below will do the following scenario: If Ping fails to the host machine (van-sql01) that is being monitored, Nagios will suppress the services listed in the dependent_service_description portion of the configuration...
> 
> define servicedependency{
>         host_name                       van-sql01
>         service_description             Ping
>         dependent_host_name             van-sql01
>         dependent_service_description   NSClient Version, Uptime, C - Disk Space, D - Disk Space, CPU Over 25min, Memory
>         execution_failure_criteria      w,u,c
>         notification_failure_criteria   w,u,c
> }
> 
> Will this setup achieve that?
> 
> What if Nagios does not check PING first? Or will the setup above force for a ping check initially before checking these services? (If ping is still pending, will it wait until It gets the status of PING before checking these services and suppressing them incase PING has failed??)
> 
> Thanks.
> 

Yes, what you have looks fine. I have the same situation with checking
linux servers over ssh, and my service dependency list is quite similar
to yours -

  define servicedependency{
        host_name
linux_server_1
        service_description                                          ssh
        dependent_host_name
linux_server_1
        dependent_service_description                     var
partition,total processes,current load,swap usage
        notification_failure_criteria
c,u,w
        execution_failure_criteria                                 c,u,w
        }

I don't know about scheduling well enough to say if the non-dependent
service is checked first, or if simply the notices/event
handlers/whatever else you have happening/ are delayed on the key
service, but you won't see any action taken by nagios until the
dependent service state is established.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090806/1b4781a8/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-------------- 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