Ad Widget

Collapse

Zabbix 2.4 bind() failed: [22] Invalid argument

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fullmetal8ender
    Member
    • Nov 2012
    • 81

    #1

    Zabbix 2.4 bind() failed: [22] Invalid argument

    Hi all! After upgrading zabbix from 1.8.15 to 2.4.2 i can`t send email. See log below
    Code:
    7311:20141216:181133.618 query [txnlev:0] [select a.alertid,a.mediatypeid,a.sendto,a.subject,a.message,a.status,mt.mediatypeid,mt.type,mt.description,mt.smtp_server,mt.smtp_helo,mt.smtp_email,mt.exec_path,mt.gsm_modem,mt.username,mt.passwd,a.retries from alerts a,media_type mt where a.mediatypeid=mt.mediatypeid and a.status=0 and a.alerttype=0 order by a.alertid]
      7311:20141216:181133.618 In execute_action(): alertid [63] mediatype [0]
      7311:20141216:181133.618 In send_email() smtp_server:'localhost'
      7311:20141216:181133.618 [B]cannot connect to SMTP server "localhost": bind() failed: [22] Invalid argument[/B]
      7311:20141216:181133.618 End of send_email():FAIL
      7311:20141216:181133.618 End of execute_action():FAIL
      7311:20141216:181133.618 error sending alert ID [63]
      7311:20141216:181133.618 query without transaction detected
      7311:20141216:181133.618 query [txnlev:0] [update alerts set retries=1,error='cannot connect to SMTP server "localhost": bind() failed: [22] Invalid argument' where alertid=63]
      7311:20141216:181133.619 alerter [sent alerts: 0 success, 1 fail in 0.001222 sec, idle 30 sec]
    Postfix does not receive any connection from zabbix.
    Does anyone know what does it means?
  • Fullmetal8ender
    Member
    • Nov 2012
    • 81

    #2
    fixed by changing localhost to 127.0.0.1 in Media Settings

    Comment

    Working...