# Dependency with two parents

**URL:** <https://community.icinga.com/t/dependency-with-two-parents/717>\
**Category:** Icinga 2\
**Created:** [March 26, 2019, 7:04am UTC](https://community.icinga.com/t/dependency-with-two-parents/717 "2019-03-26T07:04:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![log1c](https://community.icinga.com/user_avatar/community.icinga.com/log1c/32/2071_2.png) [@log1c](https://community.icinga.com/u/log1c)\
**Post date:** [March 26, 2019, 7:18am UTC](https://community.icinga.com/t/dependency-with-two-parents/717/3 "2019-03-26T07:18:41Z")

</div>

check\_icmp should be able to handle this and ping both addresses by adding a second one to the -H parameter and

```auto
-m
    number of alive hosts required for success

```

> **check\_icmp -H 8.8.8.8 9.2.5.99 10.10.10.10 -m 2**
>
> ```auto
> ./check_icmp -H 8.8.8.8 9.2.5.99 10.10.10.10 -m 2
> OK - 8.8.8.8: rta 9,166ms, lost 0% :: 9.2.5.99: rta nan, lost 100% :: 10.10.10.10: rta 19,070ms, lost 0%
> |8.8.8.8rta=9,166ms;200,000;500,000;0; 8.8.8.8pl=0%;40;80;; 8.8.8.8rtmax=9,549ms;;;; 8.8.8.8rtmin=8,910ms;;;; 9.2.5.99rta=0,000ms;200,000;500,000;0; 9.2.5.99pl=100%;40;80;; 9.2.5.99rtmax=0,000ms;;;; 9.2.5.99rtmin=0,000ms;;;; 10.10.10.10rta=19,070ms;200,000;500,000;0; 10.10.10.10pl=0%;40;80;; 10.10.10.10rtmax=20,432ms;;;; 10.10.10.10rtmin=18,516ms;;;;
> 
> ```

But there is an issue with `check_icmp` if it come from the `nagios-plugins` package (on CentOS at least), that the calculation of the `min alive` is not working. I already opened a github issue, but no response until now: [https://github.com/nagios-plugins/nagios-plugins/issues/404](https://github.com/nagios-plugins/nagios-plugins/issues/404)

Therefore on my CentOS system I switched to `check_mping` [https://exchange.icinga.com/exchange/Ping%20of%20multiple%20Hosts%20via%20icmp%20protocol](https://exchange.icinga.com/exchange/Ping%20of%20multiple%20Hosts%20via%20icmp%20protocol)

---

_[View the full topic](https://community.icinga.com/t/dependency-with-two-parents/717)._
