Ad Widget

Collapse

zabbix vfs.dir.size Timeout

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • glardz
    Member
    • Oct 2018
    • 45

    #1

    zabbix vfs.dir.size Timeout

    Steps to reproduce:
    1. i change Tmeout in zabbix_agentd.win.cong in zabbix client
    2. i run zabbix_get -s ip -k vfs.dir.size[C:/Windows/]

    Result:



    Expected:

    i want a to monitore size of this folder "c:/Windows"
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    If the directory size calculation time is longer than TimeOut, you will get an error. The problem is known, repeatedly discussed. Use workarounds, such as cmd, which is run on a schedule, which calculates the size and is sent using zabbix_sender

    Comment

    • glardz
      Member
      • Oct 2018
      • 45

      #3
      hi,

      i need to do a script ?, is it possible to do with only zabbix agent without script ?

      we can change the timeout more than 30s since zabbix_agent.conf ?
      Last edited by glardz; 03-07-2019, 10:12.

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        1) you can take a list of usb devices system.hw.devices[usb] and analyze the presence of the desired device in it
        2) if there is a log which reflects the connection \ disconnection of the device - use log[] or log.count[]

        Comment

        • glardz
          Member
          • Oct 2018
          • 45

          #5
          i want use for monitore a directoey not an usb device

          Comment

          • Hamardaban
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • May 2019
            • 2713

            #6
            Sorry for the previous message! wrong branch

            Comment

            • Hamardaban
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • May 2019
              • 2713

              #7
              No possible to do with only zabbix agent. proven. of course you can change the source code... search on google - there were discussions.

              You can't. 30s is the maximum value

              Comment

              • glardz
                Member
                • Oct 2018
                • 45

                #8
                can you say at the developper of zabbix agent to increase Timeout, because many server take several time to have a value size

                Comment

                • Hamardaban
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • May 2019
                  • 2713

                  #9

                  Comment

                  Working...