Ad Widget

Collapse

Zabbix items active checks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • testos
    Member
    • Apr 2007
    • 85

    #1

    Zabbix items active checks

    Why any change in key active items type needs restarting agent for refresh itself?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Wht do you think so?!
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • testos
      Member
      • Apr 2007
      • 85

      #3
      Assuming existing /tmp/try/file1.log and /tmp/try/file2.log

      1.- Create this zabbix agent (active) item with key: log[/tmp/try/file1.log]
      All work fine

      2.- Edit item above and change key to: log[/tmp/try/file2.log]
      Changes aren't retrieved

      3.- Restart agent (if possible)
      One new line of file2.log is retrieved, but zabbix agent subsequently down

      4.- Disable item
      zabbix agent can be starting again

      Regards

      Comment

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

        #4
        Restart of the agent is NOT required! Just wait for 5 minutes (default period) to allow the agent refresh list of active items.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • testos
          Member
          • Apr 2007
          • 85

          #5
          I'm desperate.

          I'm thoroughly revised this problem and in my system zabbix agent shoot down next creating active item key log[/tmp/try/file1.log].
          I'm restart agent but when file2.log change first return one new line and next turn down.
          In any case zabbix_agentd.log show this:

          Code:
          3002:20070620:104432 In process log (/tmp/try/file2.log,0)
            3002:20070620:104432 XML before sending [<req><host>U2Vydmlkb3JfWmFiYml4</host><key>bG9nWy90bXAvdHJ5L2ZpbGUyLmxvZ10=</key><data>ICAgICAgNDQxMQo=</data><lastlogsize>MTE=</lastlogsize></req>]
            3002:20070620:104432 OK
          *** glibc detected *** free(): invalid pointer: 0xbffb8990 ***
            2997:20070620:104432 One child process died. Exiting ...
            2998:20070620:104432 Got signal. Exiting ...
            2999:20070620:104432 Got signal. Exiting ...
            3000:20070620:104432 Got signal. Exiting ...
            3001:20070620:104432 Got signal. Exiting ...
            2997:20070620:104432 zbx_on_exit() called.
            2997:20070620:104434 ZABBIX Agent stopped
          I'm cheched this three things:

          - ZABBIX server is running on correct first IP from Server to send active checks to, defined in agent's config file.
          - Item log[...] is linked to hostname in agent's config file.
          - /var/log/asl.log ir readable by user zabbix.
          - Other active/passive checks, work fine for this host.

          Please, help my

          Comment

          • testos
            Member
            • Apr 2007
            • 85

            #6
            More info:
            If file2.log do not change, agent can be started, but it continuously increase memory consumption:
            Code:
            12:03pm  up 11:49,  1 user,  load average: 0,05, 0,03, 0,00
            130 processes: 129 sleeping, 1 running, 0 zombie, 0 stopped
            CPU0 states:  0,0% user,  0,1% system,  0,4% nice, 99,0% idle
            CPU1 states:  0,1% user,  0,0% system,  0,1% nice, 99,3% idle
            Mem:  1027724K av,  835680K used,  192044K free,   46952K shrd,  204896K buff
            Swap: 2097096K av,       0K used, 2097096K free                  214180K cached
            
              PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
             1149 zabbix    20   5   924  924   708 S N   0,1  0,0   0:11 zabbix_agentd
             1146 zabbix    26   5   628  628   516 S N   0,0  0,0   0:00 zabbix_agentd
             1147 zabbix    20   5   688  688   576 S N   0,0  0,0   0:00 zabbix_agentd
             1148 zabbix    20   5   928  928   712 S N   0,0  0,0   0:10 zabbix_agentd
             1150 zabbix    20   5   932  932   712 S N   0,0  0,0   0:11 zabbix_agentd
             1151 zabbix    20   5  [COLOR=Red]263M 263M   584 S N   0,0 26,2[/COLOR]  0:00 zabbix_agentd

            Comment

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

              #7
              This problem is already fixed. You may try to use the latest code from svn://svn.zabbix.com/branches/1.4.1.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • testos
                Member
                • Apr 2007
                • 85

                #8
                For upgrade version only do replacing frontends directory or it is necessary to configure and compile all latest code?

                Thaks

                Comment

                Working...