mikaku / Monitorix

Monitorix is a free, open source, lightweight system monitoring tool.
https://www.monitorix.org
GNU General Public License v2.0
1.12k stars 167 forks source link

httpd_builtin / autocheck_responsiveness #278

Closed rapesco closed 4 years ago

rapesco commented 4 years ago

Hello,

autocheck_responsiveness always check http://localhost:port, even if "host" value is set to listen on a specific ipv4 address.

<httpd_builtin>
        enabled = y
        host = 10.255.0.51
        port = 8080
        user = nobody
        group = nobody
        log_file = /var/log/monitorix-httpd
        hosts_deny =
        hosts_allow = 10.255.0.0/24
        autocheck_responsiveness = n
        <auth>
                enabled = n
                msg = Monitorix: Restricted access
                htpasswd = /var/lib/monitorix/htpasswd
        </auth>
</httpd_builtin>

logs

Sat May  2 15:18:00 2020 - WARNING: HTTP built-in server not responding at 'http://localhost:8080/monitorix'.
Sat May  2 15:19:01 2020 - WARNING: HTTP built-in server not responding at 'http://localhost:8080/monitorix'.
Sat May  2 15:20:00 2020 - WARNING: HTTP built-in server not responding at 'http://localhost:8080/monitorix'.
mikaku commented 4 years ago

Indeed, it should rely on the host option if there is a value associated, otherwise only to localhost.

mikaku commented 4 years ago

Please, confirm if the last commit solves the situation.

mikaku commented 4 years ago

Closing due to no response for two weeks.

If you still need more information, please add a comment and the issue can be reopened.

mikaku commented 4 years ago

Closing due to no response for two weeks.

If you still need more information, please add a comment and the issue can be reopened.