Closed Sweepr closed 5 years ago
Hi,
I have Auth enabled, is that the reason ?
Yes, it has been fixed in the #249 issue.
How can i prevent the logfile filling up with this warning?
You might want to download the latest monitorix version and overwrite your own, if you don't want to wait for the next Monitorix release.
Thanks.
:+1: Great, thnx.. ! closing
i'm getting essentially the same thing, except i'm running on :8088...
HTTPServer: You can connect to your server at http://localhost:8088/
Thu Jan 2 06:41:01 2020 - WARNING: unable to connect to HTTP built-in server 'http://localhost:8088/monitorix'.
# lsof -i:8088
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
monitorix 11231 nobody 3u IPv4 1076896446 0t0 TCP *:radan-http (LISTEN)
Name : monitorix
Arch : noarch
Version : 3.11.0
Release : 1.el7
Size : 1.8 M
Repo : installed
From repo : epel
@atomGit, yes this has already been fixed in the development version, so it will be fixed in the next release of Monitorix.
As I said, if you don't want to wait for the next version, you might want to download the latest monitorix
version and overwrite your own.
Thanks.
oh, i'm sorry, i mistakenly thought it was fixed in 3.11.0
I got v3.15.0 but also still this problem.
WARNING: HTTP built-in server not responding at 'http://myserver.com:8090/monitorix'.
But the URL is 100% correct and responsive. What could be it?
The httpd server always becomes unresponsive after 3 or 4 days or so. I cannot figure out why and this auto responsive check could fix it in the time-being.
I've the latest version (perl-HTTP-Server-Simple-0.52-21.fc39.noarch
) and I almost don't see this message except on very sporadic times when this web server is somehow abused from an outside script.
Are you using the latest version of this Perl module?
Thank you. Yes, I got 0.52.
Ok, this is interesting. I got:
<httpd_builtin>
...
hosts_allow = localhost, 127.0.0.1, 123.123.123.123
autocheck_responsiveness = y
....
</httpd_builtin>
Assuming this would be ok for IP access for localhost and myself. But it seems that the autocheck responsiveness cannot be performed because the result from checking the URL still gives a 403 access forbidden response. So instead of 'localhost' I added the IP address of the server in _hostsallow and now it works.
Interesting. Is this the behavior that was intended?
127.0.0.1 is the IP address assigned to the "loopback" or local-only interface. This is a "fake" network adapter that can only communicate within the same host. It's often used when you want a network-capable application to only serve clients on the same host. A process that is listening on 127.0.0.1 for connections will only receive local connections on that socket.
"localhost" is normally the hostname for the 127.0.0.1 IP address. It's usually set in /etc/hosts, you can use it just like any other hostname, try pinging localhost and see how it resolves to 127.0.0.1.
Well, if the host
option in <httpd_builtin>
is not defined, then it should bind Monitorix to all interfaces (including localhost).
Please, check with netstat -ltnp
or ss -ltnp
if your Monitorix web server is correctly bound to 0.0.0.0.
Thanks Sweepr for explaining this.
Mikaku, no it is not bound to 0.0.0.0. I do indeed use the host
option.
@JackySw: so it's all fixed now?
For me it works now, thank you. If this is how it was supposed to be, all fine! Thanks for the support and the great tool Monitorix is that you've created.
I've seen that in some systems binding to 0.0.0.0 does not always work for some reason. Maybe this is your case. Anyway, glad to know you managed to solve it, and also glad you are enjoying Monitorix.
Logfile is filling up with this:
Tue Oct 22 10:59:00 2019 - WARNING: unable to connect to HTTP built-in server 'http://localhost:8080/monitorix'. Tue Oct 22 10:59:00 2019 - Restarted HTTP built-in server (pid 5409). HTTPServer: You can connect to your server at http://localhost:8080/
curl -v localhost:8080/monitorix
I have Auth enabled, is that the reason ?
How can i prevent the logfile filling up with this warning?