ncc.zabbix_templates

Yohn Y. 2023-09-30 Child:0caa9b17e6f5

0:143ba793d077 Go to Latest

ncc.zabbix_templates/HTTP/zbx_export_templates.yaml

.. init

History
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/HTTP/zbx_export_templates.yaml	Sat Sep 30 22:30:25 2023 +0300
     1.3 @@ -0,0 +1,616 @@
     1.4 +zabbix_export:
     1.5 +  version: '6.0'
     1.6 +  date: '2023-09-30T19:28:07Z'
     1.7 +  groups:
     1.8 +    - uuid: 22941f4e01294888a9bed3aae15f6ef9
     1.9 +      name: Templates/AWNET
    1.10 +  templates:
    1.11 +    - uuid: c40bb45aea654661ad8d08af056cc7fd
    1.12 +      template: 'Monitoring HTTP AWNET'
    1.13 +      name: 'Мониторинг HTTP AWNET'
    1.14 +      groups:
    1.15 +        - name: Templates/AWNET
    1.16 +      items:
    1.17 +        - uuid: 0c18593e50564c28b81f1670e1b926ca
    1.18 +          name: 'Потеря пакетов'
    1.19 +          type: SIMPLE
    1.20 +          key: 'icmppingloss["{HOST.CONN}",100,700,1000,5000]'
    1.21 +          value_type: FLOAT
    1.22 +          tags:
    1.23 +            - tag: Application
    1.24 +              value: Доступность
    1.25 +            - tag: Proto
    1.26 +              value: ICMP
    1.27 +          triggers:
    1.28 +            - uuid: e4a815685f5a4d2386d81cc3d9080d15
    1.29 +              expression: 'last(/Monitoring HTTP AWNET/icmppingloss["{HOST.CONN}",100,700,1000,5000])>50'
    1.30 +              name: 'Большой уровень потерь пакетов'
    1.31 +              priority: HIGH
    1.32 +              dependencies:
    1.33 +                - name: 'Потеря сетевой связности с сервисом'
    1.34 +                  expression: 'last(/Monitoring HTTP AWNET/icmppingsec["{HOST.CONN}",10,700,1000,5000,max])=0 or last(/Monitoring HTTP AWNET/icmppingsec["{HOST.CONN}",10,700,1000,5000,min])=0'
    1.35 +            - uuid: 74f3b5e5a64d44a793ca7274c05f657a
    1.36 +              expression: 'last(/Monitoring HTTP AWNET/icmppingloss["{HOST.CONN}",100,700,1000,5000])>30'
    1.37 +              name: 'Плохая связность с сервисом'
    1.38 +              priority: AVERAGE
    1.39 +              dependencies:
    1.40 +                - name: 'Большой уровень потерь пакетов'
    1.41 +                  expression: 'last(/Monitoring HTTP AWNET/icmppingloss["{HOST.CONN}",100,700,1000,5000])>50'
    1.42 +              tags:
    1.43 +                - tag: Application
    1.44 +                  value: Доступность
    1.45 +        - uuid: b29a8e52cc3444d28c53a53f12970d15
    1.46 +          name: 'Максимальная сетевая задержка сервиса'
    1.47 +          type: SIMPLE
    1.48 +          key: 'icmppingsec["{HOST.CONN}",10,700,1000,5000,max]'
    1.49 +          value_type: FLOAT
    1.50 +          units: s
    1.51 +          tags:
    1.52 +            - tag: Proto
    1.53 +              value: ICMP
    1.54 +          triggers:
    1.55 +            - uuid: 98f8f82c16a04dd49e3b9edacfb484a4
    1.56 +              expression: 'last(/Monitoring HTTP AWNET/icmppingsec["{HOST.CONN}",10,700,1000,5000,max])>"200ms"'
    1.57 +              name: 'Больная сетевая задержка при доступе к сервису'
    1.58 +              priority: AVERAGE
    1.59 +              dependencies:
    1.60 +                - name: 'Большой уровень потерь пакетов'
    1.61 +                  expression: 'last(/Monitoring HTTP AWNET/icmppingloss["{HOST.CONN}",100,700,1000,5000])>50'
    1.62 +              tags:
    1.63 +                - tag: Application
    1.64 +                  value: Доступность
    1.65 +        - uuid: dd7ae5e67efe43f2a47b437d232079cb
    1.66 +          name: 'Минимальная сетевая задержка сервиса'
    1.67 +          type: SIMPLE
    1.68 +          key: 'icmppingsec["{HOST.CONN}",10,700,1000,5000,min]'
    1.69 +          value_type: FLOAT
    1.70 +          units: s
    1.71 +          tags:
    1.72 +            - tag: Proto
    1.73 +              value: ICMP
    1.74 +        - uuid: 8a682b9de14249d196886de1f6c4aace
    1.75 +          name: 'Время доступа к сервису - вторичный порт'
    1.76 +          type: SIMPLE
    1.77 +          key: 'net.tcp.service.perf[tcp,"{HOST.CONN}","{$AW.HTTP.PORT_EX}"]'
    1.78 +          value_type: FLOAT
    1.79 +          units: s
    1.80 +          tags:
    1.81 +            - tag: Proto
    1.82 +              value: HTTP
    1.83 +            - tag: SubProto
    1.84 +              value: TLS
    1.85 +          triggers:
    1.86 +            - uuid: 169c70370d5a41e18827d52de8706d36
    1.87 +              expression: 'last(/Monitoring HTTP AWNET/net.tcp.service.perf[tcp,"{HOST.CONN}","{$AW.HTTP.PORT_EX}"])=0'
    1.88 +              name: 'Сервис не доступен - вторичный порт'
    1.89 +              priority: HIGH
    1.90 +              tags:
    1.91 +                - tag: Application
    1.92 +                  value: Доступность
    1.93 +        - uuid: d276f7bdf45b45c18fd5e6dcd2d72b26
    1.94 +          name: 'Время доступа к сервису'
    1.95 +          type: SIMPLE
    1.96 +          key: 'net.tcp.service.perf[tcp,"{HOST.CONN}","{$AW.HTTP.PORT}"]'
    1.97 +          value_type: FLOAT
    1.98 +          units: s
    1.99 +          tags:
   1.100 +            - tag: Proto
   1.101 +              value: HTTP
   1.102 +            - tag: SubProto
   1.103 +              value: PLAIN
   1.104 +          triggers:
   1.105 +            - uuid: 3f26d6ca37c6486a8967901bc466e5b2
   1.106 +              expression: 'last(/Monitoring HTTP AWNET/net.tcp.service.perf[tcp,"{HOST.CONN}","{$AW.HTTP.PORT}"])=0'
   1.107 +              name: 'Сервис не доступен'
   1.108 +              priority: HIGH
   1.109 +              tags:
   1.110 +                - tag: Application
   1.111 +                  value: Доступность
   1.112 +      httptests:
   1.113 +        - uuid: da4b90b9053a43f195553c0a6634409b
   1.114 +          name: 'Основная проверка'
   1.115 +          agent: '{$AW.HTTP.AGENT_NAME}'
   1.116 +          steps:
   1.117 +            - name: 'Запрос страницы проверки'
   1.118 +              url: '{$AW.HTTP.SCHEMA}://{HOST.CONN}:{$AW.HTTP.PORT}{$AW.HTTP.TEST_URL}'
   1.119 +              follow_redirects: 'NO'
   1.120 +              status_codes: '{$AW.HTTP.HTTP_CHECK_RESPONSE_CODE}'
   1.121 +          tags:
   1.122 +            - tag: ChackType
   1.123 +              value: Основная
   1.124 +            - tag: Proto
   1.125 +              value: HTTP
   1.126 +      macros:
   1.127 +        - macro: '{$AW.HTTP.AGENT_NAME}'
   1.128 +          value: AWNET.ZABBIX
   1.129 +          description: 'Имя клиента для проверки'
   1.130 +        - macro: '{$AW.HTTP.HTTP_CHECK_RESPONSE_CODE}'
   1.131 +          value: '200'
   1.132 +          description: 'Статус код проверочного ссайта'
   1.133 +        - macro: '{$AW.HTTP.PORT}'
   1.134 +          value: '443'
   1.135 +          description: 'Основной порт сайта'
   1.136 +        - macro: '{$AW.HTTP.PORT_EX}'
   1.137 +          value: '80'
   1.138 +          description: 'Дополнительный порт, с него например могут идти перенаправления или там развёрнута система мониторинга сайта'
   1.139 +        - macro: '{$AW.HTTP.SCHEMA}'
   1.140 +          value: https
   1.141 +          description: 'Основная адресная схема сайта'
   1.142 +        - macro: '{$AW.HTTP.TEST_URL}'
   1.143 +          value: /
   1.144 +          description: 'URL для тестирования'
   1.145 +    - uuid: 0f6efdd37f094f65bf3c53fd6f1f551c
   1.146 +      template: 'Monitoring HTTP AWNET - PHP'
   1.147 +      name: 'Мониторинг HTTP AWNET - PHP'
   1.148 +      templates:
   1.149 +        - name: 'Monitoring HTTP AWNET'
   1.150 +      groups:
   1.151 +        - name: Templates/AWNET
   1.152 +      items:
   1.153 +        - uuid: 1c50367c783a44ae928e584aedc02b33
   1.154 +          name: 'PHP-FPM: Accepted connections per second'
   1.155 +          type: DEPENDENT
   1.156 +          key: php-fpm.conn_accepted.rate
   1.157 +          delay: '0'
   1.158 +          history: 7d
   1.159 +          value_type: FLOAT
   1.160 +          description: 'The number of accepted requests per second.'
   1.161 +          preprocessing:
   1.162 +            - type: JSONPATH
   1.163 +              parameters:
   1.164 +                - '$.[''accepted conn'']'
   1.165 +            - type: CHANGE_PER_SECOND
   1.166 +              parameters:
   1.167 +                - ''
   1.168 +          master_item:
   1.169 +            key: php-fpm.get_status
   1.170 +          tags:
   1.171 +            - tag: Application
   1.172 +              value: PHP-FPM
   1.173 +        - uuid: 9cc132b46638463da970001ae4c85159
   1.174 +          name: 'PHP-FPM: Get ping page'
   1.175 +          type: HTTP_AGENT
   1.176 +          key: php-fpm.get_ping
   1.177 +          history: '0'
   1.178 +          trends: '0'
   1.179 +          value_type: TEXT
   1.180 +          url: '{$PHP_FPM.SCHEME}://{HOST.CONN}:{$AW.HTTP.PORT_EX}{$PHP_FPM.PING.PAGE}'
   1.181 +          retrieve_mode: BOTH
   1.182 +          tags:
   1.183 +            - tag: Application
   1.184 +              value: 'Zabbix raw items'
   1.185 +        - uuid: 95f0f1fda78c49038802375a232fe539
   1.186 +          name: 'PHP-FPM: Get status page'
   1.187 +          type: HTTP_AGENT
   1.188 +          key: php-fpm.get_status
   1.189 +          history: '0'
   1.190 +          trends: '0'
   1.191 +          value_type: TEXT
   1.192 +          url: '{$PHP_FPM.SCHEME}://{HOST.CONN}:{$AW.HTTP.PORT_EX}{$PHP_FPM.STATUS.PAGE}?json'
   1.193 +          tags:
   1.194 +            - tag: Application
   1.195 +              value: 'Zabbix raw items'
   1.196 +        - uuid: 71b9110791e34264bb707e1aeb0032f9
   1.197 +          name: 'PHP-FPM: Listen queue'
   1.198 +          type: DEPENDENT
   1.199 +          key: php-fpm.listen_queue
   1.200 +          delay: '0'
   1.201 +          history: 7d
   1.202 +          description: 'The current number of connections that have been initiated, but not yet accepted.'
   1.203 +          preprocessing:
   1.204 +            - type: JSONPATH
   1.205 +              parameters:
   1.206 +                - '$.[''listen queue'']'
   1.207 +          master_item:
   1.208 +            key: php-fpm.get_status
   1.209 +          tags:
   1.210 +            - tag: Application
   1.211 +              value: PHP-FPM
   1.212 +        - uuid: 95bba027ff08422ebfeef4b664e7d9ba
   1.213 +          name: 'PHP-FPM: Listen queue, len'
   1.214 +          type: DEPENDENT
   1.215 +          key: php-fpm.listen_queue_len
   1.216 +          delay: '0'
   1.217 +          history: 7d
   1.218 +          description: 'Size of the socket queue of pending connections.'
   1.219 +          preprocessing:
   1.220 +            - type: JSONPATH
   1.221 +              parameters:
   1.222 +                - '$.[''listen queue len'']'
   1.223 +          master_item:
   1.224 +            key: php-fpm.get_status
   1.225 +          tags:
   1.226 +            - tag: Application
   1.227 +              value: PHP-FPM
   1.228 +        - uuid: 3abbb29d356c4191b84dec5cc227cc5e
   1.229 +          name: 'PHP-FPM: Listen queue, max'
   1.230 +          type: DEPENDENT
   1.231 +          key: php-fpm.listen_queue_max
   1.232 +          delay: '0'
   1.233 +          history: 7d
   1.234 +          description: 'The maximum number of requests in the queue of pending connections since this FPM pool has started.'
   1.235 +          preprocessing:
   1.236 +            - type: JSONPATH
   1.237 +              parameters:
   1.238 +                - '$.[''max listen queue'']'
   1.239 +          master_item:
   1.240 +            key: php-fpm.get_status
   1.241 +          tags:
   1.242 +            - tag: Application
   1.243 +              value: PHP-FPM
   1.244 +        - uuid: 9c0a29e0da454a0bb43ca71dd33ba668
   1.245 +          name: 'PHP-FPM: Queue usage'
   1.246 +          type: CALCULATED
   1.247 +          key: php-fpm.listen_queue_usage
   1.248 +          history: 7d
   1.249 +          value_type: FLOAT
   1.250 +          units: '%'
   1.251 +          params: 'last(//php-fpm.listen_queue)/(last(//php-fpm.listen_queue_len)+(last(//php-fpm.listen_queue_len)=0))*100'
   1.252 +          description: 'Queue utilization'
   1.253 +          tags:
   1.254 +            - tag: Application
   1.255 +              value: PHP-FPM
   1.256 +          triggers:
   1.257 +            - uuid: b4dbc689bd8f499b8f1dc5e94ddf0b04
   1.258 +              expression: 'min(/Monitoring HTTP AWNET - PHP/php-fpm.listen_queue_usage,15m)  > {$PHP_FPM.QUEUE.WARN.MAX}'
   1.259 +              name: 'PHP-FPM: Queue utilization is high (over {$PHP_FPM.QUEUE.WARN.MAX}% for 15m)'
   1.260 +              priority: WARNING
   1.261 +              description: 'The queue for this pool reached {$PHP_FPM.QUEUE.WARN.MAX}% of its maximum capacity. Items in queue represent the current number of connections that have been initiated on this pool, but not yet accepted.'
   1.262 +        - uuid: 047799c9fe31465ba3e450ae81cbb755
   1.263 +          name: 'PHP-FPM: Max children reached'
   1.264 +          type: DEPENDENT
   1.265 +          key: php-fpm.max_children
   1.266 +          delay: '0'
   1.267 +          history: 7d
   1.268 +          description: 'The number of times that pm.max_children has been reached since the php-fpm pool started'
   1.269 +          preprocessing:
   1.270 +            - type: JSONPATH
   1.271 +              parameters:
   1.272 +                - '$.[''max children reached'']'
   1.273 +            - type: SIMPLE_CHANGE
   1.274 +              parameters:
   1.275 +                - ''
   1.276 +          master_item:
   1.277 +            key: php-fpm.get_status
   1.278 +          tags:
   1.279 +            - tag: Application
   1.280 +              value: PHP-FPM
   1.281 +        - uuid: 6c65341ed101462d89f6ef4eaf3fac6e
   1.282 +          name: 'PHP-FPM: Pool name'
   1.283 +          type: DEPENDENT
   1.284 +          key: php-fpm.name
   1.285 +          delay: '0'
   1.286 +          history: 7d
   1.287 +          trends: '0'
   1.288 +          value_type: CHAR
   1.289 +          description: 'The name of current pool.'
   1.290 +          preprocessing:
   1.291 +            - type: JSONPATH
   1.292 +              parameters:
   1.293 +                - $.pool
   1.294 +            - type: DISCARD_UNCHANGED_HEARTBEAT
   1.295 +              parameters:
   1.296 +                - 3h
   1.297 +          master_item:
   1.298 +            key: php-fpm.get_status
   1.299 +          tags:
   1.300 +            - tag: Application
   1.301 +              value: PHP-FPM
   1.302 +        - uuid: d55bd360ac85416aa4a2c9fd233c7076
   1.303 +          name: 'PHP-FPM: Ping'
   1.304 +          type: DEPENDENT
   1.305 +          key: php-fpm.ping
   1.306 +          delay: '0'
   1.307 +          history: 7d
   1.308 +          preprocessing:
   1.309 +            - type: REGEX
   1.310 +              parameters:
   1.311 +                - '{$PHP_FPM.PING.REPLY}($|\n)'
   1.312 +                - '1'
   1.313 +              error_handler: CUSTOM_VALUE
   1.314 +              error_handler_params: '0'
   1.315 +          master_item:
   1.316 +            key: php-fpm.get_ping
   1.317 +          tags:
   1.318 +            - tag: Application
   1.319 +              value: PHP-FPM
   1.320 +          triggers:
   1.321 +            - uuid: a2cbca03ee18478cba2771ceed2eb3cc
   1.322 +              expression: 'last(/Monitoring HTTP AWNET - PHP/php-fpm.ping)=0 or nodata(/Monitoring HTTP AWNET - PHP/php-fpm.ping,3m)=1'
   1.323 +              name: 'PHP-FPM: Service is down'
   1.324 +              priority: HIGH
   1.325 +              manual_close: 'YES'
   1.326 +        - uuid: 3f4b713fd09c40fabd843f19ce78dac4
   1.327 +          name: 'PHP-FPM: Processes, active'
   1.328 +          type: DEPENDENT
   1.329 +          key: php-fpm.processes_active
   1.330 +          delay: '0'
   1.331 +          history: 7d
   1.332 +          description: 'The total number of active processes.'
   1.333 +          preprocessing:
   1.334 +            - type: JSONPATH
   1.335 +              parameters:
   1.336 +                - '$.[''active processes'']'
   1.337 +          master_item:
   1.338 +            key: php-fpm.get_status
   1.339 +          tags:
   1.340 +            - tag: Application
   1.341 +              value: PHP-FPM
   1.342 +        - uuid: 48f6cbea84a849f498d6e834960da817
   1.343 +          name: 'PHP-FPM: Processes, idle'
   1.344 +          type: DEPENDENT
   1.345 +          key: php-fpm.processes_idle
   1.346 +          delay: '0'
   1.347 +          history: 7d
   1.348 +          description: 'The total number of idle processes.'
   1.349 +          preprocessing:
   1.350 +            - type: JSONPATH
   1.351 +              parameters:
   1.352 +                - '$.[''idle processes'']'
   1.353 +          master_item:
   1.354 +            key: php-fpm.get_status
   1.355 +          tags:
   1.356 +            - tag: Application
   1.357 +              value: PHP-FPM
   1.358 +        - uuid: e60f966ef0d3496188054307d963583e
   1.359 +          name: 'PHP-FPM: Processes, max active'
   1.360 +          type: DEPENDENT
   1.361 +          key: php-fpm.processes_max_active
   1.362 +          delay: '0'
   1.363 +          history: 7d
   1.364 +          description: 'The highest value that ''active processes'' has reached since the php-fpm server started.'
   1.365 +          preprocessing:
   1.366 +            - type: JSONPATH
   1.367 +              parameters:
   1.368 +                - '$.[''max active processes'']'
   1.369 +          master_item:
   1.370 +            key: php-fpm.get_status
   1.371 +          tags:
   1.372 +            - tag: Application
   1.373 +              value: PHP-FPM
   1.374 +        - uuid: eca836fc846b4140bfb8a7dcd77f2a6b
   1.375 +          name: 'PHP-FPM: Processes, total'
   1.376 +          type: DEPENDENT
   1.377 +          key: php-fpm.processes_total
   1.378 +          delay: '0'
   1.379 +          history: 7d
   1.380 +          description: 'The total number of server processes currently running.'
   1.381 +          preprocessing:
   1.382 +            - type: JSONPATH
   1.383 +              parameters:
   1.384 +                - '$.[''total processes'']'
   1.385 +          master_item:
   1.386 +            key: php-fpm.get_status
   1.387 +          tags:
   1.388 +            - tag: Application
   1.389 +              value: PHP-FPM
   1.390 +        - uuid: 8f0bc115b7a94021a56d82858cc020cd
   1.391 +          name: 'PHP-FPM: Process manager'
   1.392 +          type: DEPENDENT
   1.393 +          key: php-fpm.process_manager
   1.394 +          delay: '0'
   1.395 +          history: 7d
   1.396 +          trends: '0'
   1.397 +          value_type: CHAR
   1.398 +          description: 'The method used by the process manager to control the number of child processes for this pool.'
   1.399 +          preprocessing:
   1.400 +            - type: JSONPATH
   1.401 +              parameters:
   1.402 +                - '$.[''process manager'']'
   1.403 +            - type: DISCARD_UNCHANGED_HEARTBEAT
   1.404 +              parameters:
   1.405 +                - 3h
   1.406 +          master_item:
   1.407 +            key: php-fpm.get_status
   1.408 +          tags:
   1.409 +            - tag: Application
   1.410 +              value: PHP-FPM
   1.411 +          triggers:
   1.412 +            - uuid: 5303f276e90746dba1909c6a8d24455e
   1.413 +              expression: 'last(/Monitoring HTTP AWNET - PHP/php-fpm.process_manager,#1)<>last(/Monitoring HTTP AWNET - PHP/php-fpm.process_manager,#2)'
   1.414 +              name: 'PHP-FPM: Manager  changed (new value received: {ITEM.VALUE})'
   1.415 +              priority: INFO
   1.416 +              description: 'PHP-FPM manager changed. Ack to close.'
   1.417 +              manual_close: 'YES'
   1.418 +        - uuid: d362245503f4424e8a794bc2374a6f93
   1.419 +          name: 'PHP-FPM: Slow requests'
   1.420 +          type: DEPENDENT
   1.421 +          key: php-fpm.slow_requests
   1.422 +          delay: '0'
   1.423 +          history: 7d
   1.424 +          description: 'The number of requests that exceeded your request_slowlog_timeout value.'
   1.425 +          preprocessing:
   1.426 +            - type: JSONPATH
   1.427 +              parameters:
   1.428 +                - '$.[''slow requests'']'
   1.429 +            - type: SIMPLE_CHANGE
   1.430 +              parameters:
   1.431 +                - ''
   1.432 +          master_item:
   1.433 +            key: php-fpm.get_status
   1.434 +          tags:
   1.435 +            - tag: Application
   1.436 +              value: PHP-FPM
   1.437 +          triggers:
   1.438 +            - uuid: 97c7a387c57245a6a9a4a23f3fb3ef58
   1.439 +              expression: 'min(/Monitoring HTTP AWNET - PHP/php-fpm.slow_requests,#3)>0'
   1.440 +              name: 'PHP-FPM: Detected slow requests'
   1.441 +              priority: WARNING
   1.442 +              description: 'PHP-FPM detected slow request. A slow request means that it took more time to execute than expected (defined in the configuration of your pool).'
   1.443 +        - uuid: bed55b93e18041c8ad623ee4c9895f1f
   1.444 +          name: 'PHP-FPM: Start time'
   1.445 +          type: DEPENDENT
   1.446 +          key: php-fpm.start_time
   1.447 +          delay: '0'
   1.448 +          history: 7d
   1.449 +          units: unixtime
   1.450 +          description: 'The time when this pool was started.'
   1.451 +          preprocessing:
   1.452 +            - type: JSONPATH
   1.453 +              parameters:
   1.454 +                - '$.[''start time'']'
   1.455 +          master_item:
   1.456 +            key: php-fpm.get_status
   1.457 +          tags:
   1.458 +            - tag: Application
   1.459 +              value: PHP-FPM
   1.460 +        - uuid: e8fdb88860454b6cb9a0f78f57838cd3
   1.461 +          name: 'PHP-FPM: Uptime'
   1.462 +          type: DEPENDENT
   1.463 +          key: php-fpm.uptime
   1.464 +          delay: '0'
   1.465 +          history: 7d
   1.466 +          units: s
   1.467 +          description: 'How long has this pool been running.'
   1.468 +          preprocessing:
   1.469 +            - type: JSONPATH
   1.470 +              parameters:
   1.471 +                - '$.[''start since'']'
   1.472 +          master_item:
   1.473 +            key: php-fpm.get_status
   1.474 +          tags:
   1.475 +            - tag: Application
   1.476 +              value: PHP-FPM
   1.477 +          triggers:
   1.478 +            - uuid: cb7285bc9a4a473a909354c9b9dabce4
   1.479 +              expression: 'nodata(/Monitoring HTTP AWNET - PHP/php-fpm.uptime,30m)=1'
   1.480 +              name: 'PHP-FPM: Failed to fetch info data (or no data for 30m)'
   1.481 +              priority: INFO
   1.482 +              description: 'Zabbix has not received data for items for the last 30 minutes'
   1.483 +              manual_close: 'YES'
   1.484 +              dependencies:
   1.485 +                - name: 'PHP-FPM: Service is down'
   1.486 +                  expression: 'last(/Monitoring HTTP AWNET - PHP/php-fpm.ping)=0 or nodata(/Monitoring HTTP AWNET - PHP/php-fpm.ping,3m)=1'
   1.487 +            - uuid: 81a7e762da1e4c56841206a60940c123
   1.488 +              expression: 'last(/Monitoring HTTP AWNET - PHP/php-fpm.uptime)<10m'
   1.489 +              name: 'PHP-FPM: has been restarted (uptime < 10m)'
   1.490 +              priority: INFO
   1.491 +              description: 'Uptime is less than 10 minutes'
   1.492 +              manual_close: 'YES'
   1.493 +        - uuid: 7f6ef0a370074296972af02183ea9551
   1.494 +          name: 'PHP-FPM: Version'
   1.495 +          type: DEPENDENT
   1.496 +          key: php-fpm.version
   1.497 +          delay: '0'
   1.498 +          history: 7d
   1.499 +          trends: '0'
   1.500 +          value_type: CHAR
   1.501 +          description: 'Current version PHP. Get from HTTP-Header "X-Powered-By" and may not work if you change default HTTP-headers.'
   1.502 +          preprocessing:
   1.503 +            - type: REGEX
   1.504 +              parameters:
   1.505 +                - '^[.\s\S]*X-Powered-By: PHP/([.\d]{1,})'
   1.506 +                - \1
   1.507 +              error_handler: DISCARD_VALUE
   1.508 +            - type: DISCARD_UNCHANGED_HEARTBEAT
   1.509 +              parameters:
   1.510 +                - 3h
   1.511 +          master_item:
   1.512 +            key: php-fpm.get_ping
   1.513 +          tags:
   1.514 +            - tag: Application
   1.515 +              value: PHP-FPM
   1.516 +          triggers:
   1.517 +            - uuid: ce0882caba9b4b8a8ab5d8b119713757
   1.518 +              expression: 'last(/Monitoring HTTP AWNET - PHP/php-fpm.version,#1)<>last(/Monitoring HTTP AWNET - PHP/php-fpm.version,#2) and length(last(/Monitoring HTTP AWNET - PHP/php-fpm.version))>0'
   1.519 +              name: 'PHP-FPM: Version has changed (new version: {ITEM.VALUE})'
   1.520 +              priority: INFO
   1.521 +              description: 'PHP-FPM version has changed. Ack to close.'
   1.522 +              manual_close: 'YES'
   1.523 +      macros:
   1.524 +        - macro: '{$PHP_FPM.PING.PAGE}'
   1.525 +          value: /php_ping
   1.526 +        - macro: '{$PHP_FPM.PING.REPLY}'
   1.527 +          value: pong
   1.528 +        - macro: '{$PHP_FPM.QUEUE.WARN.MAX}'
   1.529 +          value: '50'
   1.530 +        - macro: '{$PHP_FPM.SCHEME}'
   1.531 +          value: http
   1.532 +        - macro: '{$PHP_FPM.STATUS.PAGE}'
   1.533 +          value: /php_status
   1.534 +  triggers:
   1.535 +    - uuid: 963920735f48419eb8894454bf7f9806
   1.536 +      expression: 'last(/Monitoring HTTP AWNET/web.test.fail[Основная проверка])<>0 and (length(last(/Monitoring HTTP AWNET/web.test.error[Основная проверка]))=0 or length(last(/Monitoring HTTP AWNET/web.test.error[Основная проверка]))<>0)'
   1.537 +      name: 'Ошибка сервиса'
   1.538 +      opdata: 'Ошибка: {ITEM.VALUE2}'
   1.539 +      priority: HIGH
   1.540 +      dependencies:
   1.541 +        - name: 'Сервис не доступен'
   1.542 +          expression: 'last(/Monitoring HTTP AWNET/net.tcp.service.perf[tcp,"{HOST.CONN}","{$AW.HTTP.PORT}"])=0'
   1.543 +      tags:
   1.544 +        - tag: Application
   1.545 +          value: Доступность
   1.546 +    - uuid: 7902643a93f84303b7df08b3fd9634a3
   1.547 +      expression: 'last(/Monitoring HTTP AWNET/icmppingsec["{HOST.CONN}",10,700,1000,5000,max])=0 or last(/Monitoring HTTP AWNET/icmppingsec["{HOST.CONN}",10,700,1000,5000,min])=0'
   1.548 +      name: 'Потеря сетевой связности с сервисом'
   1.549 +      priority: HIGH
   1.550 +      tags:
   1.551 +        - tag: Application
   1.552 +          value: Доступность
   1.553 +  graphs:
   1.554 +    - uuid: ee0d4a5ec50c4ce09275e9b214311338
   1.555 +      name: 'PHP-FPM: Process'
   1.556 +      graph_items:
   1.557 +        - color: 1A7C11
   1.558 +          item:
   1.559 +            host: 'Monitoring HTTP AWNET - PHP'
   1.560 +            key: php-fpm.processes_max_active
   1.561 +        - sortorder: '1'
   1.562 +          color: 2774A4
   1.563 +          item:
   1.564 +            host: 'Monitoring HTTP AWNET - PHP'
   1.565 +            key: php-fpm.processes_idle
   1.566 +        - sortorder: '2'
   1.567 +          color: F63100
   1.568 +          item:
   1.569 +            host: 'Monitoring HTTP AWNET - PHP'
   1.570 +            key: php-fpm.processes_total
   1.571 +        - sortorder: '3'
   1.572 +          color: A54F10
   1.573 +          item:
   1.574 +            host: 'Monitoring HTTP AWNET - PHP'
   1.575 +            key: php-fpm.processes_active
   1.576 +    - uuid: 14dc2b1cb210498aa0f912d0316f4799
   1.577 +      name: 'PHP-FPM: Queue'
   1.578 +      graph_items:
   1.579 +        - color: 1A7C11
   1.580 +          item:
   1.581 +            host: 'Monitoring HTTP AWNET - PHP'
   1.582 +            key: php-fpm.listen_queue_len
   1.583 +        - sortorder: '1'
   1.584 +          color: 2774A4
   1.585 +          item:
   1.586 +            host: 'Monitoring HTTP AWNET - PHP'
   1.587 +            key: php-fpm.listen_queue
   1.588 +        - sortorder: '2'
   1.589 +          color: F63100
   1.590 +          item:
   1.591 +            host: 'Monitoring HTTP AWNET - PHP'
   1.592 +            key: php-fpm.listen_queue_max
   1.593 +    - uuid: 1e7b8c02fbf341379c938e24e3196574
   1.594 +      name: 'Время доступа к сервису'
   1.595 +      graph_items:
   1.596 +        - color: 1A7C11
   1.597 +          calc_fnc: ALL
   1.598 +          item:
   1.599 +            host: 'Monitoring HTTP AWNET'
   1.600 +            key: 'net.tcp.service.perf[tcp,"{HOST.CONN}","{$AW.HTTP.PORT}"]'
   1.601 +        - sortorder: '1'
   1.602 +          color: '274482'
   1.603 +          calc_fnc: ALL
   1.604 +          item:
   1.605 +            host: 'Monitoring HTTP AWNET'
   1.606 +            key: 'icmppingsec["{HOST.CONN}",10,700,1000,5000,max]'
   1.607 +        - sortorder: '2'
   1.608 +          color: F63100
   1.609 +          calc_fnc: ALL
   1.610 +          item:
   1.611 +            host: 'Monitoring HTTP AWNET'
   1.612 +            key: 'icmppingsec["{HOST.CONN}",10,700,1000,5000,min]'
   1.613 +        - sortorder: '3'
   1.614 +          color: 2774A4
   1.615 +          yaxisside: RIGHT
   1.616 +          calc_fnc: ALL
   1.617 +          item:
   1.618 +            host: 'Monitoring HTTP AWNET'
   1.619 +            key: 'web.test.time[Основная проверка,Запрос страницы проверки,resp]'