zabbix_export: version: '7.0' template_groups: - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 name: Templates/Applications templates: - uuid: a8d91e4f36794e32b73090d5edf3d7ae template: 'Apache by Zabbix agent' name: 'Apache by Zabbix agent' description: | Get metrics from mod_status module using HTTP agent. https://httpd.apache.org/docs/current/mod/mod_status.html You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384764-discussion-thread-for-official-zabbix-template-apache Generated by official Zabbix template tool "Templator" 2.0.0 vendor: name: Zabbix version: 7.0-0 groups: - name: Templates/Applications items: - uuid: 2d3ebb059bd944ee8a7b95e2c60b08f0 name: 'Apache: Total bytes' type: DEPENDENT key: apache.bytes delay: '0' history: 7d value_type: FLOAT units: B description: 'The total bytes served.' preprocessing: - type: JSONPATH parameters: - '$["Total kBytes"]' - type: MULTIPLIER parameters: - '1024' master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: network - uuid: be97c53d82f846cdbc2d0ec640435b6f name: 'Apache: Bytes per second' type: DEPENDENT key: apache.bytes.rate delay: '0' history: 7d value_type: FLOAT units: Bps description: | It is calculated as a rate of change for total bytes statistics. `BytesPerSec` is not used, as it counts the average since the last Apache server start. preprocessing: - type: JSONPATH parameters: - '$["Total kBytes"]' - type: MULTIPLIER parameters: - '1024' - type: CHANGE_PER_SECOND parameters: - '' master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: network - uuid: 5919f29c692b468fb5642e83f408c2e5 name: 'Apache: Total requests' type: DEPENDENT key: apache.requests delay: '0' history: 7d description: 'The total number of the Apache server accesses.' preprocessing: - type: JSONPATH parameters: - '$["Total Accesses"]' master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: network - uuid: 7e1e674a23d24fafa31b76a048fe9fd0 name: 'Apache: Requests per second' type: DEPENDENT key: apache.requests.rate delay: '0' history: 7d value_type: FLOAT description: | It is calculated as a rate of change for the "Total requests" statistics. `ReqPerSec` is not used, as it counts the average since the last Apache server start. preprocessing: - type: JSONPATH parameters: - '$["Total Accesses"]' - type: CHANGE_PER_SECOND parameters: - '' master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: network - uuid: 5a4bd2d6c2874d888ec4c82409e1c711 name: 'Apache: Uptime' type: DEPENDENT key: apache.uptime delay: '0' history: 7d units: uptime description: 'The service uptime expressed in seconds.' preprocessing: - type: JSONPATH parameters: - $.ServerUptimeSeconds master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system triggers: - uuid: 7872d9665c234f45941ca26206e0255c expression: 'last(/Apache by Zabbix agent/apache.uptime)<10m' name: 'Apache: Host has been restarted' event_name: 'Apache: {HOST.NAME} has been restarted (uptime < 10m)' priority: INFO description: 'Uptime is less than 10 minutes.' manual_close: 'YES' tags: - tag: scope value: notice - uuid: 78a611c2b15c4ae8949257b6fdf922f1 name: 'Apache: Version' type: DEPENDENT key: apache.version delay: '0' history: 7d trends: '0' value_type: CHAR description: 'The Apache service version.' preprocessing: - type: JSONPATH parameters: - $.ServerVersion - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1d master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system triggers: - uuid: 5124b17918f545758ca5c936332f51cd expression: 'last(/Apache by Zabbix agent/apache.version,#1)<>last(/Apache by Zabbix agent/apache.version,#2) and length(last(/Apache by Zabbix agent/apache.version))>0' name: 'Apache: Version has changed' event_name: 'Apache: Version has changed (new version: {ITEM.VALUE})' priority: INFO description: 'Apache version has changed. Acknowledge to close the problem manually.' manual_close: 'YES' tags: - tag: scope value: notice - uuid: 35f48761ec6d451bbb8b0d80cd0ccd91 name: 'Apache: Workers idle cleanup' type: DEPENDENT key: apache.workers.cleanup delay: '0' history: 7d description: 'The number of workers in cleanup state.' preprocessing: - type: JSONPATH parameters: - $.Workers.cleanup master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: ebd391702cbd432ab458578a3cb45361 name: 'Apache: Workers closing connection' type: DEPENDENT key: apache.workers.closing delay: '0' history: 7d description: 'The number of workers in closing state.' preprocessing: - type: JSONPATH parameters: - $.Workers.closing master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: 6a961707e7084d8ebc09f572b15ef1fd name: 'Apache: Workers DNS lookup' type: DEPENDENT key: apache.workers.dnslookup delay: '0' history: 7d description: 'The number of workers in `dnslookup` state.' preprocessing: - type: JSONPATH parameters: - $.Workers.dnslookup master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: fd383c9ace4647deb9d3e3882554b8d0 name: 'Apache: Workers finishing' type: DEPENDENT key: apache.workers.finishing delay: '0' history: 7d description: 'The number of workers in finishing state.' preprocessing: - type: JSONPATH parameters: - $.Workers.finishing master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: 2a02413c0e9144b4a70b8a5a71d680e0 name: 'Apache: Workers keepalive (read)' type: DEPENDENT key: apache.workers.keepalive delay: '0' history: 7d description: 'The number of workers in `keepalive` state.' preprocessing: - type: JSONPATH parameters: - $.Workers.keepalive master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: ed71fb2ec75f4537a2937293add75274 name: 'Apache: Workers logging' type: DEPENDENT key: apache.workers.logging delay: '0' history: 7d description: 'The number of workers in logging state.' preprocessing: - type: JSONPATH parameters: - $.Workers.logging master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: 6c38147f9f3449a194f36a6e6d828865 name: 'Apache: Workers reading request' type: DEPENDENT key: apache.workers.reading delay: '0' history: 7d description: 'The number of workers in reading state.' preprocessing: - type: JSONPATH parameters: - $.Workers.reading master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: 47856ac3b68644e0861b593d3083d35b name: 'Apache: Workers sending reply' type: DEPENDENT key: apache.workers.sending delay: '0' history: 7d description: 'The number of workers in sending state.' preprocessing: - type: JSONPATH parameters: - $.Workers.sending master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: 60cf954a40594cf69afdd1bf0319c031 name: 'Apache: Workers slot with no current process' type: DEPENDENT key: apache.workers.slot delay: '0' history: 7d description: 'The number of slots with no current process.' preprocessing: - type: JSONPATH parameters: - $.Workers.slot master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: 441c797164bf4c8da8112d78240abc43 name: 'Apache: Workers starting up' type: DEPENDENT key: apache.workers.starting delay: '0' history: 7d description: 'The number of workers in starting state.' preprocessing: - type: JSONPATH parameters: - $.Workers.starting master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: ec87e89ee9304acd8c7a76e863cb4443 name: 'Apache: Workers waiting for connection' type: DEPENDENT key: apache.workers.waiting delay: '0' history: 7d description: 'The number of workers in waiting state.' preprocessing: - type: JSONPATH parameters: - $.Workers.waiting master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: b52addb50ccb415fb63eaf67076991c1 name: 'Apache: Total workers busy' type: DEPENDENT key: apache.workers_total.busy delay: '0' history: 7d description: 'The total number of busy worker threads/processes.' preprocessing: - type: JSONPATH parameters: - $.BusyWorkers master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: 6955f78c203b435987b5ab75a1114867 name: 'Apache: Total workers idle' type: DEPENDENT key: apache.workers_total.idle delay: '0' history: 7d description: 'The total number of idle worker threads/processes.' preprocessing: - type: JSONPATH parameters: - $.IdleWorkers master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system - uuid: 267ca6fe038346e5be1113f3bf9b4023 name: 'Apache: Service response time' key: 'net.tcp.service.perf[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"]' history: 7d value_type: FLOAT units: s tags: - tag: component value: application - tag: component value: health - uuid: 369f00e2970048c786ce3bd609e65566 name: 'Apache: Service ping' key: 'net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"]' history: 7d valuemap: name: 'Service state' preprocessing: - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 10m tags: - tag: component value: application - tag: component value: health - uuid: 99b1a38ed45b4212974b0bea72b076d2 name: 'Apache: Get processes summary' key: 'proc.get[{$APACHE.PROCESS.NAME.PARAMETER},,,summary]' history: '0' trends: '0' value_type: TEXT description: 'The aggregated data of summary metrics for all processes.' tags: - tag: component value: raw - uuid: 115413a0f5ab4caba418ab841ad81eba name: 'Apache: Get status' key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' history: 1h trends: '0' value_type: TEXT description: | Getting data from a machine-readable version of the Apache status page. For more information see Apache Module [mod_status](https://httpd.apache.org/docs/current/mod/mod_status.html). preprocessing: - type: JAVASCRIPT parameters: - | // Convert Apache status to JSON var lines = value.split('\n'); var output = {}, workers = { '_': 0, 'S': 0, 'R': 0, 'W': 0, 'K': 0, 'D': 0, 'C': 0, 'L': 0, 'G': 0, 'I': 0, '.': 0 }; // Get all "Key: Value" pairs as an object for (var i = 0; i < lines.length; i++) { var line = lines[i].match(/([A-z0-9 ]+): (.*)/); if (line !== null) { output[line[1]] = isNaN(line[2]) ? line[2] : Number(line[2]); } } // Multiversion metrics output.ServerUptimeSeconds = output.ServerUptimeSeconds || output.Uptime; output.ServerVersion = output.ServerVersion || output.Server; // Parse "Scoreboard" to get worker count. if (typeof output.Scoreboard === 'string') { for (var i = 0; i < output.Scoreboard.length; i++) { var char = output.Scoreboard[i]; workers[char]++; } } // Add worker data to the output output.Workers = { waiting: workers['_'], starting: workers['S'], reading: workers['R'], sending: workers['W'], keepalive: workers['K'], dnslookup: workers['D'], closing: workers['C'], logging: workers['L'], finishing: workers['G'], cleanup: workers['I'], slot: workers['.'] }; // Return JSON string return JSON.stringify(output); tags: - tag: component value: raw discovery_rules: - uuid: 36a82bdda7754c51a05da3bb0b65b83e name: 'Event MPM discovery' type: DEPENDENT key: apache.mpm.event.discovery delay: '0' description: | The discovery of additional metrics if the event Multi-Processing Module (MPM) is used. For more details see [Apache MPM event](https://httpd.apache.org/docs/current/mod/event.html). item_prototypes: - uuid: 99df2ff5970b4497887371bcd16d5ada name: 'Apache: Bytes per request' type: DEPENDENT key: 'apache.bytes[per_request{#SINGLETON}]' delay: '0' history: 7d value_type: FLOAT units: B description: 'The average number of client requests per second.' preprocessing: - type: JSONPATH parameters: - $.BytesPerReq master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: connection - uuid: 2e0692f36b924b52ab7b2ff7788b641d name: 'Apache: Connections async closing' type: DEPENDENT key: 'apache.connections[async_closing{#SINGLETON}]' delay: '0' history: 7d description: 'The number of asynchronous connections in closing state (applicable only to the event MPM).' preprocessing: - type: JSONPATH parameters: - $.ConnsAsyncClosing master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: connection - uuid: 33d3fec8f45c493097bab986d5ea1e55 name: 'Apache: Connections async keepalive' type: DEPENDENT key: 'apache.connections[async_keep_alive{#SINGLETON}]' delay: '0' history: 7d description: 'The number of asynchronous connections in keepalive state (applicable only to the event MPM).' preprocessing: - type: JSONPATH parameters: - $.ConnsAsyncKeepAlive master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: connection - uuid: 9ad0e5c49e7c4b939eb7977a5158953f name: 'Apache: Connections async writing' type: DEPENDENT key: 'apache.connections[async_writing{#SINGLETON}]' delay: '0' history: 7d description: 'The number of asynchronous connections in writing state (applicable only to the event MPM).' preprocessing: - type: JSONPATH parameters: - $.ConnsAsyncWriting master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: connection - uuid: 0fbfbfae187040c790bb4d68f9e2fae5 name: 'Apache: Connections total' type: DEPENDENT key: 'apache.connections[total{#SINGLETON}]' delay: '0' history: 7d description: 'The number of total connections.' preprocessing: - type: JSONPATH parameters: - $.ConnsTotal master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: connection - uuid: 778a1bfeaa1b474ba529e6c0a55a9949 name: 'Apache: Number of async processes' type: DEPENDENT key: 'apache.process[num{#SINGLETON}]' delay: '0' history: 7d description: 'The number of asynchronous processes.' preprocessing: - type: JSONPATH parameters: - $.Processes master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' tags: - tag: component value: system graph_prototypes: - uuid: 4845e6716bd74e7698406e6d8389eba5 name: 'Apache: Current async connections{#SINGLETON}' graph_items: - color: 199C0D item: host: 'Apache by Zabbix agent' key: 'apache.connections[async_closing{#SINGLETON}]' - sortorder: '1' color: F63100 item: host: 'Apache by Zabbix agent' key: 'apache.connections[async_keep_alive{#SINGLETON}]' - sortorder: '2' color: 00611C item: host: 'Apache by Zabbix agent' key: 'apache.connections[async_writing{#SINGLETON}]' - sortorder: '3' drawtype: BOLD_LINE color: F7941D item: host: 'Apache by Zabbix agent' key: 'apache.connections[total{#SINGLETON}]' - uuid: 19ecb4e04c3742daac1a0e06d5f98c0c name: 'Apache: Current async processes{#SINGLETON}' graph_items: - drawtype: GRADIENT_LINE color: 199C0D item: host: 'Apache by Zabbix agent' key: 'apache.process[num{#SINGLETON}]' master_item: key: 'web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"]' preprocessing: - type: JAVASCRIPT parameters: - | return JSON.stringify(JSON.parse(value).ServerMPM === 'event' ? [{'{#SINGLETON}': ''}] : []); - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 3h - uuid: 357a2a1f056a4f59985e858d72e0bdae name: 'Apache process discovery' type: DEPENDENT key: apache.proc.discovery delay: '0' filter: evaltype: AND conditions: - macro: '{#APACHE.NAME}' value: '{$APACHE.PROCESS_NAME}' formulaid: A description: 'The discovery of the Apache process summary.' item_prototypes: - uuid: 458bfecc83f64540838e3ffc3a7f3cb1 name: 'Apache: Get process data' type: DEPENDENT key: 'apache.proc.get[{#APACHE.NAME}]' delay: '0' history: '0' trends: '0' value_type: TEXT description: 'The summary metrics aggregated by a process {#APACHE.NAME}.' preprocessing: - type: JSONPATH parameters: - '$.[?(@["name"]=="{#APACHE.NAME}")].first()' error_handler: CUSTOM_VALUE error_handler_params: 'Failed to retrieve process {#APACHE.NAME} data' master_item: key: 'proc.get[{$APACHE.PROCESS.NAME.PARAMETER},,,summary]' tags: - tag: component value: raw - uuid: 233b5466014640e4b990ffd81fa19fa1 name: 'Apache: Number of running processes' type: DEPENDENT key: 'apache.proc.num[{#APACHE.NAME}]' delay: '0' history: 7d description: 'The number of running processes {#APACHE.NAME}.' preprocessing: - type: JSONPATH parameters: - $.processes error_handler: CUSTOM_VALUE error_handler_params: '0' - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1h master_item: key: 'apache.proc.get[{#APACHE.NAME}]' tags: - tag: component value: system trigger_prototypes: - uuid: b62f49b09d6b4c6ca01ff60cd9dd2209 expression: 'last(/Apache by Zabbix agent/apache.proc.num[{#APACHE.NAME}])=0' name: 'Apache: Process is not running' priority: HIGH tags: - tag: scope value: availability - uuid: 683d4489dbb549f3bb5b45d3c2696c4f name: 'Apache: Memory usage, %' type: DEPENDENT key: 'apache.proc.pmem[{#APACHE.NAME}]' delay: '0' history: 7d value_type: FLOAT units: '%' description: 'The percentage of real memory used by a process {#APACHE.NAME}.' preprocessing: - type: JSONPATH parameters: - $.pmem error_handler: DISCARD_VALUE master_item: key: 'apache.proc.get[{#APACHE.NAME}]' tags: - tag: component value: memory - uuid: 384bf197e6a241b3b63bb89d009bba6b name: 'Apache: Memory usage (rss)' type: DEPENDENT key: 'apache.proc.rss[{#APACHE.NAME}]' delay: '0' history: 7d units: B description: 'The summary of resident set size memory used by a process {#APACHE.NAME} expressed in bytes.' preprocessing: - type: JSONPATH parameters: - $.rss error_handler: DISCARD_VALUE master_item: key: 'apache.proc.get[{#APACHE.NAME}]' tags: - tag: component value: memory - uuid: f20b7a01ff134a128c54ea83af8557e2 name: 'Apache: Memory usage (vsize)' type: DEPENDENT key: 'apache.proc.vmem[{#APACHE.NAME}]' delay: '0' history: 7d units: B description: 'The summary of virtual memory used by a process {#APACHE.NAME} expressed in bytes.' preprocessing: - type: JSONPATH parameters: - $.vsize error_handler: DISCARD_VALUE master_item: key: 'apache.proc.get[{#APACHE.NAME}]' tags: - tag: component value: memory - uuid: b73280fb0af64c7899abfc74cc074b13 name: 'Apache: CPU utilization' key: 'proc.cpu.util[{#APACHE.NAME}]' history: 7d value_type: FLOAT units: '%' description: 'The percentage of the CPU utilization by a process {#APACHE.NAME}.' tags: - tag: component value: cpu trigger_prototypes: - uuid: 0166ec63913e4bbea25c54b458b3213a expression: 'nodata(/Apache by Zabbix agent/web.page.get["{$APACHE.STATUS.SCHEME}://{$APACHE.STATUS.HOST}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}"],30m)=1 and last(/Apache by Zabbix agent/apache.proc.num[{#APACHE.NAME}])>0' name: 'Apache: Failed to fetch status page' event_name: 'Apache: Failed to fetch status page (or no data for 30m)' priority: WARNING description: 'Zabbix has not received any data for items for the last 30 minutes.' manual_close: 'YES' dependencies: - name: 'Apache: Service is down' expression: 'last(/Apache by Zabbix agent/net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"])=0 and last(/Apache by Zabbix agent/apache.proc.num[{#APACHE.NAME}])>0' tags: - tag: scope value: availability - uuid: e24dbf9b89c34d839cb12a22b1103df3 expression: 'last(/Apache by Zabbix agent/net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"])=0 and last(/Apache by Zabbix agent/apache.proc.num[{#APACHE.NAME}])>0' name: 'Apache: Service is down' priority: AVERAGE manual_close: 'YES' tags: - tag: scope value: availability - uuid: 128905793a4b4a1db5a49f87e87d3383 expression: 'min(/Apache by Zabbix agent/net.tcp.service.perf[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"],5m)>{$APACHE.RESPONSE_TIME.MAX.WARN} and last(/Apache by Zabbix agent/apache.proc.num[{#APACHE.NAME}])>0' name: 'Apache: Service response time is too high' event_name: 'Apache: Service response time is too high (over {$APACHE.RESPONSE_TIME.MAX.WARN}s for 5m)' priority: WARNING manual_close: 'YES' dependencies: - name: 'Apache: Service is down' expression: 'last(/Apache by Zabbix agent/net.tcp.service[http,"{$APACHE.STATUS.HOST}","{$APACHE.STATUS.PORT}"])=0 and last(/Apache by Zabbix agent/apache.proc.num[{#APACHE.NAME}])>0' tags: - tag: scope value: performance graph_prototypes: - uuid: d317a2ccde4f4a2ab20e983b27ae64e2 name: 'Apache: Memory usage[{#APACHE.NAME}]' graph_items: - drawtype: BOLD_LINE color: 199C0D item: host: 'Apache by Zabbix agent' key: 'apache.proc.vmem[{#APACHE.NAME}]' - sortorder: '1' drawtype: BOLD_LINE color: F63100 item: host: 'Apache by Zabbix agent' key: 'apache.proc.rss[{#APACHE.NAME}]' master_item: key: 'proc.get[{$APACHE.PROCESS.NAME.PARAMETER},,,summary]' lld_macro_paths: - lld_macro: '{#APACHE.NAME}' path: $.name tags: - tag: class value: software - tag: target value: apache macros: - macro: '{$APACHE.PROCESS.NAME.PARAMETER}' description: 'The process name of the Apache web server used in the item key `proc.get`. It could be specified if the correct process name is known.' - macro: '{$APACHE.PROCESS_NAME}' value: (httpd|apache2) description: 'The process name filter for the Apache process discovery.' - macro: '{$APACHE.RESPONSE_TIME.MAX.WARN}' value: '10' description: 'The maximum Apache response time expressed in seconds for a trigger expression.' - macro: '{$APACHE.STATUS.HOST}' value: 127.0.0.1 description: 'The hostname or IP address of the Apache status page.' - macro: '{$APACHE.STATUS.PATH}' value: 'server-status?auto' description: 'The URL path.' - macro: '{$APACHE.STATUS.PORT}' value: '80' description: 'The port of the Apache status page.' - macro: '{$APACHE.STATUS.SCHEME}' value: http description: 'The request scheme, which may be either HTTP or HTTPS.' dashboards: - uuid: c27c68fb9c234a09b4023076b45affc1 name: 'Apache performance' pages: - name: General widgets: - type: graph width: '24' height: '7' fields: - type: GRAPH name: graphid value: host: 'Apache by Zabbix agent' name: 'Apache: Worker states' - type: graph 'y': '7' width: '12' height: '5' fields: - type: GRAPH name: graphid value: host: 'Apache by Zabbix agent' name: 'Apache: Requests per second' - type: graph x: '12' 'y': '7' width: '12' height: '5' fields: - type: GRAPH name: graphid value: host: 'Apache by Zabbix agent' name: 'Apache: Workers total' - type: graphprototype 'y': '12' width: '12' height: '5' fields: - type: INTEGER name: columns value: '1' - type: INTEGER name: rows value: '1' - type: GRAPH_PROTOTYPE name: graphid value: host: 'Apache by Zabbix agent' name: 'Apache: Current async connections{#SINGLETON}' - type: graphprototype x: '12' 'y': '12' width: '12' height: '5' fields: - type: INTEGER name: columns value: '1' - type: INTEGER name: rows value: '1' - type: GRAPH_PROTOTYPE name: graphid value: host: 'Apache by Zabbix agent' name: 'Apache: Current async processes{#SINGLETON}' valuemaps: - uuid: 452297e814a84b08a72730a7b777e378 name: 'Service state' mappings: - value: '0' newvalue: Down - value: '1' newvalue: Up graphs: - uuid: dfc5334e77ce45d286145cc08d036f38 name: 'Apache: Requests per second' graph_items: - drawtype: GRADIENT_LINE color: 199C0D item: host: 'Apache by Zabbix agent' key: apache.requests.rate - uuid: 6f646e8c11b04e8a835b81bc17824593 name: 'Apache: Worker states' graph_items: - color: 199C0D item: host: 'Apache by Zabbix agent' key: apache.workers.dnslookup - sortorder: '1' color: F63100 item: host: 'Apache by Zabbix agent' key: apache.workers.cleanup - sortorder: '2' color: 00611C item: host: 'Apache by Zabbix agent' key: apache.workers.logging - sortorder: '3' color: F7941D item: host: 'Apache by Zabbix agent' key: apache.workers.reading - sortorder: '4' color: FC6EA3 item: host: 'Apache by Zabbix agent' key: apache.workers.sending - sortorder: '5' color: 6C59DC item: host: 'Apache by Zabbix agent' key: apache.workers.starting - sortorder: '6' color: C7A72D item: host: 'Apache by Zabbix agent' key: apache.workers.closing - sortorder: '7' color: BA2A5D item: host: 'Apache by Zabbix agent' key: apache.workers.finishing - sortorder: '8' color: F230E0 item: host: 'Apache by Zabbix agent' key: apache.workers.keepalive - sortorder: '9' color: 5CCD18 item: host: 'Apache by Zabbix agent' key: apache.workers.slot - sortorder: '10' color: BB2A02 item: host: 'Apache by Zabbix agent' key: apache.workers.waiting - uuid: 121c2d4feb0b4b53b027f1566107ab29 name: 'Apache: Workers total' type: STACKED graph_items: - color: 199C0D item: host: 'Apache by Zabbix agent' key: apache.workers_total.busy - sortorder: '1' color: F63100 item: host: 'Apache by Zabbix agent' key: apache.workers_total.idle