"localhost" not recognized in rule

Issue #157 resolved
anastrophe created an issue

Under monit 5.11, the following test works:

if failed host localhost port 161 type udp then restart

Under monit 5.12, it generates a "Connection failed" in monit summary.

Changing it to:

if failed host 127.0.0.1 port 161 type udp then restart

works as expected.

/etc/hosts has standard declaration for 127.0.0.1 localhost.

Comments (5)

  1. Tildeslash repo owner

    Please can you run monit in verbose mode?:

    1.) stop monit

    2.) start it in debug mode:

    monit -vI
    

    3.) collect output and send it to us

  2. Tildeslash repo owner

    fixed Issue #157 : Hostname based connection test for UDP service on dual-stack host (IPv4 and IPv6) may fail if the service listens on IPv4 only.

    fixed: The socket timeout was 1000x higher then requested.

    → <<cset a28d8c004948>>

  3. Log in to comment