Ad Widget

Collapse

[1.4.1] FreeBSD 6.1: zabbix_get Problem ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #1

    [1.4.1] FreeBSD 6.1: zabbix_get Problem ?

    Hi,

    I observed a very interesting thing:

    I do a zabbix_get -s i11 -k 'perf_counter[\Processor(_Total)\% Processor Time]'
    The result is zabbix_get [25519]: Timeout while executing operation.


    So far, so good.
    I enlarged the timeout for zabbix_get to 30 seconds and added a few debug
    statements in the agent.

    And the corresponding zabbix_agentd.log shows:
    Code:
      3692:20070815:160601 Processing request.
      3692:20070815:160601 In check_security()
      3692:20070815:160601 Before process_listener.
      3692:20070815:160601 In process_listener()
      3692:20070815:160631 Requested [perf_counter[\Processor(_Total)\% Processor Time]]
      3692:20070815:160631 After init_result [perf_counter[\Processor(_Total)\% Processor Time]]
      3692:20070815:160632 After process [perf_counter[\Processor(_Total)\% Processor Time]]
      3692:20070815:160632 Sending back [1.926838]
      3692:20070815:160632 After process listener.
    That means, the result is send back, as soon as the 30 seconds
    elapsed and the connection was closed.


    Where is the problem ?

    I guess, that the agent is waiting for a complete request and
    the zabbix_get thinks it has send one.

    Regards,

    Norbert.
  • NOB
    Senior Member
    Zabbix Certified Specialist
    • Mar 2007
    • 469

    #2
    Cause found: NEW vs. OLD Protocol

    Hi,

    as soon as I replace the call (new protocol)
    Code:
     if( SUCCEED == (ret = zbx_tcp_send(&s, request)) )
    by the call (old protocol)
    Code:
    if( SUCCEED == (ret = zbx_tcp_send_raw(&s, request)) )
    it works !

    So what to do ?

    Either the zabbix_agentd (win32) is broken or the zabbix_get (FreeBSD 6.1).

    Regards,

    Norbert.

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Please give me versions of zabbix_agentd and zabbix_get.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • NOB
        Senior Member
        Zabbix Certified Specialist
        • Mar 2007
        • 469

        #4
        Originally posted by Alexei
        Please give me versions of zabbix_agentd and zabbix_get.
        Of course.

        Here you go:

        zabbix_get: 1.4.1 (29-June-2007)
        zabbix_agentd: pre-1.4.2 R4573 64-bit

        More data:

        zabbix_get: 1.4.1 (as above)
        zabbix_agentd.exe: 1.4.1, 64-bit shows same problem
        zabbix_agentd.exe: 1.4, 32-bit works fine

        zabbix_get (my version with the change mentioned above) works fine
        with all the agents and that's what implemented in zabbix_server 1.4.1.

        Now, the question is: is it 1.4 vs 1.4.1 or 32 vs. 64-bit

        Regards,

        Norbert.
        Last edited by NOB; 16-08-2007, 09:54. Reason: Added more info

        Comment

        • NOB
          Senior Member
          Zabbix Certified Specialist
          • Mar 2007
          • 469

          #5
          Hi,

          after reading this post
          I can imagine that I was hit by exactly this bug.
          FreeBSD 6.1 is running on Sparc 64 !

          Regards,

          Norbert.
          Last edited by NOB; 17-08-2007, 07:41.

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            Originally posted by NOB
            after reading this post
            I can imagine that I was hit by exactly this bug.
            FreeBSD 6.1 is running on Sparc 64 !
            Yes, you are absolutely right! The problem will be fixed today.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            Working...