Ad Widget

Collapse

Вопрос про интервал в perf_counter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ukara
    Junior Member
    • Mar 2011
    • 10

    #1

    Вопрос про интервал в perf_counter

    Добрый день.

    Интересует вопрос про интервал в ключе perf_counter.
    Документацию читал тут: https://www.zabbix.com/documentation...agent/win_keys

    ключ: perf_counter[counter,<interval>]
    описание: Value of any Windows performance counter, where “counter” is the counter path, and “interval” is the time period for storing the average value.
    Вовзвращаемое значение: Average value of the “counter” during last “interval” seconds.
    Параметры: The “interval” must be between 1 and 900 seconds (included) and the default value is 1.
    Комментарий: Performance Monitor can be used to obtain list of available counters. Until version 1.6 this parameter will return correct value only for counters that require just one sample (like \System\Threads). It will not work as expected for counters that require more that one sample - like CPU utilisation. Since 1.6, interval is used, so the check returns an average value for last “interval” seconds every time.

    Правильно ли я понимаю, что запрос по данному ключу выдает значение счетчика за последнюю секунду?
    perf_counter["\PhysicalDisk(_Total)\Avg. Disk sec/Transfer"]

    А такой - perf_counter["\PhysicalDisk(_Total)\Avg. Disk sec/Transfer", 60], среднее за последнюю минуту?

    Т.е. будет ли корректным "item" с частотой опроса раз в минуту и ключем perf_counter["\PhysicalDisk(_Total)\Avg. Disk sec/Transfer", 60] для получения значения за последнюю минуту по счетчику?

    Спасибо
Working...