# Error with add host to icinga web 2

**URL:** <https://community.icinga.com/t/error-with-add-host-to-icinga-web-2/9052>\
**Category:** Icinga Web\
**Tags:** icinga, icingaweb2, ubuntu\
**Created:** [January 21, 2022, 7:49pm UTC](https://community.icinga.com/t/error-with-add-host-to-icinga-web-2/9052 "2022-01-21T19:49:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luisao69](https://community.icinga.com/user_avatar/community.icinga.com/luisao69/32/5070_2.png) [@luisao69](https://community.icinga.com/u/luisao69)\
**Post date:** [January 21, 2022, 7:49pm UTC](https://community.icinga.com/t/error-with-add-host-to-icinga-web-2/9052/1 "2022-01-21T19:49:27Z")

</div>

install icinga web 2 on my ubuntu 18.04 pc, with the installation there is no problem, what happens is that when adding a host if it recognizes it even the ping service is up but the others do not like HTTP.  
The image shows the error it gives me

 ![prueba](https://community.icinga.com/uploads/default/original/2X/a/a5ad4e765c61da6fc3bc33977c92ac33e280354a.png)

---

<div class="post-metadata">

**Author:** ![steaksauce](https://community.icinga.com/user_avatar/community.icinga.com/steaksauce/32/1831_2.png) [@steaksauce](https://community.icinga.com/u/steaksauce)\
**Post date:** [January 24, 2022, 3:27pm UTC](https://community.icinga.com/t/error-with-add-host-to-icinga-web-2/9052/2 "2022-01-24T15:27:53Z")

</div>

`Connection refused` (I assume this is the translation) could be caused by a number of things.

Two simple questions:

- Is SSH/HTTP running on ports `22` and `80` respectively? If not, you may need to change the port that the check is trying to talk to.
- If so, do you have a network firewall or firewall rule on the machine that prevents Icinga from checking these ports?

Also looks like you have an oddity with the `andrea: ssh` check where it is checking the `localhost` IP.
