homer icon indicating copy to clipboard operation
homer copied to clipboard

Ping functionality unclear

Open tuetenk0pp opened this issue 2 years ago • 6 comments

So I came over the type: Ping setting and thought, great, I can monitor if a machine is up/down just as with the command line tool ping: ping xxx.xxx.xxx.xxx. Unfortunately no, it is meant for webservers on ports 80/443. Am I missing something? Is ping functionallity via ICMP packets available? Or are there technical boundaries?

tuetenk0pp avatar Nov 17 '22 12:11 tuetenk0pp

image @Tuetenk0pp a quick look at the ping service shows this is HTTP formats only

FriendlyNGeeks avatar Nov 26 '22 01:11 FriendlyNGeeks

Hello guys, I come over this issue as I am unable to understand how to use the ping function. Despite following this, all my hosts are shown as offline, including the ones in the same network as homer container. I have checked that it's able to ping and resolve the urls (e.g. "url": "http://192.168.100.10") I have set on config.yml file, so I am really not sure what I am missing here. Any help would be appreciated!

masterlog80 avatar Mar 21 '23 02:03 masterlog80

@masterlog80 have a look here https://github.com/bastienwirtz/homer/blob/main/docs/troubleshooting.md

image

FriendlyNGeeks avatar Mar 22 '23 04:03 FriendlyNGeeks

Hello @FriendlyNGeeks, Thank you for your message. Indeed, I see some CORS related errors matching this. So, I have installed cors-container (https://github.com/imjacobclark/cors-container) on my network, modified config.yml file adding the proxy IP and port, and for some links the status is now shown correctly. However, I have noticed this is not reported correctly for:

  • Services not running on port 80 (e.g. Portainer is running on http://192.168.100.100:9443)
  • Services with (I guess) a self-signed certificate (e.g. ProxMox running on https://192.168.100.101:8006)
  • Special Webpages (e.g. the router dynamic login page, but I think I can work on this)

Is there a workaround for those kind of services, at least for 1st and 2nd above? Regards,

Screenshots: Portainer: image ProxMox: image

masterlog80 avatar Mar 22 '23 11:03 masterlog80

In addition, would be useful if it's possible to set an URL for the ping function, and another one for the link to open.

masterlog80 avatar Mar 23 '23 00:03 masterlog80

@masterlog80 perhaps something in ymal like endpoint: https://github.com/bastienwirtz/homer/issues/621

FriendlyNGeeks avatar Apr 09 '23 17:04 FriendlyNGeeks