On 05/31/2011 02:24 PM, Assaf Flatto wrote:
> Simon wrote:
>> Hi list,
>>
>> i'd like to define a dependency for a service, which depends on another host
>> (and no special service on it). Is this possible?
>>
>> If i leave the "service_description" field empty, i get errors and the new
>> config refuses to load.
>>
>> Example: I've got a single check for updates on my linux hosts via the
>> check_multi script. the normal case is that i plan a downtime for the host i
>> actually have to patch. when i now restart this host after successfull 
>> update,
>> the update-check fails and me and my co-workers retrieve a notification.
>>
>> -------- snip ---------
>>
>> define service {
>>   host_name                       icinga-host
>>   service_description             Apt-Updates
>>   check_command                   check_apt_updates!
>>   contact_groups                  admins
>>   use                             half-daily
>> }
>>
>> define servicedependency {
>>   dependent_host_name             icinga-host
>>   dependent_service_description   Apt-Updates
>>   host_name                       host1, host2, host3
>>   notification_failure_criteria   w,u,c
>> }
>>
>> -------- snip ---------
>>
>> Greetings,
>> Simon
>>
>>   
> you'll need to define a service that the apt-updates service is 
> dependent on , if you have no services assigned to host {1..3} , then 
> the service dependency login breaks , cause you are telling it "make 
> sure that  you can walk only if ...." ( but you do not supply the "if" 
> option.)

Hi Assaf,

i would have prefered to tell him "just run when host X, Y and Z are up", but
i'll add some services to these hosts make my check dependent on them

Thanks for your answer,
Simon

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to