Ad Widget

Collapse

Simple check to check SMTP service / connection error (POLLERR,POLLHUP)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TomasV
    Junior Member
    • Nov 2025
    • 6

    #1

    Simple check to check SMTP service / connection error (POLLERR,POLLHUP)

    I've tried adding a simple check of a SMTP service, but it seems I either have two options:

    1) define an agent + {$HOST.CONN} with hostname
    2) don't define an agent, but then have to use IP address in net.tcp.service[]

    The problem with (1) is that I then get errors like this in zabbix_server.log:

    Code:
    120845:20251124:011956.032 TCP expect network error: cannot connect to [[127.0.0.1]:587]: connection error (POLLERR,POLLHUP)
    120848:20251124:012056.243 TCP expect network error: cannot connect to [[127.0.0.1]:587]: connection error (POLLERR,POLLHUP)
    120848:20251124:012156.749 TCP expect network error: cannot connect to [[127.0.0.1]:587]: connection error (POLLERR,POLLHUP)
    120849:20251124:012256.197 TCP expect network error: cannot connect to [[127.0.0.1]:587]: connection error (POLLERR,POLLHUP)
    Which seems like zabbix is trying to connect to SMTP on the agent IP (and not just on the hostname specified by HOST.CONN).

    Without the agent I have to specify the actual IP address directly in the net.tcp.service[] expression.

    What am I doing wrong?
Working...