Такое дело. Хосту назначены два шаблона 0_clicker, и 5_common.
В шаблоне 5_common определён тригер на количество выполняемых процессов, он использует макрос {$MAX_RUNNING_PROCESS_NUMBER}
Этот макрос определён в обоих шаблонах т.е. и в 5_common и в 0_clicker.
В документации написано:
Может быть. я неправильно понял слова "macros defined for first level templates of the host (i.e., templates linked directly to the host), sorted by template ID"?
Я понял их как, отсортировать шаблоны по имени в лексикографическом порядке. Затем взять значение макроса из первого шаблона, в котором он присутствует.
Собственно, проблема в том, что значение {$MAX_RUNNING_PROCESS_COUNT} не берётся из шаблона 0_clicker, а берётся из 5_common
В шаблоне 5_common определён тригер на количество выполняемых процессов, он использует макрос {$MAX_RUNNING_PROCESS_NUMBER}
Этот макрос определён в обоих шаблонах т.е. и в 5_common и в 0_clicker.
В документации написано:
Zabbix substitutes macros according to the following precedence:
host macros (checked first)
macros defined for first level templates of the host (i.e., templates linked directly to the host), sorted by template ID
macros defined for second level templates of the host, sorted by template ID
macros defined for third level templates of the host, sorted by template ID
…
global macros (checked last)
host macros (checked first)
macros defined for first level templates of the host (i.e., templates linked directly to the host), sorted by template ID
macros defined for second level templates of the host, sorted by template ID
macros defined for third level templates of the host, sorted by template ID
…
global macros (checked last)
Я понял их как, отсортировать шаблоны по имени в лексикографическом порядке. Затем взять значение макроса из первого шаблона, в котором он присутствует.
Собственно, проблема в том, что значение {$MAX_RUNNING_PROCESS_COUNT} не берётся из шаблона 0_clicker, а берётся из 5_common

Comment