service dependencies problem

Deborah Martin Deborah.Martin at Kognitio.com
Wed May 31 12:08:08 CEST 2006


One of your (many) definitions is : 

define servicedependency{
          host_name                       sonorys_gateway
          service_description             PING
          dependent_host_name             sonorys_checkpoint
          dependent_service_description   PING
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u

I don't think you can have dependency_service_description being the same as
the 'service_description' as it will just loop. 

In the nagios -v check, you should probably have also seen under 'Checking
service dependencies' an error 
along the lines of 'dependency definition for service '<yourservice>' on
host <yourhost> is circular (it depends on itself'  

I've just tested this scenario and errors are the same as yours.

I also noticed the errors only occur when the dependent service is the same.
When different, there doesn't appear to be a problem. 

Test this! Remove all of the definitions so that you are only left with the
ones that match in both the service_description and the
dependent_service_description and run the nagios -v check again. You'll get
the 
same errors again. Then add one definition where the descriptions were
different. You'll see the difference. 

hth, 
-----Original Message-----
From: Grzegorz Rumatowski [mailto:g.rumatowski at gmx.net]
Sent: 31 May 2006 10:37
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] service dependencies problem


  Hello,

During checking nagios config with nagios -v I'm getting:

  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'YESSS-Firewall'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'clst1 at YESSS'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'clst1 at YESSS'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'SSH' on host 'clst1 at YESSS'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'clst2 at YESSS'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'clst2 at YESSS'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'SSH' on host 'clst2 at YESSS'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'onein1'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'SSH' on host 'onein1'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'onein2'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'SSH' on host 'onein2'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'PING' on host 'onein3'!
  Error: A circular execution dependency (which could result in a
  deadlock) exists for service 'SSH' on host 'onein3'!

  I've defined following service deps:

  define servicedependency{
          host_name                       sonorys_gateway
          service_description             PING
          dependent_host_name             sonorys_checkpoint
          dependent_service_description   PING
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
          host_name                       sonorys_checkpoint
          service_description             PING
          dependent_host_name             SILns1,SILns2,SILns3
          dependent_service_description   PING
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
          host_name                       SILns1
          service_description             PING
          dependent_host_name             YESSS-Firewall
          dependent_service_description   PING
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
          host_name                       SILns2
          service_description             PING
          dependent_host_name             YESSS-Firewall
          dependent_service_description   PING
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
          host_name                       SILns3
          service_description             PING
          dependent_host_name             YESSS-Firewall
          dependent_service_description   PING
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
          host_name                       sonorys_checkpoint
          service_description             PING
          dependent_host_name
  onein1,onein2,onein3,clst1 at YESSS,clst2 at YESSS
          dependent_service_description   PING
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
          host_name                       sonorys_checkpoint
          service_description             PING
          dependent_host_name             YESSS-Firewall
          dependent_service_description   PING
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
          host_name                       YESSS-Firewall
          service_description             PING
          dependent_host_name
  onein1,onein2,clst1 at YESSS,clst2 at YESSS
          dependent_service_description   PING
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
      host_name            onein1
      service_description        PING
      dependent_host_name        onein1
      dependent_service_description    SSH
      notification_failure_criteria    c,u
      execution_failure_criteria    c,u
  }

  define servicedependency{
          host_name                       onein2
          service_description             PING
          dependent_host_name             onein2
          dependent_service_description   SSH
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
          host_name                       onein3
          service_description             PING
          dependent_host_name             onein3
          dependent_service_description   SSH
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
          host_name                       clst1 at YESSS
          service_description             PING
          dependent_host_name             clst1 at YESSS
          dependent_service_description   SSH,Disk Space
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
          host_name                       clst2 at YESSS
          service_description             PING
          dependent_host_name             clst2 at YESSS
          dependent_service_description   SSH,Disk Space
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }

  define servicedependency{
          host_name                       onein1
          service_description             SSH
          dependent_host_name             onein1
          dependent_service_description   Disk Space
          notification_failure_criteria   w,u,c
          execution_failure_criteria      w,u,c
  }

  define servicedependency{
          host_name                       onein2
          service_description             SSH
          dependent_host_name             onein2
          dependent_service_description   Disk Space
          notification_failure_criteria   w,u,c
          execution_failure_criteria      w,u,c
  }

  define servicedependency{
          host_name                       onein3
          service_description             SSH
          dependent_host_name             onein3
          dependent_service_description   Disk Space
          notification_failure_criteria   w,u,c
          execution_failure_criteria      w,u,c
  }

  define servicedependency{
          host_name                       clst1 at YESSS
          service_description             SSH
          dependent_host_name             clst1 at YESSS
          dependent_service_description   Disk Space
          notification_failure_criteria   w,u,c
          execution_failure_criteria      w,u,c
  }

  define servicedependency{
          host_name                       clst2 at YESSS
          service_description             SSH
          dependent_host_name             clst2 at YESSS
          dependent_service_description   Disk Space
          notification_failure_criteria   w,u,c
          execution_failure_criteria      w,u,c
  }

  define servicedependency{
          host_name                       SILns1
          service_description             PING
          dependent_host_name
  onein1,onein2,onein3,clst1 at YESSS,clst2 at YESSS
          dependent_service_description   PING
          notification_failure_criteria   c,u
          execution_failure_criteria      c,u
  }


What is the problem? I don't really understand it. Any ideas?

  Gregory



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
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

************************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictly 
prohibited.

Whilst Kognitio Limited takes steps to prevent the transmission of 
viruses via e-mail, we can not guarantee that any email or 
attachment is free from computer viruses and you are strongly
advised to undertake your own anti-virus precautions.

Kognitio grants no warranties regarding performance,
use or quality of any e-mail or attachment and undertakes no 
liability for loss or damage, howsoever caused.
***********************************************************************



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
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