Hi! You can add a Ping Service to those hosts. So whenever the host is up (PING works / ICMP Echo Reply received) the dependency is satisfied. Cheers Phil -- It might be just possible, by lying very still in a cellar somewhere, to get through a day without committing a crime. But only just. And, even then, you were probably guilty of loitering. - Terry Pratchett: Feet of clay.
GPG KEY ID (Philipp Bieber): 0x0185E301 FINGERPRINT: CA81 28C2 E63F DAF8 5ED4 DACB 7C26 EE5B 0185 E301 Philipp Bieber - [email protected] On Tue, May 31, 2011 at 14:40, Simon <[email protected]> wrote: > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/icinga-users > ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/icinga-users
