zabbix_export: version: '6.0' date: '2021-11-21T21:33:18Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: dd988a2a977e46d2b7e0a446f0ea16ff template: 'App e2guardian - Active' name: 'App e2guardian - Active' description: | ## Description https://github.com/e2guardian/e2guardian/blob/master/notes/dstats_format USER.MACRO={$E2GUARDIAN_DSTATS} UserParameter=e2guardian[*],tail -1 $1 | cut -f $2 ## Overview Introduction ============ This is my approach for a performance monitoring Template of [E2guardian](http://e2guardian.org/). This Template was created on and for Zabbix 3.4 and E2Guardian 4.1.x on Debian 9 Stretch. Installation ------------ Please check the GitHub Page for latest version and instructions. Changes ------- * February 2018: initial commit. * 03 April 2018: Switch to Zabbix agent (active) & converted s ## Author Marco Hofmann groups: - name: Templates items: - uuid: 1610677c87e24c16ba9a9c28db3a8f06 name: 'e2guardian - timestamp of dstats dump' type: ZABBIX_ACTIVE key: 'e2guardian[{$E2GUARDIAN_DSTATS},1]' delay: 5m history: 7d trends: 180d units: unixtime description: '1. Time - in unix format' tags: - tag: Application value: e2guardian - uuid: 764d81c6be8845b080af2164d31c3ae1 name: 'e2guardian - httpworkers total' type: ZABBIX_ACTIVE key: 'e2guardian[{$E2GUARDIAN_DSTATS},2]' delay: 5m history: 7d trends: 180d description: '2. httpw - Number of httpworker threads running' tags: - tag: Application value: e2guardian - uuid: 48eb38f031664350a42bf83b9682e80e name: 'e2guardian - httpworkers busy' type: ZABBIX_ACTIVE key: 'e2guardian[{$E2GUARDIAN_DSTATS},3]' delay: 5m history: 7d trends: 180d description: '3. busy - Number of httpworker threads busy handling connections at current time' tags: - tag: Application value: e2guardian - uuid: 015a45801bbf4d0196ad3e55c298b59d name: 'e2guardian - httpworkers queue' type: ZABBIX_ACTIVE key: 'e2guardian[{$E2GUARDIAN_DSTATS},4]' delay: 5m history: 7d trends: 180d description: | 4. httpwQ - Number of connections waiting in queue for a worker thread. In normal use this will be 0 (and on occasion 1 or 2) but will increase once all worker threads are busy. Lowish numbers are OK for transitory peaks. High numbers indicate an overloaded system. If there is still memory and cpu available, then httpworkers may be increased. tags: - tag: Application value: e2guardian triggers: - uuid: 86d80db48f324b14a4f03de77985c127 expression: 'min(/App e2guardian - Active/e2guardian[{$E2GUARDIAN_DSTATS},4],30m)>0' name: 'e2guardian - connections waiting in queue for a worker thread' priority: WARNING - uuid: bd68ce03a9884dceb2f241303160d098 name: 'e2guardian - log queue' type: ZABBIX_ACTIVE key: 'e2guardian[{$E2GUARDIAN_DSTATS},5]' delay: 5m history: 7d trends: 180d description: | 5. logQ - Number of messages waiting to be logged to disk. In normal use 0. An increase in number may indicate system overloading, but should not otherwise affect performance. tags: - tag: Application value: e2guardian triggers: - uuid: 380e103545474603a5e21978dc196454 expression: 'min(/App e2guardian - Active/e2guardian[{$E2GUARDIAN_DSTATS},5],30m)>0' name: 'e2guardian - messages waiting to be logged to disk' priority: WARNING - uuid: cec316a0cc7d4a189cfe250325bb58f3 name: 'e2guardian - total sum connections each 5 minutes' type: ZABBIX_ACTIVE key: 'e2guardian[{$E2GUARDIAN_DSTATS},6]' delay: 5m history: 7d trends: 180d description: '6. conx - number of connections handled since last stats line.' tags: - tag: Application value: e2guardian - uuid: fe9a97c19a6e47e98f5b2a1c9f1e5dcc name: 'e2guardian - connections per second' type: ZABBIX_ACTIVE key: 'e2guardian[{$E2GUARDIAN_DSTATS},7]' delay: 5m history: 7d trends: 180d description: '7. conx/s - average connections per sec over period since last stats line.' tags: - tag: Application value: e2guardian - uuid: 823892664da148d18aa41fd1aa0d9298 name: 'e2guardian - requests since last stats dump' type: ZABBIX_ACTIVE key: 'e2guardian[{$E2GUARDIAN_DSTATS},8]' delay: 5m history: 7d trends: 180d description: | 8. reqs - indication of number of requests handled since last stats line. Only an indication as requests made over https tunnels (i.e. non-MITM) cannot be counted, so each https tunnel is counted as one request. tags: - tag: Application value: e2guardian - uuid: 81a27d7b7b974d558c1a5bf20b8df12b name: 'e2guardian - requests per second' type: ZABBIX_ACTIVE key: 'e2guardian[{$E2GUARDIAN_DSTATS},9]' delay: 5m history: 7d trends: 180d description: '9. reqs/s - average requests per sec over period since last stats line.' tags: - tag: Application value: e2guardian - uuid: 2c221117f3984ad386f7e1c4655dbcdf name: 'e2guardian - maximum number file descriptor in use' type: ZABBIX_ACTIVE key: 'e2guardian[{$E2GUARDIAN_DSTATS},10]' delay: 5m history: 7d trends: 180d description: '10. maxfd - Indication of maximum number file descriptor in use' tags: - tag: Application value: e2guardian - uuid: b9e922a452f54d8b8b02044cd3dc64df name: 'e2guardian - Number of List Option Containers in use' type: ZABBIX_ACTIVE key: 'e2guardian[{$E2GUARDIAN_DSTATS},11]' delay: 5m history: 7d trends: 180d description: | 11. LCcnt - Number of List Option Containers in use. A new List Option Container is created at start up and on gentle restart. Old containers are deleted once all connections still using it have finished. Normally figure will be one, but may rise after a gentle restart(s) and should return to one after a period of time. tags: - tag: Application value: e2guardian macros: - macro: '{$E2GUARDIAN_DSTATS}' value: /var/log/e2guardian/dstats.log graphs: - uuid: 7a16e8d502ed4953b74ad507aca6ae0e name: 'e2guardian - httpworkers' width: '1200' height: '300' ymin_type_1: FIXED ymax_type_1: ITEM ymax_item_1: host: 'App e2guardian - Active' key: 'e2guardian[{$E2GUARDIAN_DSTATS},2]' graph_items: - color: 1A7C11 item: host: 'App e2guardian - Active' key: 'e2guardian[{$E2GUARDIAN_DSTATS},3]'