# Multiple IP address check on same host

**URL:** <https://community.icinga.com/t/multiple-ip-address-check-on-same-host/1220>\
**Category:** Icinga 2\
**Created:** [May 15, 2019, 10:52am UTC](https://community.icinga.com/t/multiple-ip-address-check-on-same-host/1220 "2019-05-15T10:52:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 15, 2019, 11:27am UTC](https://community.icinga.com/t/multiple-ip-address-check-on-same-host/1220/2 "2019-05-15T11:27:32Z")

</div>

chek\_icmp can ping multiple IPs and you can define how many should be reachable:

> [@Dependency with two parents](https://community.icinga.com/t/dependency-with-two-parents/717/3):
>
> check\_icmp should be able to handle this and ping both addresses by adding a second one to the -H parameter and -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**
> >
> > ./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,…

Another possibility is check\_multi:

> [@Dependency with two parents](https://community.icinga.com/t/dependency-with-two-parents/717/2):
>
> Sounds like a job for [check\_multi](http://my-plugin.de/wiki/projects/check_multi/start).

---

_[View the full topic](https://community.icinga.com/t/multiple-ip-address-check-on-same-host/1220)._
