Re: [Nagios-users] Service Dependency Config
2009/4/13 Nair vman...@rediffmail.com: Friends, I need to define mutal dependancy between two web services in different hosts. Define each as individual services in the usual way, then use Nagios Business Process Addons http://nagiosbp.projects.nagiosforge.org/ to define a service view which is dependent on both of those services. Cheers, Jim -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] Service Dependency Config
Not permmit a circular execution dependency here. That may be like this: define servicedependency{ host_namehost1 service_description www dependent_host_namehost3 dependent_service_description www execution_failure_criteriao notification_failure_criteria c,p } define servicedependency{ host_namehost2 service_descriptionwww dependent_host_name host3 dependent_service_description www execution_failure_criteriao notification_failure_criteria c,p } Or: define servicedependency{ host_namehost1 service_description www dependent_host_namehost1 dependent_service_description ping execution_failure_criteriao notification_failure_criteria c,p } define servicedependency{ host_namehost2 service_descriptionwww dependent_host_name host1 dependent_service_description ping execution_failure_criteriao notification_failure_criteria c,p } 2009/4/13 Nair vman...@rediffmail.com: Friends, I need to define mutal dependancy between two web services in different hosts. PLease see the config below which end up throwing error: --- Error: A circular execution dependency (which could result in a deadlock) exists for service 'www' on host 'host2'! --- # Service Dependency Definition for cfservd define servicedependency{ host_namehost1 service_description www dependent_host_namehost2 dependent_service_description www execution_failure_criteriao notification_failure_criteria c,p } define servicedependency{ host_namehost2 service_descriptionwww dependent_host_name host1 dependent_service_description www execution_failure_criteriao notification_failure_criteria c,p } Please share your thoughts for getting the config right. Thank you in advance Nair -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Nagios-users mailing list Nagios-users@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 -- Thanks, Chenlei 石头++ MSN Messenger: c...@163.com -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] Service Dependency Config
Thanks you, Lei. But, I have two web servers in cluster. Webserver may be online in any one of the servers. So I have defined www services in web servers - host1 and host2. And dont need an alert when www is online in any one of the servers. Is there any config to support this senario. Thank you Nair. On Mon, 13 Apr 2009 Lei Chen wrote : Not permmit a circular execution dependency here. That may be like this: define servicedependency{ host_namehost1 service_description www dependent_host_namehost3 dependent_service_description www execution_failure_criteriao notification_failure_criteria c,p } define servicedependency{ host_namehost2 service_descriptionwww dependent_host_name host3 dependent_service_description www execution_failure_criteriao notification_failure_criteria c,p } Or: define servicedependency{ host_namehost1 service_description www dependent_host_namehost1 dependent_service_description ping execution_failure_criteriao notification_failure_criteria c,p } define servicedependency{ host_namehost2 service_descriptionwww dependent_host_name host1 dependent_service_description ping execution_failure_criteriao notification_failure_criteria c,p } 2009/4/13 Nair vman...@rediffmail.com: Friends, I need to define mutal dependancy between two web services in different hosts. PLease see the config below which end up throwing error: --- Error: A circular execution dependency (which could result in a deadlock) exists for service 'www' on host 'host2'! --- # Service Dependency Definition for cfservd define servicedependency{ host_namehost1 service_description www dependent_host_namehost2 dependent_service_description www execution_failure_criteriao notification_failure_criteria c,p } define servicedependency{ host_namehost2 service_descriptionwww dependent_host_name host1 dependent_service_description www execution_failure_criteriao notification_failure_criteria c,p } Please share your thoughts for getting the config right. Thank you in advance Nair -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Nagios-users mailing list Nagios-users@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 -- Thanks, Chenlei ʯͷ++ MSN Messenger: c...@163.com -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] Service Dependency Config
On Apr 13, 2009, at 8:37 AM, Nair wrote: Thanks you, Lei. But, I have two web servers in cluster. Webserver may be online in any one of the servers. So I have defined www services in web servers - host1 and host2. And dont need an alert when www is online in any one of the servers. It sounds like you want to use the check_cluster plugin, not service dependencies... -- Marc -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] Service Dependency Config
2009/4/13 Nair vman...@rediffmail.com: Thanks you, Lei. But, I have two web servers in cluster. Webserver may be online in any one of the servers. So I have defined www services in web servers - host1 and host2. And dont need an alert when www is online in any one of the servers. Is there any config to support this senario. Thank you Nair. Another option is you could define the cluster address as a host in its own right, and specify host1 and host2 as parents. Cheers, Jim -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Nagios-users mailing list Nagios-users@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