Ad Widget

Collapse

ZBX_TCP_WRITE failed when using proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • maxxer
    Member
    • Oct 2010
    • 80

    #1

    ZBX_TCP_WRITE failed when using proxy

    hi.
    I'm having a problem with services autodiscovery and Zabbix proxies. When the agent is ready to send back the result I get this error in debug:
    Code:
    Process listener error: ZBX_TCP_WRITE() failed: [32] Broken pipe
    The problem happens only with proxy, because the same configuration item checked directly by the Zabbix server works great. I'm using Zabbix 2.2.8.

    This is what I find in the agent log:
    Code:
       577:20150107:145055.073 listener #1 [processing request]
       577:20150107:145055.074 Requested [zimbra.discovery]
       577:20150107:145055.074 In zbx_popen() command:'/etc/zabbix/scripts/zbx_zimbra.sh discover'
       577:20150107:145055.074 End of zbx_popen():7
     13700:20150107:145055.074 zbx_popen(): executing script
    ...
       577:20150107:145103.630 In zbx_waitpid()
       577:20150107:145103.630 zbx_waitpid() exited, status:0
       577:20150107:145103.630 End of zbx_waitpid():13700
       577:20150107:145103.630 Run remote command [/etc/zabbix/scripts/zbx_zimbra.sh discover] Result [418] [{
            "data":[
    
    { "{#ZI]...
       577:20150107:145103.630 Sending back [{
            "data":[
    
    { "{#ZIMBRASERVICE}":"antispam" }, { "{#ZIMBRASERVICE}":"antivirus" }, { "{#ZIMBRASERVICE}":"convertd" }, { "{#ZIMBRASERVICE}":"ldap" }, { "{#ZIMBRASERVICE}":"logger" }, { "{#ZIMBRASERVICE}":"mailbox" }, { "{#ZIMBRASERVICE}":"mta" }, { "{#ZIMBRASERVICE}":"opendkim" }, { "{#ZIMBRASERVICE}":"snmp" }, { "{#ZIMBRASERVICE}":"spell" }, { "{#ZIMBRASERVICE}":"stats" }, { "{#ZIMBRASERVICE}":"zmconfigd" }
    
            ]
    
    }]
       577:20150107:145103.630 Got signal [signal:13(SIGPIPE),sender_pid:577]. Ignoring ...
       577:20150107:145103.630 Process listener error: ZBX_TCP_WRITE() failed: [32] Broken pipe
       577:20150107:145103.630 listener #1 [waiting for connection]
    The script execution takes several seconds and it's normal, I added "Timeout=15" in my agent config so it should not be a problem.


    And in the proxy log:
    Code:
      6634:20150107:155058.789 Zabbix agent item "zimbra.discovery" on host "webmail.domain.it" failed: first network error, wait for 15 seconds
      6637:20150107:155116.790 Zabbix agent item "zimbra.discovery" on host "webmail.domain.it" failed: another network error, wait for 15 seconds
    I could't find what parameter is wrong. Any help is welcome.

    I forgot to say that proxy (sqlite) and agent run on the same machine, so there should be no network glitch, and all other checks/discovery works fine.

    thanks
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    It's not a Zabbix problem. It's TCP connection problem. UTFG: "tcp broken pipe error"
    For example:
    http://stackoverflow.com/questions/4...ken-pipe-error
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • maxxer
      Member
      • Oct 2010
      • 80

      #3
      thanks for your useless answer, in fact it was a proxy issue, which was probably getting tired of waiting for the answer, and terminating the connection (thus the broken pipe).

      Adding
      Code:
      Timeout=15
      to zabbix_proxy.conf solved my issue.

      Comment

      • jan.garaj
        Senior Member
        Zabbix Certified Specialist
        • Jan 2010
        • 506

        #4
        Thank you for your thanks for my useless answer.
        Code:
        ****
        Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
        My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

        Comment

        • maxxer
          Member
          • Oct 2010
          • 80

          #5
          I was just disappointed by your UTFG
          cheers!

          Comment

          • jan.garaj
            Senior Member
            Zabbix Certified Specialist
            • Jan 2010
            • 506

            #6
            That's not a reason to be sarcasm, if someone spent a times on your problem.
            Sorry for UTFG, it didn't have negative meaning, but it's abbreviation to use google.
            Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
            My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

            Comment

            • maxxer
              Member
              • Oct 2010
              • 80

              #7
              apologies, but since it's not a kind abbreviation I decided I could answer ironically as well.

              cheers

              Comment

              • tchjts1
                Senior Member
                • May 2008
                • 1605

                #8
                If I may....

                Jan - I think it is the "F" in that which makes it offensive to some. I probably would have taken a bit of offense to it as well. Just as I would avoid telling someone to RTFM. While I may use these with someone I know, I would avoid doing so with casual acquaintances.

                Maxxer - Jan is quite helpful to many on this forum and will often times go above and beyond what would be expected of a contributing member here to help solve someones issues . I am sure it wasn't meant in a mean way.

                Comment

                • maxxer
                  Member
                  • Oct 2010
                  • 80

                  #9
                  thanks tchjts1, apologies to Jan.
                  I didn't want to offend either, it was just for fun, as I hope Jan mean the UTFG.

                  Comment

                  • jan.garaj
                    Senior Member
                    Zabbix Certified Specialist
                    • Jan 2010
                    • 506

                    #10
                    No worry. I'll avoid it.
                    Why everyone know only one F* english word? (no answer is needed :-D) It has also polite meaning
                    http://acronyms.thefreedictionary.com/UTFG
                    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
                    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

                    Comment

                    • tchjts1
                      Senior Member
                      • May 2008
                      • 1605

                      #11
                      All depends on what definition you go by.
                      And that's the thing. Nobody knows.

                      Comment

                      Working...