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

    После обновления с 1.8.15 перестали отправляться email. Ошибка в логе сервера
    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 даже не доходят, так что дело не в нем.
  • Fullmetal8ender
    Member
    • Nov 2012
    • 81

    #2
    fixed заменой localhost на 127.0.0.1 в настройках медиа.

    Comment

    • Zentarim
      Senior Member
      • Mar 2012
      • 526

      #3
      Originally posted by Fullmetal8ender
      fixed заменой localhost на 127.0.0.1 в настройках медиа.
      hosts потерли что ль?

      Comment

      • Fullmetal8ender
        Member
        • Nov 2012
        • 81

        #4
        Нет.
        Code:
        telnet localhost 25
        Trying ::1...
        Trying 127.0.0.1...
        Connected to localhost.
        Escape character is '^]'.
        220 zabbix.in.ngs.ru ESMTP Postfix

        Comment

        Working...